@kaizen/components 0.0.0-canary-less-gung-ho-20240308011930 → 0.0.0-canary-tag-2-20240318032208

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.
Files changed (86) hide show
  1. package/dist/cjs/Icon/ThumbsDownIcon.cjs +2 -1
  2. package/dist/cjs/Icon/ThumbsDownIcon.cjs.map +1 -1
  3. package/dist/cjs/Icon/ThumbsDownOffIcon.cjs +17 -0
  4. package/dist/cjs/Icon/ThumbsDownOffIcon.cjs.map +1 -0
  5. package/dist/cjs/Icon/ThumbsDownOnIcon.cjs +17 -0
  6. package/dist/cjs/Icon/ThumbsDownOnIcon.cjs.map +1 -0
  7. package/dist/cjs/Icon/ThumbsUpIcon.cjs +2 -1
  8. package/dist/cjs/Icon/ThumbsUpIcon.cjs.map +1 -1
  9. package/dist/cjs/Icon/ThumbsUpOffIcon.cjs +17 -0
  10. package/dist/cjs/Icon/ThumbsUpOffIcon.cjs.map +1 -0
  11. package/dist/cjs/Icon/ThumbsUpOnIcon.cjs +17 -0
  12. package/dist/cjs/Icon/ThumbsUpOnIcon.cjs.map +1 -0
  13. package/dist/cjs/KaizenProvider/KaizenProvider.cjs +26 -17
  14. package/dist/cjs/KaizenProvider/KaizenProvider.cjs.map +1 -1
  15. package/dist/cjs/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.cjs +20 -0
  16. package/dist/cjs/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.cjs.map +1 -0
  17. package/dist/cjs/Notification/ToastNotification/context/ToastNotificationContext.cjs +59 -2
  18. package/dist/cjs/Notification/ToastNotification/context/ToastNotificationContext.cjs.map +1 -1
  19. package/dist/cjs/Tag/Tag.cjs +123 -3
  20. package/dist/cjs/Tag/Tag.cjs.map +1 -1
  21. package/dist/cjs/Tag/Tag.module.scss.cjs +38 -0
  22. package/dist/cjs/Tag/Tag.module.scss.cjs.map +1 -0
  23. package/dist/cjs/dts/Icon/ThumbsDownIcon.d.ts +1 -0
  24. package/dist/cjs/dts/Icon/ThumbsDownOffIcon.d.ts +3 -0
  25. package/dist/cjs/dts/Icon/ThumbsDownOnIcon.d.ts +3 -0
  26. package/dist/cjs/dts/Icon/ThumbsUpIcon.d.ts +1 -0
  27. package/dist/cjs/dts/Icon/ThumbsUpOffIcon.d.ts +3 -0
  28. package/dist/cjs/dts/Icon/ThumbsUpOnIcon.d.ts +3 -0
  29. package/dist/cjs/dts/Icon/index.d.ts +4 -0
  30. package/dist/cjs/dts/Tag/Tag.d.ts +4 -0
  31. package/dist/cjs/dts/index.d.ts +1 -0
  32. package/dist/cjs/dts/utils/index.d.ts +1 -0
  33. package/dist/cjs/index.cjs +11 -0
  34. package/dist/cjs/index.cjs.map +1 -1
  35. package/dist/cjs/index.css +51 -50
  36. package/dist/esm/Icon/ThumbsDownIcon.mjs +2 -1
  37. package/dist/esm/Icon/ThumbsDownIcon.mjs.map +1 -1
  38. package/dist/esm/Icon/ThumbsDownOffIcon.mjs +15 -0
  39. package/dist/esm/Icon/ThumbsDownOffIcon.mjs.map +1 -0
  40. package/dist/esm/Icon/ThumbsDownOnIcon.mjs +15 -0
  41. package/dist/esm/Icon/ThumbsDownOnIcon.mjs.map +1 -0
  42. package/dist/esm/Icon/ThumbsUpIcon.mjs +2 -1
  43. package/dist/esm/Icon/ThumbsUpIcon.mjs.map +1 -1
  44. package/dist/esm/Icon/ThumbsUpOffIcon.mjs +15 -0
  45. package/dist/esm/Icon/ThumbsUpOffIcon.mjs.map +1 -0
  46. package/dist/esm/Icon/ThumbsUpOnIcon.mjs +15 -0
  47. package/dist/esm/Icon/ThumbsUpOnIcon.mjs.map +1 -0
  48. package/dist/esm/KaizenProvider/KaizenProvider.mjs +27 -19
  49. package/dist/esm/KaizenProvider/KaizenProvider.mjs.map +1 -1
  50. package/dist/esm/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.mjs +18 -0
  51. package/dist/esm/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.mjs.map +1 -0
  52. package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs +60 -4
  53. package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs.map +1 -1
  54. package/dist/esm/Tag/Tag.mjs +123 -3
  55. package/dist/esm/Tag/Tag.mjs.map +1 -1
  56. package/dist/esm/Tag/Tag.module.scss.mjs +36 -0
  57. package/dist/esm/Tag/Tag.module.scss.mjs.map +1 -0
  58. package/dist/esm/dts/Icon/ThumbsDownIcon.d.ts +1 -0
  59. package/dist/esm/dts/Icon/ThumbsDownOffIcon.d.ts +3 -0
  60. package/dist/esm/dts/Icon/ThumbsDownOnIcon.d.ts +3 -0
  61. package/dist/esm/dts/Icon/ThumbsUpIcon.d.ts +1 -0
  62. package/dist/esm/dts/Icon/ThumbsUpOffIcon.d.ts +3 -0
  63. package/dist/esm/dts/Icon/ThumbsUpOnIcon.d.ts +3 -0
  64. package/dist/esm/dts/Icon/index.d.ts +4 -0
  65. package/dist/esm/dts/Tag/Tag.d.ts +4 -0
  66. package/dist/esm/dts/index.d.ts +1 -0
  67. package/dist/esm/dts/utils/index.d.ts +1 -0
  68. package/dist/esm/index.css +51 -50
  69. package/dist/esm/index.mjs +5 -0
  70. package/dist/esm/index.mjs.map +1 -1
  71. package/dist/index.d.ts +44 -4
  72. package/dist/styles.css +1 -1
  73. package/package.json +4 -3
  74. package/src/Icon/ThumbsDownIcon.tsx +2 -1
  75. package/src/Icon/ThumbsDownOffIcon.tsx +18 -0
  76. package/src/Icon/ThumbsDownOnIcon.tsx +18 -0
  77. package/src/Icon/ThumbsUpIcon.tsx +2 -1
  78. package/src/Icon/ThumbsUpOffIcon.tsx +18 -0
  79. package/src/Icon/ThumbsUpOnIcon.tsx +18 -0
  80. package/src/Icon/_docs/Icon.stories.tsx +31 -37
  81. package/src/Icon/_docs/icon.stories.scss +15 -8
  82. package/src/Icon/index.ts +4 -0
  83. package/src/KaizenProvider/KaizenProvider.tsx +22 -22
  84. package/src/Tag/Tag.tsx +159 -3
  85. package/src/index.ts +1 -0
  86. package/src/utils/index.ts +2 -0
@@ -4,11 +4,12 @@ import { SVG } from './subcomponents/SVG/SVG.mjs';
4
4
 
5
5
  // This file is autogenerated by wrapSVGs.ts
6
6
  // Changes to this file will be overwritten
7
+ /** @deprecated Use `<ThumbsDownIconOn/>` or `<ThumbsDownIconOff/>` */
7
8
  var ThumbsDownIcon = function (props) {
8
9
  var uniqueId = useId();
9
10
  var svgContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("path", {
10
11
  id: uniqueId,
11
- d: "M5.91 3.183c-.566 0-1.05.341-1.254.832L2.597 8.821c-.061.156-.095.32-.095.497v1.364c0 .75.613 1.363 1.363 1.363h4.301L7.52 15.16l-.02.218c0 .28.115.539.3.723l.722.716 4.492-4.493c.245-.245.395-.586.395-.96V4.546c0-.75-.613-1.364-1.363-1.364zm8.862 8.18h2.726v-8.18h-2.726z"
12
+ d: "M5.91 3.183c-.566 0-1.05.341-1.254.832L2.597 8.821q-.093.233-.095.497v1.364c0 .75.613 1.363 1.363 1.363h4.301L7.52 15.16l-.02.218c0 .28.115.539.3.723l.722.716 4.492-4.493c.245-.245.395-.586.395-.96V4.546c0-.75-.613-1.364-1.363-1.364zm8.862 8.18h2.726v-8.18h-2.726z"
12
13
  })), /*#__PURE__*/React.createElement("use", {
13
14
  fill: "currentColor",
14
15
  href: "#".concat(uniqueId),
@@ -1 +1 @@
1
- {"version":3,"file":"ThumbsDownIcon.mjs","sources":["../../../src/Icon/ThumbsDownIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React, { useId } from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\nexport const ThumbsDownIcon = (props: IconProps): JSX.Element => {\n const uniqueId = useId()\n const svgContent = (\n <>\n <defs>\n <path\n id={uniqueId}\n d=\"M5.91 3.183c-.566 0-1.05.341-1.254.832L2.597 8.821c-.061.156-.095.32-.095.497v1.364c0 .75.613 1.363 1.363 1.363h4.301L7.52 15.16l-.02.218c0 .28.115.539.3.723l.722.716 4.492-4.493c.245-.245.395-.586.395-.96V4.546c0-.75-.613-1.364-1.363-1.364zm8.862 8.18h2.726v-8.18h-2.726z\"\n />\n </defs>\n <use fill=\"currentColor\" href={`#${uniqueId}`} fillRule=\"evenodd\" />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsDownIcon","props","uniqueId","useId","svgContent","React","createElement","Fragment","id","d","fill","href","concat","fillRule","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMO,IAAMA,cAAc,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAC7C,IAAMC,QAAQ,GAAGC,KAAK,EAAE;EACxB,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA,IAAA,eACED,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,EAAE,EAAEN,QAAQ;IACZO,CAAC,EAAC;EAAkR,EACpR,CACG,eACPJ,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKI,IAAI,EAAC,cAAc;IAACC,IAAI,EAAE,GAAI,CAAAC,MAAA,CAAAV,QAAQ,CAAE;IAAEW,QAAQ,EAAC;EAAY,CAAA,CAAA,CAEvE;EACD,oBAAOR,oBAACS,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKd,KAAK,CAAG,EAAAG,UAAU,CAAO;AAC3C,CAAA;"}
1
+ {"version":3,"file":"ThumbsDownIcon.mjs","sources":["../../../src/Icon/ThumbsDownIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React, { useId } from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\n/** @deprecated Use `<ThumbsDownIconOn/>` or `<ThumbsDownIconOff/>` */\nexport const ThumbsDownIcon = (props: IconProps): JSX.Element => {\n const uniqueId = useId()\n const svgContent = (\n <>\n <defs>\n <path\n id={uniqueId}\n d=\"M5.91 3.183c-.566 0-1.05.341-1.254.832L2.597 8.821q-.093.233-.095.497v1.364c0 .75.613 1.363 1.363 1.363h4.301L7.52 15.16l-.02.218c0 .28.115.539.3.723l.722.716 4.492-4.493c.245-.245.395-.586.395-.96V4.546c0-.75-.613-1.364-1.363-1.364zm8.862 8.18h2.726v-8.18h-2.726z\"\n />\n </defs>\n <use fill=\"currentColor\" href={`#${uniqueId}`} fillRule=\"evenodd\" />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsDownIcon","props","uniqueId","useId","svgContent","React","createElement","Fragment","id","d","fill","href","concat","fillRule","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMA;AACO,IAAMA,cAAc,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAC7C,IAAMC,QAAQ,GAAGC,KAAK,EAAE;EACxB,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA,IAAA,eACED,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,EAAE,EAAEN,QAAQ;IACZO,CAAC,EAAC;EAA0Q,EAC5Q,CACG,eACPJ,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKI,IAAI,EAAC,cAAc;IAACC,IAAI,EAAE,GAAI,CAAAC,MAAA,CAAAV,QAAQ,CAAE;IAAEW,QAAQ,EAAC;EAAY,CAAA,CAAA,CAEvE;EACD,oBAAOR,oBAACS,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKd,KAAK,CAAG,EAAAG,UAAU,CAAO;AAC3C,CAAA;"}
@@ -0,0 +1,15 @@
1
+ import { __assign } from 'tslib';
2
+ import React from 'react';
3
+ import { SVG } from './subcomponents/SVG/SVG.mjs';
4
+
5
+ // This file is autogenerated by wrapSVGs.ts
6
+ // Changes to this file will be overwritten
7
+ var ThumbsDownOffIcon = function (props) {
8
+ var svgContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
9
+ fill: "currentColor",
10
+ d: "M5.224 3.253h8.766v10L8.461 18.75l-.705-.705a1 1 0 0 1-.215-.344 1.1 1.1 0 0 1-.086-.403v-.211l.885-3.834H2.756q-.594 0-1.05-.456t-.456-1.05V10.4q0-.13.034-.28a3 3 0 0 1 .075-.281l2.388-5.635q.18-.4.6-.676a1.6 1.6 0 0 1 .877-.276m7.516 1.25H5.224a.4.4 0 0 0-.18.048.3.3 0 0 0-.14.16L2.5 10.337v1.41a.25.25 0 0 0 .072.185.25.25 0 0 0 .184.072H9.92L8.875 16.57l3.865-3.849zm1.25 8.75v-1.25h2.677v-7.5H13.99v-1.25h3.927v10z"
11
+ }));
12
+ return /*#__PURE__*/React.createElement(SVG, __assign({}, props), svgContent);
13
+ };
14
+ export { ThumbsDownOffIcon };
15
+ //# sourceMappingURL=ThumbsDownOffIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThumbsDownOffIcon.mjs","sources":["../../../src/Icon/ThumbsDownOffIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\nexport const ThumbsDownOffIcon = (props: IconProps): JSX.Element => {\n const svgContent = (\n <>\n <path\n fill=\"currentColor\"\n d=\"M5.224 3.253h8.766v10L8.461 18.75l-.705-.705a1 1 0 0 1-.215-.344 1.1 1.1 0 0 1-.086-.403v-.211l.885-3.834H2.756q-.594 0-1.05-.456t-.456-1.05V10.4q0-.13.034-.28a3 3 0 0 1 .075-.281l2.388-5.635q.18-.4.6-.676a1.6 1.6 0 0 1 .877-.276m7.516 1.25H5.224a.4.4 0 0 0-.18.048.3.3 0 0 0-.14.16L2.5 10.337v1.41a.25.25 0 0 0 .072.185.25.25 0 0 0 .184.072H9.92L8.875 16.57l3.865-3.849zm1.25 8.75v-1.25h2.677v-7.5H13.99v-1.25h3.927v10z\"\n />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsDownOffIcon","props","svgContent","React","createElement","Fragment","fill","d","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMO,IAAMA,iBAAiB,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAChD,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,IAAI,EAAC,cAAc;IACnBC,CAAC,EAAC;GAAsa,CACxa,CAEL;EACD,oBAAOJ,oBAACK,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKR,KAAK,CAAG,EAAAC,UAAU,CAAO;AAC3C,CAAA;"}
@@ -0,0 +1,15 @@
1
+ import { __assign } from 'tslib';
2
+ import React from 'react';
3
+ import { SVG } from './subcomponents/SVG/SVG.mjs';
4
+
5
+ // This file is autogenerated by wrapSVGs.ts
6
+ // Changes to this file will be overwritten
7
+ var ThumbsDownOnIcon = function (props) {
8
+ var svgContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
9
+ fill: "currentColor",
10
+ d: "M5.224 3.253h8.253v10L7.95 18.75l-.705-.705a1 1 0 0 1-.216-.344 1.1 1.1 0 0 1-.086-.403v-.211l.885-3.834h-5.07q-.595 0-1.051-.456t-.456-1.05V10.4a1.6 1.6 0 0 1 .109-.561l2.388-5.635q.18-.4.6-.676a1.6 1.6 0 0 1 .877-.276m9.503 10v-10h3.19v10z"
11
+ }));
12
+ return /*#__PURE__*/React.createElement(SVG, __assign({}, props), svgContent);
13
+ };
14
+ export { ThumbsDownOnIcon };
15
+ //# sourceMappingURL=ThumbsDownOnIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThumbsDownOnIcon.mjs","sources":["../../../src/Icon/ThumbsDownOnIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\nexport const ThumbsDownOnIcon = (props: IconProps): JSX.Element => {\n const svgContent = (\n <>\n <path\n fill=\"currentColor\"\n d=\"M5.224 3.253h8.253v10L7.95 18.75l-.705-.705a1 1 0 0 1-.216-.344 1.1 1.1 0 0 1-.086-.403v-.211l.885-3.834h-5.07q-.595 0-1.051-.456t-.456-1.05V10.4a1.6 1.6 0 0 1 .109-.561l2.388-5.635q.18-.4.6-.676a1.6 1.6 0 0 1 .877-.276m9.503 10v-10h3.19v10z\"\n />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsDownOnIcon","props","svgContent","React","createElement","Fragment","fill","d","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMO,IAAMA,gBAAgB,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAC/C,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,IAAI,EAAC,cAAc;IACnBC,CAAC,EAAC;GAAmP,CACrP,CAEL;EACD,oBAAOJ,oBAACK,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKR,KAAK,CAAG,EAAAC,UAAU,CAAO;AAC3C,CAAA;"}
@@ -4,11 +4,12 @@ import { SVG } from './subcomponents/SVG/SVG.mjs';
4
4
 
5
5
  // This file is autogenerated by wrapSVGs.ts
6
6
  // Changes to this file will be overwritten
7
+ /** @deprecated Use `<ThumbsUpIconOn/>` or `<ThumbsUpIconOff/>` */
7
8
  var ThumbsUpIcon = function (props) {
8
9
  var uniqueId = useId();
9
10
  var svgContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("path", {
10
11
  id: uniqueId,
11
- d: "M5.228 16.817v-8.18H2.502v8.18zm10.907-8.862h-4.301l.647-3.115.02-.218c0-.28-.115-.539-.3-.723l-.722-.716-4.485 4.493a1.333 1.333 0 0 0-.402.96v6.817c0 .75.613 1.364 1.363 1.364h6.135c.566 0 1.05-.341 1.254-.832l2.059-4.806c.061-.156.095-.32.095-.497V9.318c0-.75-.613-1.363-1.363-1.363"
12
+ d: "M5.228 16.817v-8.18H2.502v8.18zm10.907-8.862h-4.301l.647-3.115.02-.218c0-.28-.115-.539-.3-.723l-.722-.716-4.485 4.493a1.33 1.33 0 0 0-.402.96v6.817c0 .75.613 1.364 1.363 1.364h6.135c.566 0 1.05-.341 1.254-.832l2.059-4.806q.093-.233.095-.497V9.318c0-.75-.613-1.363-1.363-1.363"
12
13
  })), /*#__PURE__*/React.createElement("use", {
13
14
  fill: "currentColor",
14
15
  href: "#".concat(uniqueId),
@@ -1 +1 @@
1
- {"version":3,"file":"ThumbsUpIcon.mjs","sources":["../../../src/Icon/ThumbsUpIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React, { useId } from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\nexport const ThumbsUpIcon = (props: IconProps): JSX.Element => {\n const uniqueId = useId()\n const svgContent = (\n <>\n <defs>\n <path\n id={uniqueId}\n d=\"M5.228 16.817v-8.18H2.502v8.18zm10.907-8.862h-4.301l.647-3.115.02-.218c0-.28-.115-.539-.3-.723l-.722-.716-4.485 4.493a1.333 1.333 0 0 0-.402.96v6.817c0 .75.613 1.364 1.363 1.364h6.135c.566 0 1.05-.341 1.254-.832l2.059-4.806c.061-.156.095-.32.095-.497V9.318c0-.75-.613-1.363-1.363-1.363\"\n />\n </defs>\n <use fill=\"currentColor\" href={`#${uniqueId}`} fillRule=\"evenodd\" />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsUpIcon","props","uniqueId","useId","svgContent","React","createElement","Fragment","id","d","fill","href","concat","fillRule","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMO,IAAMA,YAAY,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAC3C,IAAMC,QAAQ,GAAGC,KAAK,EAAE;EACxB,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA,IAAA,eACED,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,EAAE,EAAEN,QAAQ;IACZO,CAAC,EAAC;EAA+R,EACjS,CACG,eACPJ,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKI,IAAI,EAAC,cAAc;IAACC,IAAI,EAAE,GAAI,CAAAC,MAAA,CAAAV,QAAQ,CAAE;IAAEW,QAAQ,EAAC;EAAY,CAAA,CAAA,CAEvE;EACD,oBAAOR,oBAACS,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKd,KAAK,CAAG,EAAAG,UAAU,CAAO;AAC3C,CAAA;"}
1
+ {"version":3,"file":"ThumbsUpIcon.mjs","sources":["../../../src/Icon/ThumbsUpIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React, { useId } from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\n/** @deprecated Use `<ThumbsUpIconOn/>` or `<ThumbsUpIconOff/>` */\nexport const ThumbsUpIcon = (props: IconProps): JSX.Element => {\n const uniqueId = useId()\n const svgContent = (\n <>\n <defs>\n <path\n id={uniqueId}\n d=\"M5.228 16.817v-8.18H2.502v8.18zm10.907-8.862h-4.301l.647-3.115.02-.218c0-.28-.115-.539-.3-.723l-.722-.716-4.485 4.493a1.33 1.33 0 0 0-.402.96v6.817c0 .75.613 1.364 1.363 1.364h6.135c.566 0 1.05-.341 1.254-.832l2.059-4.806q.093-.233.095-.497V9.318c0-.75-.613-1.363-1.363-1.363\"\n />\n </defs>\n <use fill=\"currentColor\" href={`#${uniqueId}`} fillRule=\"evenodd\" />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsUpIcon","props","uniqueId","useId","svgContent","React","createElement","Fragment","id","d","fill","href","concat","fillRule","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMA;AACO,IAAMA,YAAY,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAC3C,IAAMC,QAAQ,GAAGC,KAAK,EAAE;EACxB,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA,IAAA,eACED,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,EAAE,EAAEN,QAAQ;IACZO,CAAC,EAAC;EAAqR,EACvR,CACG,eACPJ,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKI,IAAI,EAAC,cAAc;IAACC,IAAI,EAAE,GAAI,CAAAC,MAAA,CAAAV,QAAQ,CAAE;IAAEW,QAAQ,EAAC;EAAY,CAAA,CAAA,CAEvE;EACD,oBAAOR,oBAACS,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKd,KAAK,CAAG,EAAAG,UAAU,CAAO;AAC3C,CAAA;"}
@@ -0,0 +1,15 @@
1
+ import { __assign } from 'tslib';
2
+ import React from 'react';
3
+ import { SVG } from './subcomponents/SVG/SVG.mjs';
4
+
5
+ // This file is autogenerated by wrapSVGs.ts
6
+ // Changes to this file will be overwritten
7
+ var ThumbsUpOffIcon = function (props) {
8
+ var svgContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
9
+ fill: "currentColor",
10
+ d: "M14.776 17.083H6.01v-10l5.529-5.496.705.705q.13.129.215.344.086.213.086.403v.211l-.885 3.833h5.584q.594 0 1.05.456t.456 1.05v1.347q0 .13-.034.28-.033.15-.075.28l-2.388 5.635q-.18.401-.6.677a1.6 1.6 0 0 1-.877.275m-7.516-1.25h7.516a.4.4 0 0 0 .18-.048.3.3 0 0 0 .14-.16L17.5 10V8.59a.25.25 0 0 0-.072-.184.25.25 0 0 0-.184-.073H10.08l1.045-4.567-3.865 3.85zm-1.25-8.75v1.25H3.333v7.5H6.01v1.25H2.083v-10z"
11
+ }));
12
+ return /*#__PURE__*/React.createElement(SVG, __assign({}, props), svgContent);
13
+ };
14
+ export { ThumbsUpOffIcon };
15
+ //# sourceMappingURL=ThumbsUpOffIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThumbsUpOffIcon.mjs","sources":["../../../src/Icon/ThumbsUpOffIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\nexport const ThumbsUpOffIcon = (props: IconProps): JSX.Element => {\n const svgContent = (\n <>\n <path\n fill=\"currentColor\"\n d=\"M14.776 17.083H6.01v-10l5.529-5.496.705.705q.13.129.215.344.086.213.086.403v.211l-.885 3.833h5.584q.594 0 1.05.456t.456 1.05v1.347q0 .13-.034.28-.033.15-.075.28l-2.388 5.635q-.18.401-.6.677a1.6 1.6 0 0 1-.877.275m-7.516-1.25h7.516a.4.4 0 0 0 .18-.048.3.3 0 0 0 .14-.16L17.5 10V8.59a.25.25 0 0 0-.072-.184.25.25 0 0 0-.184-.073H10.08l1.045-4.567-3.865 3.85zm-1.25-8.75v1.25H3.333v7.5H6.01v1.25H2.083v-10z\"\n />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsUpOffIcon","props","svgContent","React","createElement","Fragment","fill","d","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMO,IAAMA,eAAe,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAC9C,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,IAAI,EAAC,cAAc;IACnBC,CAAC,EAAC;GAAqZ,CACvZ,CAEL;EACD,oBAAOJ,oBAACK,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKR,KAAK,CAAG,EAAAC,UAAU,CAAO;AAC3C,CAAA;"}
@@ -0,0 +1,15 @@
1
+ import { __assign } from 'tslib';
2
+ import React from 'react';
3
+ import { SVG } from './subcomponents/SVG/SVG.mjs';
4
+
5
+ // This file is autogenerated by wrapSVGs.ts
6
+ // Changes to this file will be overwritten
7
+ var ThumbsUpOnIcon = function (props) {
8
+ var svgContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
9
+ fill: "currentColor",
10
+ d: "M14.776 17.083H6.522v-10l5.53-5.496.704.705q.13.129.216.344.086.213.086.403v.211l-.885 3.833h5.07q.595 0 1.051.456t.456 1.05v1.347a1.6 1.6 0 0 1-.109.56l-2.388 5.635q-.18.401-.6.677a1.6 1.6 0 0 1-.877.275m-9.504-10v10H2.083v-10z"
11
+ }));
12
+ return /*#__PURE__*/React.createElement(SVG, __assign({}, props), svgContent);
13
+ };
14
+ export { ThumbsUpOnIcon };
15
+ //# sourceMappingURL=ThumbsUpOnIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThumbsUpOnIcon.mjs","sources":["../../../src/Icon/ThumbsUpOnIcon.tsx"],"sourcesContent":["// This file is autogenerated by wrapSVGs.ts\n// Changes to this file will be overwritten\n\nimport React from \"react\"\nimport { SVG } from \"~components/Icon/subcomponents/SVG\"\nimport type { IconProps } from \"~components/Icon/types\"\n\nexport const ThumbsUpOnIcon = (props: IconProps): JSX.Element => {\n const svgContent = (\n <>\n <path\n fill=\"currentColor\"\n d=\"M14.776 17.083H6.522v-10l5.53-5.496.704.705q.13.129.216.344.086.213.086.403v.211l-.885 3.833h5.07q.595 0 1.051.456t.456 1.05v1.347a1.6 1.6 0 0 1-.109.56l-2.388 5.635q-.18.401-.6.677a1.6 1.6 0 0 1-.877.275m-9.504-10v10H2.083v-10z\"\n />\n </>\n )\n return <SVG {...props}>{svgContent}</SVG>\n}\n"],"names":["ThumbsUpOnIcon","props","svgContent","React","createElement","Fragment","fill","d","SVG","__assign"],"mappings":";;;;AAAA;AACA;AAMO,IAAMA,cAAc,GAAG,SAAAA,CAACC,KAAgB,EAAA;EAC7C,IAAMC,UAAU,gBACdC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,KACE,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAAE,IAAI,EAAC,cAAc;IACnBC,CAAC,EAAC;GAAsO,CACxO,CAEL;EACD,oBAAOJ,oBAACK,GAAG,EAAAC,QAAA,CAAA,CAAA,CAAA,EAAKR,KAAK,CAAG,EAAAC,UAAU,CAAO;AAC3C,CAAA;"}
@@ -1,25 +1,33 @@
1
- import React from 'react';
1
+ import React, { useState, useEffect } from 'react';
2
+ import '../Notification/InlineNotification/InlineNotification.mjs';
3
+ import '../Notification/GlobalNotification/GlobalNotification.mjs';
4
+ import '../Notification/ToastNotification/ToastNotification/ToastNotification.mjs';
5
+ import { ToastNotificationsList } from '../Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs';
6
+ import { ToastNotificationProvider } from '../Notification/ToastNotification/context/ToastNotificationContext.mjs';
2
7
  import { FontDefinitions } from './subcomponents/FontDefinitions/FontDefinitions.mjs';
8
+ import { OptionalIntlProvider } from './subcomponents/OptionalIntlProvider/OptionalIntlProvider.mjs';
3
9
  const KaizenProvider = /*#__PURE__*/function () {
4
10
  const KaizenProvider = function (_a) {
5
- // const [documentIsAvailable, setDocumentIsAvailable] = useState<boolean>(false)
6
- // const [notificationsList, setNotificationsList] = useState<JSX.Element>()
7
- var children = _a.children;
8
- _a.locale;
9
- // useEffect(() => {
10
- // // SSR does not have a document, which is required for ToastNotificationsList.
11
- // // Await document render before rendering the component.
12
- // if (document !== undefined) {
13
- // setNotificationsList(<ToastNotificationsList />)
14
- // setDocumentIsAvailable(true)
15
- // }
16
- // }, [documentIsAvailable])
17
- return (
18
- /*#__PURE__*/
19
- // <OptionalIntlProvider locale={locale}>
20
- React.createElement(React.Fragment, null, children, /*#__PURE__*/React.createElement(FontDefinitions, null))
21
- // </OptionalIntlProvider>
22
- );
11
+ var children = _a.children,
12
+ _b = _a.locale,
13
+ locale = _b === void 0 ? "en" : _b;
14
+ var _c = useState(false),
15
+ documentIsAvailable = _c[0],
16
+ setDocumentIsAvailable = _c[1];
17
+ var _d = useState(),
18
+ notificationsList = _d[0],
19
+ setNotificationsList = _d[1];
20
+ useEffect(function () {
21
+ // SSR does not have a document, which is required for ToastNotificationsList.
22
+ // Await document render before rendering the component.
23
+ if (document !== undefined) {
24
+ setNotificationsList( /*#__PURE__*/React.createElement(ToastNotificationsList, null));
25
+ setDocumentIsAvailable(true);
26
+ }
27
+ }, [documentIsAvailable]);
28
+ return /*#__PURE__*/React.createElement(OptionalIntlProvider, {
29
+ locale: locale
30
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ToastNotificationProvider, null, notificationsList, children), /*#__PURE__*/React.createElement(FontDefinitions, null)));
23
31
  };
24
32
  KaizenProvider.displayName = "KaizenProvider";
25
33
  return KaizenProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"KaizenProvider.mjs","sources":["../../../src/KaizenProvider/KaizenProvider.tsx"],"sourcesContent":["import React from \"react\"\n// import { ToastNotificationsList } from \"~components/Notification\"\n// import { ToastNotificationProvider } from \"~components/Notification/ToastNotification/context/ToastNotificationContext\"\nimport { FontDefinitions } from \"./subcomponents/FontDefinitions\"\n// import { OptionalIntlProvider } from \"./subcomponents/OptionalIntlProvider\"\n\nexport type KaizenProviderProps = {\n children: React.ReactNode\n locale?: string\n}\n\nexport const KaizenProvider = ({\n children,\n locale = \"en\",\n}: KaizenProviderProps): JSX.Element =>\n // const [documentIsAvailable, setDocumentIsAvailable] = useState<boolean>(false)\n // const [notificationsList, setNotificationsList] = useState<JSX.Element>()\n\n // useEffect(() => {\n // // SSR does not have a document, which is required for ToastNotificationsList.\n // // Await document render before rendering the component.\n // if (document !== undefined) {\n // setNotificationsList(<ToastNotificationsList />)\n // setDocumentIsAvailable(true)\n // }\n // }, [documentIsAvailable])\n\n (\n // <OptionalIntlProvider locale={locale}>\n <>\n {/* <ToastNotificationProvider> */}\n {/* {notificationsList} */}\n {children}\n {/* </ToastNotificationProvider> */}\n <FontDefinitions />\n </>\n // </OptionalIntlProvider>\n )\n\n\nKaizenProvider.displayName = \"KaizenProvider\"\n"],"names":["KaizenProvider","_a","children","locale","React","createElement","Fragment","FontDefinitions","displayName"],"mappings":";;MAWaA,cAAc;EAAA,MAAdA,cAAc,GAAG,SAAAA,CAACC,EAGT,EAAA;;;IAFpB,IAAAC,QAAQ,cAAA;IACRD,EAAA,CAAAE,MAAa;;;;;;;;;IAcZ;MAAA;;MAEGC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,EAGKJ,QAAQ,eAEXE,KAAC,CAAAC,aAAA,CAAAE,eAAe,OAAG;;;EAPxB,CAUA;EAGHP,cAAc,CAACQ,WAAW,GAAG,gBAAgB;EAAA,OA7BhCR,cAAc;AAAA;"}
1
+ {"version":3,"file":"KaizenProvider.mjs","sources":["../../../src/KaizenProvider/KaizenProvider.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\"\nimport { ToastNotificationsList } from \"~components/Notification\"\nimport { ToastNotificationProvider } from \"~components/Notification/ToastNotification/context/ToastNotificationContext\"\nimport { FontDefinitions } from \"./subcomponents/FontDefinitions\"\nimport { OptionalIntlProvider } from \"./subcomponents/OptionalIntlProvider\"\n\nexport type KaizenProviderProps = {\n children: React.ReactNode\n locale?: string\n}\n\nexport const KaizenProvider = ({\n children,\n locale = \"en\",\n}: KaizenProviderProps): JSX.Element => {\n const [documentIsAvailable, setDocumentIsAvailable] = useState<boolean>(false)\n const [notificationsList, setNotificationsList] = useState<JSX.Element>()\n\n useEffect(() => {\n // SSR does not have a document, which is required for ToastNotificationsList.\n // Await document render before rendering the component.\n if (document !== undefined) {\n setNotificationsList(<ToastNotificationsList />)\n setDocumentIsAvailable(true)\n }\n }, [documentIsAvailable])\n\n return (\n <OptionalIntlProvider locale={locale}>\n <>\n <ToastNotificationProvider>\n {notificationsList}\n {children}\n </ToastNotificationProvider>\n <FontDefinitions />\n </>\n </OptionalIntlProvider>\n )\n}\n\nKaizenProvider.displayName = \"KaizenProvider\"\n"],"names":["KaizenProvider","_a","children","_b","locale","_c","useState","documentIsAvailable","setDocumentIsAvailable","_d","notificationsList","setNotificationsList","useEffect","document","undefined","React","createElement","ToastNotificationsList","OptionalIntlProvider","Fragment","ToastNotificationProvider","FontDefinitions","displayName"],"mappings":";;;;;;;;MAWaA,cAAc;EAAA,MAAdA,cAAc,GAAG,SAAAA,CAACC,EAGT,EAAA;IAFpB,IAAAC,QAAQ,cAAA;MACRC,EAAA,GAAAF,EAAA,CAAAG,MAAa;MAAbA,MAAM,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,IAAI,GAAAA,EAAA;IAEP,IAAAE,EAAA,GAAgDC,QAAQ,CAAU,KAAK,CAAC;MAAvEC,mBAAmB,GAAAF,EAAA,CAAA,CAAA,CAAA;MAAEG,sBAAsB,GAAAH,EAAA,CAAA,CAAA,CAA4B;IACxE,IAAAI,EAAA,GAA4CH,QAAQ,CAAe,CAAA;MAAlEI,iBAAiB,GAAAD,EAAA,CAAA,CAAA,CAAA;MAAEE,oBAAoB,GAAAF,EAAA,CAAA,CAAA,CAA2B;IAEzEG,SAAS,CAAC,YAAA;;;MAGR,IAAIC,QAAQ,KAAKC,SAAS,EAAE;QAC1BH,oBAAoB,eAACI,KAAA,CAAAC,aAAA,CAACC,sBAAsB,EAAA,IAAA,CAAG,CAAC;QAChDT,sBAAsB,CAAC,IAAI,CAAC;MAC7B;IACH,CAAC,EAAE,CAACD,mBAAmB,CAAC,CAAC;IAEzB,oBACEQ,KAAC,CAAAC,aAAA,CAAAE,oBAAoB,EAAC;MAAAd,MAAM,EAAEA;IAAM,CAAA,eAClCW,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAI,QAAA,EAAA,IAAA,eACEJ,KAAA,CAAAC,aAAA,CAACI,yBAAyB,EAAA,IAAA,EACvBV,iBAAiB,EACjBR,QAAQ,CACiB,eAC5Ba,KAAA,CAAAC,aAAA,CAACK,eAAe,EAAA,IAAA,CAAG,CAClB,CACkB;EAE3B,CAAC;EAEDrB,cAAc,CAACsB,WAAW,GAAG,gBAAgB;EAAA,OA7BhCtB,cAAc;AAAA;"}
@@ -0,0 +1,18 @@
1
+ import React, { useContext } from 'react';
2
+ import { StaticIntlProvider } from '@cultureamp/i18n-react-intl';
3
+ import { IntlContext } from 'react-intl';
4
+ const OptionalIntlProvider = /*#__PURE__*/function () {
5
+ const OptionalIntlProvider = function (_a) {
6
+ var locale = _a.locale,
7
+ children = _a.children;
8
+ var parent = useContext(IntlContext);
9
+ if (parent) return children;
10
+ return /*#__PURE__*/React.createElement(StaticIntlProvider, {
11
+ locale: locale
12
+ }, children);
13
+ };
14
+ OptionalIntlProvider.displayName = "OptionalIntlProvider";
15
+ return OptionalIntlProvider;
16
+ }();
17
+ export { OptionalIntlProvider };
18
+ //# sourceMappingURL=OptionalIntlProvider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OptionalIntlProvider.mjs","sources":["../../../../../src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { StaticIntlProvider } from \"@cultureamp/i18n-react-intl\"\nimport { IntlContext } from \"react-intl\"\n\ntype Props = {\n locale: string\n children: React.ReactElement\n}\nexport const OptionalIntlProvider = ({\n locale,\n children,\n}: Props): JSX.Element => {\n const parent = useContext(IntlContext)\n\n if (parent) return children\n return <StaticIntlProvider locale={locale}>{children}</StaticIntlProvider>\n}\n\nOptionalIntlProvider.displayName = \"OptionalIntlProvider\"\n"],"names":["OptionalIntlProvider","_a","locale","children","parent","useContext","IntlContext","React","createElement","StaticIntlProvider","displayName"],"mappings":";;;MAQaA,oBAAoB;EAAA,MAApBA,oBAAoB,GAAG,SAAAA,CAACC,EAG7B,EAAA;QAFNC,MAAM,GAAAD,EAAA,CAAAC,MAAA;MACNC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;IAER,IAAMC,MAAM,GAAGC,UAAU,CAACC,WAAW,CAAC;IAEtC,IAAIF,MAAM,EAAE,OAAOD,QAAQ;IAC3B,oBAAOI,KAAA,CAAAC,aAAA,CAACC,kBAAkB,EAAC;MAAAP,MAAM,EAAEA;IAAM,CAAA,EAAGC,QAAQ,CAAsB;EAC5E,CAAC;EAEDH,oBAAoB,CAACU,WAAW,GAAG,sBAAsB;EAAA,OAV5CV,oBAAoB;AAAA;"}
@@ -1,6 +1,6 @@
1
- import 'tslib';
2
- import React, { useContext } from 'react';
3
- import 'uuid';
1
+ import { __assign, __spreadArray } from 'tslib';
2
+ import React, { useContext, useState } from 'react';
3
+ import { v4 } from 'uuid';
4
4
  var ToastNotificationContext = /*#__PURE__*/React.createContext(null);
5
5
  var useToastNotificationContext = function () {
6
6
  var context = useContext(ToastNotificationContext);
@@ -9,5 +9,61 @@ var useToastNotificationContext = function () {
9
9
  }
10
10
  return context;
11
11
  };
12
- export { useToastNotificationContext };
12
+ const ToastNotificationProvider = /*#__PURE__*/function () {
13
+ const ToastNotificationProvider = function (_a) {
14
+ var children = _a.children;
15
+ var _b = useState([]),
16
+ notifications = _b[0],
17
+ setNotifications = _b[1];
18
+ var addToastNotification = function (notification) {
19
+ var uuid = v4();
20
+ var notificationWithId = __assign({
21
+ id: uuid
22
+ }, notification);
23
+ var notificationExists = notifications.find(function (_a) {
24
+ var id = _a.id;
25
+ return id === notification.id;
26
+ });
27
+ if (!notificationExists) {
28
+ setNotifications(function (existing) {
29
+ return __spreadArray(__spreadArray([], existing, true), [notificationWithId], false);
30
+ });
31
+ }
32
+ };
33
+ var updateToastNotification = function (notification) {
34
+ var notificationIndex = notifications.findIndex(function (_a) {
35
+ var id = _a.id;
36
+ return id === notification.id;
37
+ });
38
+ var copy = notifications.slice();
39
+ copy.splice(notificationIndex, 1, notification); // Mutation to insert notification over itself
40
+ setNotifications(copy);
41
+ };
42
+ var removeToastNotification = function (notificationID) {
43
+ var notificationIndex = notifications.findIndex(function (_a) {
44
+ var id = _a.id;
45
+ return id === notificationID;
46
+ });
47
+ var copy = notifications.slice();
48
+ copy.splice(notificationIndex, 1); // Mutation
49
+ setNotifications(copy);
50
+ };
51
+ var clearToastNotifications = function () {
52
+ setNotifications([]);
53
+ };
54
+ var value = {
55
+ notifications: notifications,
56
+ addToastNotification: addToastNotification,
57
+ updateToastNotification: updateToastNotification,
58
+ removeToastNotification: removeToastNotification,
59
+ clearToastNotifications: clearToastNotifications
60
+ };
61
+ return /*#__PURE__*/React.createElement(ToastNotificationContext.Provider, {
62
+ value: value
63
+ }, children);
64
+ };
65
+ ToastNotificationProvider.displayName = "ToastNotificationProvider";
66
+ return ToastNotificationProvider;
67
+ }();
68
+ export { ToastNotificationProvider, useToastNotificationContext };
13
69
  //# sourceMappingURL=ToastNotificationContext.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToastNotificationContext.mjs","sources":["../../../../../src/Notification/ToastNotification/context/ToastNotificationContext.tsx"],"sourcesContent":["import React, { useContext, useState } from \"react\"\nimport { v4 as uuidv4 } from \"uuid\"\nimport { ToastNotificationObj } from \"../types\"\n\ntype ToastNotificationObjOptionalId = Omit<ToastNotificationObj, \"id\"> & {\n id?: string\n}\n\nexport type ToastNotificationContextValue = {\n notifications: ToastNotificationObj[]\n addToastNotification: (notification: ToastNotificationObjOptionalId) => void\n updateToastNotification: (notification: ToastNotificationObj) => void\n removeToastNotification: (notificationId: string) => void\n clearToastNotifications: () => void\n}\n\nconst ToastNotificationContext =\n React.createContext<ToastNotificationContextValue | null>(null)\n\nexport const useToastNotificationContext =\n (): ToastNotificationContextValue => {\n const context = useContext(ToastNotificationContext)\n\n if (!context) {\n throw new Error(\n \"useToastNotificationContext must be used within the ToastNotificationContext.Provider\"\n )\n }\n\n return context\n }\n\ntype ToastNotificationProviderProps = {\n children: React.ReactNode\n}\n\nexport const ToastNotificationProvider = ({\n children,\n}: ToastNotificationProviderProps): JSX.Element | null => {\n const [notifications, setNotifications] = useState<ToastNotificationObj[]>([])\n\n const addToastNotification: ToastNotificationContextValue[\"addToastNotification\"] =\n notification => {\n const uuid = uuidv4()\n const notificationWithId = { id: uuid, ...notification }\n\n const notificationExists = notifications.find(\n ({ id }) => id === notification.id\n )\n\n if (!notificationExists) {\n setNotifications(existing => [...existing, notificationWithId])\n }\n }\n\n const updateToastNotification = (\n notification: ToastNotificationObj\n ): void => {\n const notificationIndex = notifications.findIndex(\n ({ id }) => id === notification.id\n )\n\n const copy = notifications.slice()\n copy.splice(notificationIndex, 1, notification) // Mutation to insert notification over itself\n setNotifications(copy)\n }\n\n const removeToastNotification = (notificationID: string): void => {\n const notificationIndex = notifications.findIndex(\n ({ id }) => id === notificationID\n )\n const copy = notifications.slice()\n copy.splice(notificationIndex, 1) // Mutation\n setNotifications(copy)\n }\n\n const clearToastNotifications = (): void => {\n setNotifications([])\n }\n\n const value = {\n notifications,\n addToastNotification,\n updateToastNotification,\n removeToastNotification,\n clearToastNotifications,\n } satisfies ToastNotificationContextValue\n\n return (\n <ToastNotificationContext.Provider value={value}>\n {children}\n </ToastNotificationContext.Provider>\n )\n}\n\nToastNotificationProvider.displayName = \"ToastNotificationProvider\"\n"],"names":["ToastNotificationContext","React","createContext","useToastNotificationContext","context","useContext","Error"],"mappings":";;;AAgBA,IAAMA,wBAAwB,gBAC5BC,KAAK,CAACC,aAAa,CAAuC,IAAI,CAAC;AAEpD,IAAAC,2BAA2B,GACtC,SAAAA,CAAA,EAAA;EACE,IAAMC,OAAO,GAAGC,UAAU,CAACL,wBAAwB,CAAC;EAEpD,IAAI,CAACI,OAAO,EAAE;IACZ,MAAM,IAAIE,KAAK,CACb,uFAAuF,CACxF;EACF;EAED,OAAOF,OAAO;AAChB,CAAA;"}
1
+ {"version":3,"file":"ToastNotificationContext.mjs","sources":["../../../../../src/Notification/ToastNotification/context/ToastNotificationContext.tsx"],"sourcesContent":["import React, { useContext, useState } from \"react\"\nimport { v4 as uuidv4 } from \"uuid\"\nimport { ToastNotificationObj } from \"../types\"\n\ntype ToastNotificationObjOptionalId = Omit<ToastNotificationObj, \"id\"> & {\n id?: string\n}\n\nexport type ToastNotificationContextValue = {\n notifications: ToastNotificationObj[]\n addToastNotification: (notification: ToastNotificationObjOptionalId) => void\n updateToastNotification: (notification: ToastNotificationObj) => void\n removeToastNotification: (notificationId: string) => void\n clearToastNotifications: () => void\n}\n\nconst ToastNotificationContext =\n React.createContext<ToastNotificationContextValue | null>(null)\n\nexport const useToastNotificationContext =\n (): ToastNotificationContextValue => {\n const context = useContext(ToastNotificationContext)\n\n if (!context) {\n throw new Error(\n \"useToastNotificationContext must be used within the ToastNotificationContext.Provider\"\n )\n }\n\n return context\n }\n\ntype ToastNotificationProviderProps = {\n children: React.ReactNode\n}\n\nexport const ToastNotificationProvider = ({\n children,\n}: ToastNotificationProviderProps): JSX.Element | null => {\n const [notifications, setNotifications] = useState<ToastNotificationObj[]>([])\n\n const addToastNotification: ToastNotificationContextValue[\"addToastNotification\"] =\n notification => {\n const uuid = uuidv4()\n const notificationWithId = { id: uuid, ...notification }\n\n const notificationExists = notifications.find(\n ({ id }) => id === notification.id\n )\n\n if (!notificationExists) {\n setNotifications(existing => [...existing, notificationWithId])\n }\n }\n\n const updateToastNotification = (\n notification: ToastNotificationObj\n ): void => {\n const notificationIndex = notifications.findIndex(\n ({ id }) => id === notification.id\n )\n\n const copy = notifications.slice()\n copy.splice(notificationIndex, 1, notification) // Mutation to insert notification over itself\n setNotifications(copy)\n }\n\n const removeToastNotification = (notificationID: string): void => {\n const notificationIndex = notifications.findIndex(\n ({ id }) => id === notificationID\n )\n const copy = notifications.slice()\n copy.splice(notificationIndex, 1) // Mutation\n setNotifications(copy)\n }\n\n const clearToastNotifications = (): void => {\n setNotifications([])\n }\n\n const value = {\n notifications,\n addToastNotification,\n updateToastNotification,\n removeToastNotification,\n clearToastNotifications,\n } satisfies ToastNotificationContextValue\n\n return (\n <ToastNotificationContext.Provider value={value}>\n {children}\n </ToastNotificationContext.Provider>\n )\n}\n\nToastNotificationProvider.displayName = \"ToastNotificationProvider\"\n"],"names":["ToastNotificationContext","React","createContext","useToastNotificationContext","context","useContext","Error","ToastNotificationProvider","_a","children","_b","useState","notifications","setNotifications","addToastNotification","notification","uuid","uuidv4","notificationWithId","id","notificationExists","find","existing","__spreadArray","updateToastNotification","notificationIndex","findIndex","copy","slice","splice","removeToastNotification","notificationID","clearToastNotifications","value","createElement","Provider","displayName"],"mappings":";;;AAgBA,IAAMA,wBAAwB,gBAC5BC,KAAK,CAACC,aAAa,CAAuC,IAAI,CAAC;AAEpD,IAAAC,2BAA2B,GACtC,SAAAA,CAAA,EAAA;EACE,IAAMC,OAAO,GAAGC,UAAU,CAACL,wBAAwB,CAAC;EAEpD,IAAI,CAACI,OAAO,EAAE;IACZ,MAAM,IAAIE,KAAK,CACb,uFAAuF,CACxF;EACF;EAED,OAAOF,OAAO;AAChB,CAAC;AAAA,MAMUG,yBAAyB;EAAA,MAAzBA,yBAAyB,GAAG,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,IAAMG,uBAAuB,GAAG,SAAAA,CAACC,cAAsB,EAAA;MACrD,IAAMN,iBAAiB,GAAGb,aAAa,CAACc,SAAS,CAC/C,UAAClB,EAAM,EAAA;QAAJ,IAAAW,EAAE,GAAAX,EAAA,CAAAW,EAAA;QAAO,OAAAA,EAAE,KAAKY,cAAc;MAArB,CAAqB,CAClC;MACD,IAAMJ,IAAI,GAAGf,aAAa,CAACgB,KAAK,EAAE;MAClCD,IAAI,CAACE,MAAM,CAACJ,iBAAiB,EAAE,CAAC,CAAC,CAAA,CAAA;MACjCZ,gBAAgB,CAACc,IAAI,CAAC;IACxB,CAAC;IAED,IAAMK,uBAAuB,GAAG,SAAAA,CAAA,EAAA;MAC9BnB,gBAAgB,CAAC,EAAE,CAAC;IACtB,CAAC;IAED,IAAMoB,KAAK,GAAG;MACZrB,aAAa,EAAAA,aAAA;MACbE,oBAAoB,EAAAA,oBAAA;MACpBU,uBAAuB,EAAAA,uBAAA;MACvBM,uBAAuB,EAAAA,uBAAA;MACvBE,uBAAuB,EAAAA;KACgB;IAEzC,oBACE/B,KAAA,CAAAiC,aAAA,CAAClC,wBAAwB,CAACmC,QAAQ,EAAA;MAACF,KAAK,EAAEA;KAAK,EAC5CxB,QAAQ,CACyB;EAExC,CAAC;EAEDF,yBAAyB,CAAC6B,WAAW,GAAG,2BAA2B;EAAA,OA3DtD7B,yBAAyB;AAAA;"}
@@ -1,9 +1,129 @@
1
+ import { __assign } from 'tslib';
1
2
  import React from 'react';
3
+ import classnames from 'classnames';
4
+ import { Avatar } from '../Avatar/Avatar.mjs';
5
+ import '../Icon/subcomponents/SVG/SVG.mjs';
6
+ import { CautionIcon } from '../Icon/CautionIcon.mjs';
7
+ import { ClearIcon } from '../Icon/ClearIcon.mjs';
8
+ import { ExclamationIcon } from '../Icon/ExclamationIcon.mjs';
9
+ import { InformationIcon } from '../Icon/InformationIcon.mjs';
10
+ import { LiveIcon } from '../Icon/LiveIcon.mjs';
11
+ import { SuccessIcon } from '../Icon/SuccessIcon.mjs';
12
+ import styles from './Tag.module.scss.mjs';
13
+ var isJSXElement = function (imageElementOrAvatarProps) {
14
+ return "props" in imageElementOrAvatarProps;
15
+ };
16
+ var renderAvatar = function (imageElementOrAvatarProps) {
17
+ return isJSXElement(imageElementOrAvatarProps) ? ( /*#__PURE__*/React.createElement(React.Fragment, null, imageElementOrAvatarProps)) : ( /*#__PURE__*/React.createElement(Avatar, __assign({}, imageElementOrAvatarProps, {
18
+ size: "small"
19
+ })));
20
+ };
21
+ /**
22
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081928978/Tags Guidance} |
23
+ * {@link https://cultureamp.design/?path=/docs/components-tag--docs Storybook}
24
+ */
2
25
  const Tag = /*#__PURE__*/function () {
3
26
  const Tag = function (props) {
4
- var _a = props.variant,
5
- variant = _a === void 0 ? "default" : _a;
6
- return /*#__PURE__*/React.createElement("div", null, "Testing Tag component ", variant);
27
+ var children = props.children,
28
+ _a = props.variant,
29
+ variant = _a === void 0 ? "default" : _a,
30
+ _b = props.size,
31
+ size = _b === void 0 ? "medium" : _b,
32
+ _c = props.inline,
33
+ inline = _c === void 0 ? false : _c,
34
+ _d = props.dismissible,
35
+ dismissible = _d === void 0 ? false : _d,
36
+ onDismiss = props.onDismiss,
37
+ onMouseDown = props.onMouseDown,
38
+ onMouseLeave = props.onMouseLeave,
39
+ truncateWidth = props.truncateWidth;
40
+ var isTruncated = truncateWidth && truncateWidth > 0;
41
+ var canShowIcon = size === "medium";
42
+ return /*#__PURE__*/React.createElement("div", {
43
+ className: classnames(styles.root, styles[variant], variant === "profile" && styles.default, styles[size], inline && styles.inline, dismissible && styles.dismissible)
44
+ }, /*#__PURE__*/React.createElement("div", {
45
+ className: styles.layoutContainer
46
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, canShowIcon && function () {
47
+ switch (props.variant) {
48
+ case "validationPositive":
49
+ return /*#__PURE__*/React.createElement("span", {
50
+ className: styles.validationIcon
51
+ }, /*#__PURE__*/React.createElement(SuccessIcon, {
52
+ role: "presentation"
53
+ }));
54
+ case "validationNegative":
55
+ return /*#__PURE__*/React.createElement("span", {
56
+ className: styles.validationIcon
57
+ }, /*#__PURE__*/React.createElement(ExclamationIcon, {
58
+ role: "presentation"
59
+ }));
60
+ case "validationCautionary":
61
+ return /*#__PURE__*/React.createElement("span", {
62
+ className: styles.validationIcon
63
+ }, /*#__PURE__*/React.createElement(CautionIcon, {
64
+ role: "presentation"
65
+ }));
66
+ case "validationInformative":
67
+ return /*#__PURE__*/React.createElement("span", {
68
+ className: styles.validationIcon
69
+ }, /*#__PURE__*/React.createElement(InformationIcon, {
70
+ role: "presentation"
71
+ }));
72
+ case "profile":
73
+ return /*#__PURE__*/React.createElement("span", {
74
+ className: styles.profile
75
+ }, props.avatar && renderAvatar(props.avatar));
76
+ default:
77
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
78
+ }
79
+ }(), /*#__PURE__*/React.createElement("span", {
80
+ className: classnames(styles.textContent, isTruncated && styles.truncate),
81
+ style: {
82
+ maxWidth: isTruncated ? truncateWidth : undefined
83
+ }
84
+ }, children), dismissible && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
85
+ type: "button",
86
+ className: styles.dismissButton,
87
+ onClick: onDismiss,
88
+ onMouseDown: onMouseDown,
89
+ onMouseLeave: onMouseLeave
90
+ }, /*#__PURE__*/React.createElement("div", {
91
+ className: styles.iconWrapper
92
+ }, /*#__PURE__*/React.createElement(ClearIcon, {
93
+ inheritSize: true,
94
+ role: "img",
95
+ "aria-label": "Dismiss"
96
+ }))))), variant === "statusLive" && ( /*#__PURE__*/React.createElement("span", {
97
+ className: styles.liveIcon
98
+ }, /*#__PURE__*/React.createElement(LiveIcon, {
99
+ role: "presentation",
100
+ classNameOverride: styles.liveIcon_base,
101
+ width: "16",
102
+ height: "16",
103
+ viewBox: "0 0 16 16",
104
+ fill: "none"
105
+ }), /*#__PURE__*/React.createElement(LiveIcon, {
106
+ role: "presentation",
107
+ classNameOverride: styles.liveIcon_1,
108
+ width: "16",
109
+ height: "16",
110
+ viewBox: "0 0 16 16",
111
+ fill: "none"
112
+ }), /*#__PURE__*/React.createElement(LiveIcon, {
113
+ role: "presentation",
114
+ classNameOverride: styles.liveIcon_2,
115
+ width: "16",
116
+ height: "16",
117
+ viewBox: "0 0 16 16",
118
+ fill: "none"
119
+ }), /*#__PURE__*/React.createElement(LiveIcon, {
120
+ role: "presentation",
121
+ classNameOverride: styles.liveIcon_3,
122
+ width: "16",
123
+ height: "16",
124
+ viewBox: "0 0 16 16",
125
+ fill: "none"
126
+ }))))));
7
127
  };
8
128
  Tag.displayName = "Tag";
9
129
  return Tag;
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.mjs","sources":["../../../src/Tag/Tag.tsx"],"sourcesContent":["import React from \"react\"\nimport { AvatarProps } from \"~components/Avatar\"\nimport { TagVariants } from \"./types\"\n\nexport type TagWithAvatarProps = Omit<DefaultTagProps, \"variant\"> & {\n variant: \"profile\"\n avatar: JSX.Element | AvatarProps\n}\n\ntype Variant = (typeof TagVariants)[number]\n\nexport interface DefaultTagProps {\n variant?: Variant\n children: React.ReactNode\n size?: \"medium\" | \"small\"\n inline?: boolean\n dismissible?: boolean\n onDismiss?: React.MouseEventHandler<HTMLSpanElement>\n onMouseDown?: React.MouseEventHandler<HTMLSpanElement>\n onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>\n truncateWidth?: number\n}\n\nexport type TagProps = DefaultTagProps | TagWithAvatarProps\n\nexport const Tag = (props: TagProps): JSX.Element => {\n const { variant = \"default\" } = props\n return <div>Testing Tag component {variant}</div>\n}\n\nTag.displayName = \"Tag\"\n"],"names":["Tag","props","_a","variant","React","createElement","displayName"],"mappings":";MAyBaA,GAAG;EAAA,MAAHA,GAAG,GAAG,SAAAA,CAACC,KAAe,EAAA;IACzB,IAAAC,EAAA,GAAwBD,KAAK,CAAVE,OAAA;MAAnBA,OAAO,GAAGD,EAAA,KAAA,KAAA,CAAA,GAAA,SAAS,KAAA;IAC3B,oBAAOE,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA,IAAA,4BAA4BF,OAAO,CAAO;EACnD,CAAC;EAEDH,GAAG,CAACM,WAAW,GAAG,KAAK;EAAA,OALVN,GAAG;AAAA;"}
1
+ {"version":3,"file":"Tag.mjs","sources":["../../../src/Tag/Tag.tsx"],"sourcesContent":["import React from \"react\"\nimport classnames from \"classnames\"\nimport { Avatar, AvatarProps } from \"~components/Avatar\"\nimport {\n CautionIcon,\n ClearIcon,\n ExclamationIcon,\n InformationIcon,\n LiveIcon,\n SuccessIcon,\n} from \"~components/Icon\"\nimport { TagVariants } from \"./types\"\nimport styles from \"./Tag.module.scss\"\n\nexport type TagWithAvatarProps = Omit<DefaultTagProps, \"variant\"> & {\n variant: \"profile\"\n avatar: JSX.Element | AvatarProps\n}\n\ntype Variant = (typeof TagVariants)[number]\n\nexport interface DefaultTagProps {\n variant?: Variant\n children: React.ReactNode\n size?: \"medium\" | \"small\"\n inline?: boolean\n dismissible?: boolean\n onDismiss?: React.MouseEventHandler<HTMLSpanElement>\n onMouseDown?: React.MouseEventHandler<HTMLSpanElement>\n onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>\n truncateWidth?: number\n}\n\nexport type TagProps = DefaultTagProps | TagWithAvatarProps\n\nconst isJSXElement = (\n imageElementOrAvatarProps: JSX.Element | AvatarProps\n): imageElementOrAvatarProps is JSX.Element =>\n \"props\" in imageElementOrAvatarProps\n\nconst renderAvatar = (\n imageElementOrAvatarProps: JSX.Element | AvatarProps\n): JSX.Element =>\n isJSXElement(imageElementOrAvatarProps) ? (\n <>{imageElementOrAvatarProps}</>\n ) : (\n <Avatar {...imageElementOrAvatarProps} size=\"small\" />\n )\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081928978/Tags Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-tag--docs Storybook}\n */\nexport const Tag = (props: TagProps): JSX.Element => {\n const {\n children,\n variant = \"default\",\n size = \"medium\",\n inline = false,\n dismissible = false,\n onDismiss,\n onMouseDown,\n onMouseLeave,\n truncateWidth,\n } = props\n\n const isTruncated = truncateWidth && truncateWidth > 0\n const canShowIcon = size === \"medium\"\n return (\n <div\n className={classnames(\n styles.root,\n styles[variant],\n variant === \"profile\" && styles.default,\n styles[size],\n inline && styles.inline,\n dismissible && styles.dismissible\n )}\n >\n <div className={styles.layoutContainer}>\n <>\n {canShowIcon &&\n ((): JSX.Element | void => {\n switch (props.variant) {\n case \"validationPositive\":\n return (\n <span className={styles.validationIcon}>\n <SuccessIcon role=\"presentation\" />\n </span>\n )\n case \"validationNegative\":\n return (\n <span className={styles.validationIcon}>\n <ExclamationIcon role=\"presentation\" />\n </span>\n )\n case \"validationCautionary\":\n return (\n <span className={styles.validationIcon}>\n <CautionIcon role=\"presentation\" />\n </span>\n )\n case \"validationInformative\":\n return (\n <span className={styles.validationIcon}>\n <InformationIcon role=\"presentation\" />\n </span>\n )\n case \"profile\":\n return (\n <span className={styles.profile}>\n {props.avatar && renderAvatar(props.avatar)}\n </span>\n )\n default:\n return <></>\n }\n })()}\n <span\n className={classnames(\n styles.textContent,\n isTruncated && styles.truncate\n )}\n style={{\n maxWidth: isTruncated ? truncateWidth : undefined,\n }}\n >\n {children}\n </span>\n {dismissible && (\n <>\n <button\n type=\"button\"\n className={styles.dismissButton}\n onClick={onDismiss}\n onMouseDown={onMouseDown}\n onMouseLeave={onMouseLeave}\n >\n <div className={styles.iconWrapper}>\n <ClearIcon inheritSize role=\"img\" aria-label=\"Dismiss\" />\n </div>\n </button>\n </>\n )}\n {variant === \"statusLive\" && (\n <span className={styles.liveIcon}>\n <LiveIcon\n role=\"presentation\"\n classNameOverride={styles.liveIcon_base}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n />\n <LiveIcon\n role=\"presentation\"\n classNameOverride={styles.liveIcon_1}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n />\n <LiveIcon\n role=\"presentation\"\n classNameOverride={styles.liveIcon_2}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n />\n <LiveIcon\n role=\"presentation\"\n classNameOverride={styles.liveIcon_3}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n />\n </span>\n )}\n </>\n </div>\n </div>\n )\n}\n\nTag.displayName = \"Tag\"\n"],"names":["isJSXElement","imageElementOrAvatarProps","renderAvatar","React","createElement","Fragment","Avatar","__assign","size","Tag","props","children","_a","variant","_b","_c","inline","_d","dismissible","onDismiss","onMouseDown","onMouseLeave","truncateWidth","isTruncated","canShowIcon","className","classnames","styles","root","default","layoutContainer","validationIcon","SuccessIcon","role","ExclamationIcon","CautionIcon","InformationIcon","profile","avatar","textContent","truncate","style","maxWidth","undefined","type","dismissButton","onClick","iconWrapper","ClearIcon","inheritSize","liveIcon","LiveIcon","classNameOverride","liveIcon_base","width","height","viewBox","fill","liveIcon_1","liveIcon_2","liveIcon_3","displayName"],"mappings":";;;;;;;;;;;;AAmCA,IAAMA,YAAY,GAAG,SAAAA,CACnBC,yBAAoD,EAAA;EAEpD,OAAA,OAAO,IAAIA,yBAAyB;AAApC,CAAoC;AAEtC,IAAMC,YAAY,GAAG,SAAAA,CACnBD,yBAAoD,EAAA;EAEpD,OAAAD,YAAY,CAACC,yBAAyB,CAAC,kBACrCE,KAAG,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,EAAAJ,yBAAyB,CAAI,mBAEhCE,KAAA,CAAAC,aAAA,CAACE,MAAM,EAAAC,QAAA,CAAA,EAAA,EAAKN,yBAAyB,EAAA;IAAEO,IAAI,EAAC;GAAO,CAAA,CAAG,CACvD;AAJD,CAIC;AAEH;;;AAGG;AAHH,MAIaC,GAAG;EAAA,MAAHA,GAAG,GAAG,SAAAA,CAACC,KAAe,EAAA;IAE/B,IAA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AI;MACVC,MAAM,EAAC,IAAI;MACXC,OAAO,EAAC,WAAW;MACnBC,IAAI,EAAC;KACL,CAAA,eACFtD,KAAA,CAAAC,aAAA,CAAC+C,QAAQ,EAAA;MACPlB,IAAI,EAAC,cAAc;MACnBmB,iBAAiB,EAAEzB,MAAM,CAACiC,UAAU;MACpCN,KAAK,EAAC,IAAI;MACVC,MAAM,EAAC,IAAI;MACXC,OAAO,EAAC,WAAW;MACnBC,IAAI,EAAC;KAAM,CACX,CACG,CACR,CACA,CACC,CACF;EAEV,CAAC;EAEDhD,GAAG,CAACoD,WAAW,GAAG,KAAK;EAAA,OArIVpD,GAAG;AAAA;"}
@@ -0,0 +1,36 @@
1
+ var styles = {
2
+ "root": "Tag-module_root__uRhoc",
3
+ "profile": "Tag-module_profile__OoGsS",
4
+ "layoutContainer": "Tag-module_layoutContainer__pBLSz",
5
+ "validationIcon": "Tag-module_validationIcon__B-YLv",
6
+ "textContent": "Tag-module_textContent__q76X-",
7
+ "iconWrapper": "Tag-module_iconWrapper__aPrKH",
8
+ "dismissButton": "Tag-module_dismissButton__rHv7r",
9
+ "background": "Tag-module_background__LkzGB",
10
+ "truncate": "Tag-module_truncate__5w7HW",
11
+ "inline": "Tag-module_inline__pPM-d",
12
+ "medium": "Tag-module_medium__NkOrv",
13
+ "small": "Tag-module_small__-xyNk",
14
+ "default": "Tag-module_default__6PVke",
15
+ "sentimentPositive": "Tag-module_sentimentPositive__nbqE1",
16
+ "sentimentNeutral": "Tag-module_sentimentNeutral__8BtD8",
17
+ "sentimentNegative": "Tag-module_sentimentNegative__1J85t",
18
+ "sentimentNone": "Tag-module_sentimentNone__8BWjU",
19
+ "validationPositive": "Tag-module_validationPositive__vgFUE",
20
+ "validationInformative": "Tag-module_validationInformative__bnJ4A",
21
+ "validationNegative": "Tag-module_validationNegative__lZgIY",
22
+ "validationCautionary": "Tag-module_validationCautionary__ERS2t",
23
+ "statusLive": "Tag-module_statusLive__xG48w",
24
+ "statusAction": "Tag-module_statusAction__woL-O",
25
+ "statusClosed": "Tag-module_statusClosed__VhZP-",
26
+ "statusDraft": "Tag-module_statusDraft__9QZDv",
27
+ "liveIcon": "Tag-module_liveIcon__URtak",
28
+ "liveIcon_base": "Tag-module_liveIcon_base__Nk5um",
29
+ "liveIcon_1": "Tag-module_liveIcon_1__STFJY",
30
+ "liveIcon_2": "Tag-module_liveIcon_2__rko-D",
31
+ "liveIcon_3": "Tag-module_liveIcon_3__fL71y",
32
+ "pulse-inner": "Tag-module_pulse-inner__0-JFL",
33
+ "pulse-outer": "Tag-module_pulse-outer__f9Oox"
34
+ };
35
+ export { styles as default };
36
+ //# sourceMappingURL=Tag.module.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { IconProps } from "./types";
3
+ /** @deprecated Use `<ThumbsDownIconOn/>` or `<ThumbsDownIconOff/>` */
3
4
  export declare const ThumbsDownIcon: (props: IconProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { IconProps } from "./types";
3
+ export declare const ThumbsDownOffIcon: (props: IconProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { IconProps } from "./types";
3
+ export declare const ThumbsDownOnIcon: (props: IconProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { IconProps } from "./types";
3
+ /** @deprecated Use `<ThumbsUpIconOn/>` or `<ThumbsUpIconOff/>` */
3
4
  export declare const ThumbsUpIcon: (props: IconProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { IconProps } from "./types";
3
+ export declare const ThumbsUpOffIcon: (props: IconProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { IconProps } from "./types";
3
+ export declare const ThumbsUpOnIcon: (props: IconProps) => JSX.Element;
@@ -214,7 +214,11 @@ export * from "./TemplateWhiteIcon";
214
214
  export * from "./TextAnalyticsIcon";
215
215
  export * from "./TextAnalyticsWhiteIcon";
216
216
  export * from "./ThumbsDownIcon";
217
+ export * from "./ThumbsDownOffIcon";
218
+ export * from "./ThumbsDownOnIcon";
217
219
  export * from "./ThumbsUpIcon";
220
+ export * from "./ThumbsUpOffIcon";
221
+ export * from "./ThumbsUpOnIcon";
218
222
  export * from "./TimeIcon";
219
223
  export * from "./TimeWhiteIcon";
220
224
  export * from "./TranslationIcon";
@@ -18,6 +18,10 @@ export interface DefaultTagProps {
18
18
  truncateWidth?: number;
19
19
  }
20
20
  export type TagProps = DefaultTagProps | TagWithAvatarProps;
21
+ /**
22
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081928978/Tags Guidance} |
23
+ * {@link https://cultureamp.design/?path=/docs/components-tag--docs Storybook}
24
+ */
21
25
  export declare const Tag: {
22
26
  (props: TagProps): JSX.Element;
23
27
  displayName: string;