@telia-ace/widget-components-close-button 1.0.22 → 1.0.23-next.0

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,5 +1,5 @@
1
1
  import { Container } from '@webprovisions/platform';
2
- export declare type CloseButtonComponentProps = {
2
+ export type CloseButtonComponentProps = {
3
3
  ariaLabel?: string;
4
4
  };
5
5
  declare const CloseButtonComponent: (container: Container) => Promise<void>;
@@ -25,15 +25,7 @@ import a from "react";
25
25
  const D = (o) => {
26
26
  var s = o, { className: e } = s, t = y(s, ["className"]);
27
27
  const p = S(), { ariaLabel: u = "" } = x();
28
- return /* @__PURE__ */ a.createElement(v, d(m({}, t), {
29
- className: e
30
- }), /* @__PURE__ */ a.createElement(k, {
31
- onClick: () => p("close"),
32
- "aria-label": u
33
- }, /* @__PURE__ */ a.createElement(z, {
34
- size: 12,
35
- symbol: { type: "Svg", content: "close" }
36
- })));
28
+ return /* @__PURE__ */ a.createElement(v, d(m({}, t), { className: e }), /* @__PURE__ */ a.createElement(k, { onClick: () => p("close"), "aria-label": u }, /* @__PURE__ */ a.createElement(z, { size: 12, symbol: { type: "Svg", content: "close" } })));
37
29
  }, v = i.div`
38
30
  display: flex;
39
31
  justify-content: flex-end;
@@ -65,4 +57,4 @@ const D = (o) => {
65
57
  export {
66
58
  D as default
67
59
  };
68
- //# sourceMappingURL=close-button.5d26b7e3.js.map
60
+ //# sourceMappingURL=close-button.0dc0abe1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"close-button.5d26b7e3.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;AAEpE,SACK,gBAAAC,EAAA,cAAAC,GAAAC,EAAAC,EAAA,IAA0BT,IAA1B;AAAA,IAAiC,WAAAD;AAAA,EAAA,IAC7B,gBAAAO,EAAA,cAAAI,GAAA;AAAA,IAAa,SAAS,MAAMR,EAAS,OAAO;AAAA,IAAG,cAAYE;AAAA,EAAA,GACvD,gBAAAE,EAAA,cAAAK,GAAA;AAAA,IAAkB,MAAM;AAAA,IAAI,QAAQ,EAAE,MAAM,OAAO,SAAS,QAAQ;AAAA,EAAG,CAAA,CAC5E,CACJ;AAER,GAIMJ,IAAwBK,EAAO;AAAA;AAAA;AAAA;AAAA,GAM/BF,IAAeE,EAAOC,CAAM;AAAA;AAAA,UAExBC;AAAA,mBACS,CAACC,MAAM;;AAAA,kBAAQlB,IAAAkB,EAAE,MAAM,UAAR,gBAAAlB,EAAe,eAAcC,IAAAiB,EAAE,MAAM,UAAR,gBAAAjB,EAAe;AAAA;AAAA;AAAA;AAAA,sBAGxD,CAACiB,MAAA;;AAAM,UAAAjB,KAAAD,IAAAkB,EAAE,MAAM,kBAAR,gBAAAlB,EAAuB,WAAvB,gBAAAC,EAA+B;AAAA;AAAA;AAAA;AAAA,GAKtDa,IAAoBC,EAAOI,CAAW;AAAA;AAAA;AAAA,kBAG1B,CAACD,MAAM;;AAAA,UAAAlB,IAAAkB,EAAE,MAAM,WAAR,gBAAAlB,EAAgB;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"close-button.0dc0abe1.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,mBACS,CAACC,MAAM;;AAAA,kBAAQlB,IAAAkB,EAAE,MAAM,UAAR,gBAAAlB,EAAe,eAAcC,IAAAiB,EAAE,MAAM,UAAR,gBAAAjB,EAAe;AAAA;AAAA;AAAA;AAAA,sBAGxD,CAACiB,MAAA;;AAAM,UAAAjB,KAAAD,IAAAkB,EAAE,MAAM,kBAAR,gBAAAlB,EAAuB,WAAvB,gBAAAC,EAA+B;AAAA;AAAA;AAAA;AAAA,GAKtDa,IAAoBC,EAAOI,CAAW;AAAA;AAAA;AAAA,kBAG1B,CAACD,MAAM;;AAAA,UAAAlB,IAAAkB,EAAE,MAAM,WAAR,gBAAAlB,EAAgB;AAAA;AAAA;AAAA;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  className: string;
4
4
  };
5
5
  declare const CloseButton: React.FC<Props>;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { createReactComponent as n } from "@telia-ace/widget-ui";
2
2
  const r = (t) => n(
3
3
  t,
4
4
  "close-button",
5
- import("./close-button.5d26b7e3.js"),
5
+ import("./close-button.0dc0abe1.js"),
6
6
  (e) => {
7
7
  e.actions.create("close", (o = {}) => {
8
8
  if (o.preventDefault)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-close-button",
3
- "version": "1.0.22",
3
+ "version": "1.0.23-next.0",
4
4
  "description": "Close button component for ACE Widgets.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "sideEffects": false,
23
23
  "dependencies": {
24
- "@telia-ace/widget-ui": "^1.0.26",
24
+ "@telia-ace/widget-ui": "^1.0.27-next.0",
25
25
  "@webprovisions/platform": "^1.1.2"
26
26
  },
27
27
  "peerDependencies": {
@@ -33,10 +33,10 @@
33
33
  "devDependencies": {
34
34
  "@emotion/react": "^11.10.5",
35
35
  "@emotion/styled": "^11.10.5",
36
- "@telia-ace/widget-core": "^1.0.19",
37
- "@telia-ace/widget-developer-tools": "^1.0.14",
38
- "@types/react": "^18.0.25",
39
- "@types/react-dom": "^18.0.8",
36
+ "@telia-ace/widget-core": "^1.0.20-next.0",
37
+ "@telia-ace/widget-developer-tools": "^1.0.15-next.0",
38
+ "@types/react": "^18.0.26",
39
+ "@types/react-dom": "^18.0.9",
40
40
  "react": "^18.2.0",
41
41
  "react-dom": "^18.2.0"
42
42
  },