@bigbinary/neeto-molecules 4.1.7 → 4.1.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.
Files changed (40) hide show
  1. package/dist/CopyToClipboardButton.js +1 -1
  2. package/dist/CopyToClipboardButton.js.map +1 -1
  3. package/dist/cjs/CopyToClipboardButton.js +1 -1
  4. package/dist/cjs/CopyToClipboardButton.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/translations/ar.json +2 -1
  7. package/src/translations/bg.json +2 -1
  8. package/src/translations/ca.json +2 -1
  9. package/src/translations/cs.json +2 -1
  10. package/src/translations/da.json +2 -1
  11. package/src/translations/de.json +2 -1
  12. package/src/translations/en.json +1 -1
  13. package/src/translations/es-MX.json +2 -1
  14. package/src/translations/es.json +2 -1
  15. package/src/translations/et.json +2 -1
  16. package/src/translations/fi.json +2 -1
  17. package/src/translations/fil.json +2 -1
  18. package/src/translations/fr.json +2 -1
  19. package/src/translations/he.json +2 -1
  20. package/src/translations/hi.json +2 -1
  21. package/src/translations/hr.json +2 -1
  22. package/src/translations/id.json +2 -1
  23. package/src/translations/it.json +2 -1
  24. package/src/translations/ja.json +2 -1
  25. package/src/translations/ko.json +2 -1
  26. package/src/translations/nl.json +2 -1
  27. package/src/translations/pl.json +2 -1
  28. package/src/translations/pt-BR.json +2 -1
  29. package/src/translations/pt.json +2 -1
  30. package/src/translations/ro.json +2 -1
  31. package/src/translations/ru.json +2 -1
  32. package/src/translations/sk.json +2 -1
  33. package/src/translations/sl.json +2 -1
  34. package/src/translations/sv.json +2 -1
  35. package/src/translations/th.json +2 -1
  36. package/src/translations/tr.json +2 -1
  37. package/src/translations/uk.json +2 -1
  38. package/src/translations/vi.json +2 -1
  39. package/src/translations/zh-CN.json +2 -1
  40. package/src/translations/zh-TW.json +2 -1
@@ -68,7 +68,7 @@ var CopyToClipboardButton = function CopyToClipboardButton(_ref) {
68
68
  ref.current.style.minWidth = "".concat(buttonWidth, "px");
69
69
  }, [size]);
70
70
  var tooltipOptions = label ? null : mergeAll([TOOLTIP_CONFIG, {
71
- content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.copyToClipboard")
71
+ content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.copy")
72
72
  }, tooltipProps]);
73
73
  var buttonLabel = isChecked && label ? successLabel || t("neetoMolecules.common.copied") : label;
74
74
  var buttonIcon = isChecked ? Check : icon;
@@ -1 +1 @@
1
- {"version":3,"file":"CopyToClipboardButton.js","sources":["../src/components/CopyToClipboardButton/constants.js","../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.copyToClipboard\"),\n },\n tooltipProps,\n ]);\n\n const buttonLabel =\n isChecked && label\n ? successLabel || t(\"neetoMolecules.common.copied\")\n : label;\n const buttonIcon = isChecked ? Check : icon;\n\n return (\n <Button\n {...{ ref, size, style }}\n data-testid=\"copy-to-clipboard-button\"\n icon={buttonIcon}\n label={buttonLabel}\n tooltipProps={tooltipOptions}\n className={classnames(\"neeto-molecules-copy-button\", {\n [className]: className,\n \"neeto-molecules-copy-button--active\": isChecked,\n [`neeto-molecules-copy-button--${size}`]: size,\n })}\n onClick={onHandleClick}\n {...otherProps}\n />\n );\n};\n\nCopyToClipboardButton.propTypes = {\n /**\n * To provide additional classnames to the button.\n */\n className: PropTypes.string,\n /**\n * To provide the icon to be passed to the button. Defaults to the Copy icon.\n */\n icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n /**\n * To provide the label to the button. By default there is no label.\n */\n label: PropTypes.string,\n /**\n * The label of button when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successLabel: PropTypes.string,\n /**\n * The value to be copied to clipboard. (required)\n */\n value: PropTypes.string,\n /**\n * To specify the style of the Button.\n */\n style: PropTypes.oneOf(Object.values(BUTTON_STYLES)),\n /**\n * To specify the size of the Button. Defaults to 'medium'.\n */\n size: PropTypes.oneOf(Object.values(BUTTON_SIZES)),\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copy to clipboard'.\n */\n tooltipContent: PropTypes.string,\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successTooltipContent: PropTypes.string,\n};\n\nexport default CopyToClipboardButton;\n"],"names":["TIME_OUT","TOOLTIP_CONFIG","trigger","hideAfter","position","BUTTON_SIZES","small","medium","CopyToClipboardButton","_ref","className","_ref$icon","icon","Copy","_ref$label","label","successLabel","tooltipContent","successTooltipContent","value","style","_ref$size","size","tooltipProps","onClick","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isChecked","setIsChecked","ref","useRef","onHandleClick","event","preventDefault","stopPropagation","copyToClipboard","showToastr","setTimeout","useLayoutEffect","current","minWidth","buttonWidth","clientWidth","concat","tooltipOptions","mergeAll","content","buttonLabel","buttonIcon","Check","_jsx","Button","_objectSpread","classnames","_defineProperty"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,IAAI;AAErB,IAAMC,cAAc,GAAG;AACrBC,EAAAA,OAAO,EAAE,kBAAkB;AAC3BC,EAAAA,SAAS,EAAEH,QAAQ;AACnBI,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAQD,IAAMC,YAAY,GAAG;AACnBC,EACAC,MAAM,EAAE,QAEV,CAAC;;;;;;;;ACAD,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAarB;AAAA,EAAA,IAZJC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAAC,SAAA,GAAAF,IAAA,CACTG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,SAAA;IAAAG,UAAA,GAAAL,IAAA,CACXM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IACVE,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,cAAc,GAAAR,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A,CAAAgB,MAAA,CACf7B,IAAI,CAAA,EAAKA,IAAI,CAC/C,CAAE;AACHE,IAAAA,OAAO,EAAEe;GAAc,EACnBd,UAAU,CACf,CAAC;AAEN;;;;"}
1
+ {"version":3,"file":"CopyToClipboardButton.js","sources":["../src/components/CopyToClipboardButton/constants.js","../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.copy\"),\n },\n tooltipProps,\n ]);\n\n const buttonLabel =\n isChecked && label\n ? successLabel || t(\"neetoMolecules.common.copied\")\n : label;\n const buttonIcon = isChecked ? Check : icon;\n\n return (\n <Button\n {...{ ref, size, style }}\n data-testid=\"copy-to-clipboard-button\"\n icon={buttonIcon}\n label={buttonLabel}\n tooltipProps={tooltipOptions}\n className={classnames(\"neeto-molecules-copy-button\", {\n [className]: className,\n \"neeto-molecules-copy-button--active\": isChecked,\n [`neeto-molecules-copy-button--${size}`]: size,\n })}\n onClick={onHandleClick}\n {...otherProps}\n />\n );\n};\n\nCopyToClipboardButton.propTypes = {\n /**\n * To provide additional classnames to the button.\n */\n className: PropTypes.string,\n /**\n * To provide the icon to be passed to the button. Defaults to the Copy icon.\n */\n icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n /**\n * To provide the label to the button. By default there is no label.\n */\n label: PropTypes.string,\n /**\n * The label of button when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successLabel: PropTypes.string,\n /**\n * The value to be copied to clipboard. (required)\n */\n value: PropTypes.string,\n /**\n * To specify the style of the Button.\n */\n style: PropTypes.oneOf(Object.values(BUTTON_STYLES)),\n /**\n * To specify the size of the Button. Defaults to 'medium'.\n */\n size: PropTypes.oneOf(Object.values(BUTTON_SIZES)),\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copy'.\n */\n tooltipContent: PropTypes.string,\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successTooltipContent: PropTypes.string,\n};\n\nexport default CopyToClipboardButton;\n"],"names":["TIME_OUT","TOOLTIP_CONFIG","trigger","hideAfter","position","BUTTON_SIZES","small","medium","CopyToClipboardButton","_ref","className","_ref$icon","icon","Copy","_ref$label","label","successLabel","tooltipContent","successTooltipContent","value","style","_ref$size","size","tooltipProps","onClick","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isChecked","setIsChecked","ref","useRef","onHandleClick","event","preventDefault","stopPropagation","copyToClipboard","showToastr","setTimeout","useLayoutEffect","current","minWidth","buttonWidth","clientWidth","concat","tooltipOptions","mergeAll","content","buttonLabel","buttonIcon","Check","_jsx","Button","_objectSpread","classnames","_defineProperty"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,IAAI;AAErB,IAAMC,cAAc,GAAG;AACrBC,EAAAA,OAAO,EAAE,kBAAkB;AAC3BC,EAAAA,SAAS,EAAEH,QAAQ;AACnBI,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAQD,IAAMC,YAAY,GAAG;AACnBC,EACAC,MAAM,EAAE,QAEV,CAAC;;;;;;;;ACAD,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAarB;AAAA,EAAA,IAZJC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAAC,SAAA,GAAAF,IAAA,CACTG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,SAAA;IAAAG,UAAA,GAAAL,IAAA,CACXM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IACVE,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;IACdC,qBAAqB,GAAAT,IAAA,CAArBS,qBAAqB;IACrBC,KAAK,GAAAV,IAAA,CAALU,KAAK;IACLC,KAAK,GAAAX,IAAA,CAALW,KAAK;IAAAC,SAAA,GAAAZ,IAAA,CACLa,IAAI;AAAJA,IAAAA,IAAI,GAA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Width = "".concat(buttonWidth, "px");
71
71
  }, [size]);
72
72
  var tooltipOptions = label ? null : ramda.mergeAll([TOOLTIP_CONFIG, {
73
- content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.copyToClipboard")
73
+ content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.copy")
74
74
  }, tooltipProps]);
75
75
  var buttonLabel = isChecked && label ? successLabel || t("neetoMolecules.common.copied") : label;
76
76
  var buttonIcon = isChecked ? Check : icon;
@@ -1 +1 @@
1
- {"version":3,"file":"CopyToClipboardButton.js","sources":["../../src/components/CopyToClipboardButton/constants.js","../../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.copyToClipboard\"),\n },\n tooltipProps,\n ]);\n\n const buttonLabel =\n isChecked && label\n ? successLabel || t(\"neetoMolecules.common.copied\")\n : label;\n const buttonIcon = isChecked ? Check : icon;\n\n return (\n <Button\n {...{ ref, size, style }}\n data-testid=\"copy-to-clipboard-button\"\n icon={buttonIcon}\n label={buttonLabel}\n tooltipProps={tooltipOptions}\n className={classnames(\"neeto-molecules-copy-button\", {\n [className]: className,\n \"neeto-molecules-copy-button--active\": isChecked,\n [`neeto-molecules-copy-button--${size}`]: size,\n })}\n onClick={onHandleClick}\n {...otherProps}\n />\n );\n};\n\nCopyToClipboardButton.propTypes = {\n /**\n * To provide additional classnames to the button.\n */\n className: PropTypes.string,\n /**\n * To provide the icon to be passed to the button. Defaults to the Copy icon.\n */\n icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n /**\n * To provide the label to the button. By default there is no label.\n */\n label: PropTypes.string,\n /**\n * The label of button when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successLabel: PropTypes.string,\n /**\n * The value to be copied to clipboard. (required)\n */\n value: PropTypes.string,\n /**\n * To specify the style of the Button.\n */\n style: PropTypes.oneOf(Object.values(BUTTON_STYLES)),\n /**\n * To specify the size of the Button. Defaults to 'medium'.\n */\n size: PropTypes.oneOf(Object.values(BUTTON_SIZES)),\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copy to clipboard'.\n */\n tooltipContent: PropTypes.string,\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successTooltipContent: PropTypes.string,\n};\n\nexport default CopyToClipboardButton;\n"],"names":["TIME_OUT","TOOLTIP_CONFIG","trigger","hideAfter","position","BUTTON_SIZES","small","medium","CopyToClipboardButton","_ref","className","_ref$icon","icon","Copy","_ref$label","label","successLabel","tooltipContent","successTooltipContent","value","style","_ref$size","size","tooltipProps","onClick","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isChecked","setIsChecked","ref","useRef","onHandleClick","event","preventDefault","stopPropagation","copyToClipboard","showToastr","setTimeout","useLayoutEffect","current","minWidth","buttonWidth","clientWidth","concat","tooltipOptions","mergeAll","content","buttonLabel","buttonIcon","Check","_jsx","Button","_objectSpread","classnames","_defineProperty"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,IAAI;AAErB,IAAMC,cAAc,GAAG;AACrBC,EAAAA,OAAO,EAAE,kBAAkB;AAC3BC,EAAAA,SAAS,EAAEH,QAAQ;AACnBI,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAQD,IAAMC,YAAY,GAAG;AACnBC,EACAC,MAAM,EAAE,QAEV,CAAC;;;;;;;;ACAD,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAarB;AAAA,EAAA,IAZJC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAAC,SAAA,GAAAF,IAAA,CACTG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,SAAA;IAAAG,UAAA,GAAAL,IAAA,CACXM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IACVE,YAAY,GAAAP,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B,qCAAqC,EAAEyB,SAAS,CAAA,EAAA,+BAAA,CAAAgB,MAAA,CACf7B,IAAI,CAAA,EAAKA,IAAI,CAC/C,CAAE;AACHE,IAAAA,OAAO,EAAEe;GAAc,EACnBd,UAAU,CACf,CAAC;AAEN;;;;"}
1
+ {"version":3,"file":"CopyToClipboardButton.js","sources":["../../src/components/CopyToClipboardButton/constants.js","../../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.copy\"),\n },\n tooltipProps,\n ]);\n\n const buttonLabel =\n isChecked && label\n ? successLabel || t(\"neetoMolecules.common.copied\")\n : label;\n const buttonIcon = isChecked ? Check : icon;\n\n return (\n <Button\n {...{ ref, size, style }}\n data-testid=\"copy-to-clipboard-button\"\n icon={buttonIcon}\n label={buttonLabel}\n tooltipProps={tooltipOptions}\n className={classnames(\"neeto-molecules-copy-button\", {\n [className]: className,\n \"neeto-molecules-copy-button--active\": isChecked,\n [`neeto-molecules-copy-button--${size}`]: size,\n })}\n onClick={onHandleClick}\n {...otherProps}\n />\n );\n};\n\nCopyToClipboardButton.propTypes = {\n /**\n * To provide additional classnames to the button.\n */\n className: PropTypes.string,\n /**\n * To provide the icon to be passed to the button. Defaults to the Copy icon.\n */\n icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n /**\n * To provide the label to the button. By default there is no label.\n */\n label: PropTypes.string,\n /**\n * The label of button when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successLabel: PropTypes.string,\n /**\n * The value to be copied to clipboard. (required)\n */\n value: PropTypes.string,\n /**\n * To specify the style of the Button.\n */\n style: PropTypes.oneOf(Object.values(BUTTON_STYLES)),\n /**\n * To specify the size of the Button. Defaults to 'medium'.\n */\n size: PropTypes.oneOf(Object.values(BUTTON_SIZES)),\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copy'.\n */\n tooltipContent: PropTypes.string,\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successTooltipContent: PropTypes.string,\n};\n\nexport default CopyToClipboardButton;\n"],"names":["TIME_OUT","TOOLTIP_CONFIG","trigger","hideAfter","position","BUTTON_SIZES","small","medium","CopyToClipboardButton","_ref","className","_ref$icon","icon","Copy","_ref$label","label","successLabel","tooltipContent","successTooltipContent","value","style","_ref$size","size","tooltipProps","onClick","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isChecked","setIsChecked","ref","useRef","onHandleClick","event","preventDefault","stopPropagation","copyToClipboard","showToastr","setTimeout","useLayoutEffect","current","minWidth","buttonWidth","clientWidth","concat","tooltipOptions","mergeAll","content","buttonLabel","buttonIcon","Check","_jsx","Button","_objectSpread","classnames","_defineProperty"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,IAAI;AAErB,IAAMC,cAAc,GAAG;AACrBC,EAAAA,OAAO,EAAE,kBAAkB;AAC3BC,EAAAA,SAAS,EAAEH,QAAQ;AACnBI,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAQD,IAAMC,YAAY,GAAG;AACnBC,EACAC,MAAM,EAAE,QAEV,CAAC;;;;;;;;ACAD,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAarB;AAAA,EAAA,IAZJC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAAC,SAAA,GAAAF,IAAA,CACTG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,SAAA;IAAAG,UAAA,GAAAL,IAAA,CACXM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IACVE,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;IACdC,qBAAqB,GAAAT,IAAA,CAArBS,qBAAqB;IACrBC,KAAK,GAAAV,IAAA,CAALU,KAAK;IACLC,KAAK,GAAAX,IAAA,CAALW,KAAK;IAAAC,SAAA,GAA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6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "A package of reusable molecular components for neeto products.",
5
5
  "repository": "git@github.com:bigbinary/neeto-molecules.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -217,7 +217,8 @@
217
217
  "pending": "قيد الانتظار",
218
218
  "enter": "أدخل {{what}}",
219
219
  "permission_one": "إذن",
220
- "permission_other": "أذونات"
220
+ "permission_other": "أذونات",
221
+ "copy": "نسخ"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "تخصيص الأعمدة",
@@ -904,7 +904,8 @@
904
904
  "pending": "В изчакване",
905
905
  "enter": "Въведете {{what}}",
906
906
  "permission_one": "разрешение",
907
- "permission_other": "разрешения"
907
+ "permission_other": "разрешения",
908
+ "copy": "Копирай"
908
909
  },
909
910
  "columns": {
910
911
  "columns": "Персонализиране на колони",
@@ -217,7 +217,8 @@
217
217
  "pending": "Pendent",
218
218
  "enter": "Entrar {{what}}",
219
219
  "permission_one": "permissió",
220
- "permission_other": "permissons"
220
+ "permission_other": "permissons",
221
+ "copy": "Còpia"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Personalitza columnes",
@@ -217,7 +217,8 @@
217
217
  "pending": "Čeká se",
218
218
  "enter": "Zadejte {{what}}",
219
219
  "permission_one": "povolení",
220
- "permission_other": "povolení"
220
+ "permission_other": "povolení",
221
+ "copy": "Kopírovat"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Přizpůsobit sloupce",
@@ -217,7 +217,8 @@
217
217
  "pending": "Afventer",
218
218
  "enter": "Indtast {{what}}",
219
219
  "permission_one": "tilladelse",
220
- "permission_other": "tilladelser"
220
+ "permission_other": "tilladelser",
221
+ "copy": "Kopier"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Tilpas kolonner",
@@ -60,7 +60,8 @@
60
60
  "pending": "Ausstehend",
61
61
  "enter": "Geben Sie {{what}} ein",
62
62
  "permission_one": "Berechtigung",
63
- "permission_other": "Berechtigungen"
63
+ "permission_other": "Berechtigungen",
64
+ "copy": "Kopieren"
64
65
  },
65
66
  "columns": {
66
67
  "columns": "Spalten anpassen",
@@ -62,8 +62,8 @@
62
62
  },
63
63
  "madeWith": "Made with <strong>{{productName, anyCase}}</strong>",
64
64
  "viewHelpArticle": "View help article",
65
+ "copy": "Copy",
65
66
  "copied": "Copied",
66
- "copyToClipboard": "Copy to clipboard",
67
67
  "success": "Success",
68
68
  "pending": "Pending",
69
69
  "enter": "Enter {{what}}"
@@ -217,7 +217,8 @@
217
217
  "pending": "Pendiente",
218
218
  "enter": "Ingresar {{what}}",
219
219
  "permission_one": "permiso",
220
- "permission_other": "permisos"
220
+ "permission_other": "permisos",
221
+ "copy": "Copiar"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Personalizar columnas",
@@ -60,7 +60,8 @@
60
60
  "pending": "Pendiente",
61
61
  "enter": "Ingrese {{what}}",
62
62
  "permission_one": "permiso",
63
- "permission_other": "permisos"
63
+ "permission_other": "permisos",
64
+ "copy": "Copiar"
64
65
  },
65
66
  "columns": {
66
67
  "columns": "Personalizar columnas",
@@ -217,7 +217,8 @@
217
217
  "pending": "Ootel",
218
218
  "enter": "Sisesta {{what}}",
219
219
  "permission_one": "õigus",
220
- "permission_other": "õigused"
220
+ "permission_other": "õigused",
221
+ "copy": "Kopeeri"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Kohanda veerge",
@@ -217,7 +217,8 @@
217
217
  "pending": "Odottaa",
218
218
  "enter": "Syötä {{what}}",
219
219
  "permission_one": "oikeus",
220
- "permission_other": "oikeudet"
220
+ "permission_other": "oikeudet",
221
+ "copy": "Kopioi"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Mukauta sarakkeita",
@@ -217,7 +217,8 @@
217
217
  "pending": "Naka-pending",
218
218
  "enter": "Ipasok {{what}}",
219
219
  "permission_one": "pahintulot",
220
- "permission_other": "mga pahintulot"
220
+ "permission_other": "mga pahintulot",
221
+ "copy": "Kopyahin"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "I-customize ang mga kolum",
@@ -60,7 +60,8 @@
60
60
  "pending": "En attente",
61
61
  "enter": "Entrer {{what}}",
62
62
  "permission_one": "permission",
63
- "permission_other": "permissions"
63
+ "permission_other": "permissions",
64
+ "copy": "Copier"
64
65
  },
65
66
  "columns": {
66
67
  "columns": "Personnaliser les colonnes",
@@ -66,7 +66,8 @@
66
66
  "pending": "ממתין",
67
67
  "enter": "הכנס {{what}}",
68
68
  "permission_one": "הרשאה",
69
- "permission_other": "הרשאות"
69
+ "permission_other": "הרשאות",
70
+ "copy": "העתק"
70
71
  },
71
72
  "columns": {
72
73
  "columns": "התאם אישי עמודות",
@@ -695,7 +695,8 @@
695
695
  "pending": "लंबित",
696
696
  "enter": "प्रविष्ट करें {{what}}",
697
697
  "permission_one": "अनुमति",
698
- "permission_other": "अनुमतियाँ"
698
+ "permission_other": "अनुमतियाँ",
699
+ "copy": "कॉपी"
699
700
  },
700
701
  "columns": {
701
702
  "columns": "कॉलम अनुकूलित करें",
@@ -217,7 +217,8 @@
217
217
  "pending": "Na čekanju",
218
218
  "enter": "Unesi {{what}}",
219
219
  "permission_one": "dozvola",
220
- "permission_other": "dozvole"
220
+ "permission_other": "dozvole",
221
+ "copy": "Kopiraj"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Prilagodi stupce",
@@ -217,7 +217,8 @@
217
217
  "pending": "Menunggu",
218
218
  "enter": "Masukkan {{what}}",
219
219
  "permission_one": "izin",
220
- "permission_other": "izin-izin"
220
+ "permission_other": "izin-izin",
221
+ "copy": "Salin"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Sesuaikan kolom",
@@ -217,7 +217,8 @@
217
217
  "pending": "In sospeso",
218
218
  "enter": "Inserisci {{what}}",
219
219
  "permission_one": "permesso",
220
- "permission_other": "permessi"
220
+ "permission_other": "permessi",
221
+ "copy": "Copia"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Personalizza colonne",
@@ -217,7 +217,8 @@
217
217
  "pending": "保留中",
218
218
  "enter": "{{what}}を入力",
219
219
  "permission_one": "権限",
220
- "permission_other": "権限"
220
+ "permission_other": "権限",
221
+ "copy": "コピー"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "列をカスタマイズ",
@@ -217,7 +217,8 @@
217
217
  "pending": "보류 중",
218
218
  "enter": "{{what}} 입력",
219
219
  "permission_one": "권한",
220
- "permission_other": "권한들"
220
+ "permission_other": "권한들",
221
+ "copy": "복사"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "열 사용자 정의",
@@ -60,7 +60,8 @@
60
60
  "pending": "In behandeling",
61
61
  "enter": "Voer {{what}} in",
62
62
  "permission_one": "toestemming",
63
- "permission_other": "toestemmingen"
63
+ "permission_other": "toestemmingen",
64
+ "copy": "Kopiëren"
64
65
  },
65
66
  "columns": {
66
67
  "columns": "Pas kolommen aan",
@@ -60,7 +60,8 @@
60
60
  "pending": "Oczekiwanie",
61
61
  "enter": "Wprowadź {{what}}",
62
62
  "permission_one": "zezwolenie",
63
- "permission_other": "zezwolenia"
63
+ "permission_other": "zezwolenia",
64
+ "copy": "Kopiuj"
64
65
  },
65
66
  "columns": {
66
67
  "columns": "Dostosuj kolumny",
@@ -217,7 +217,8 @@
217
217
  "pending": "Pendente",
218
218
  "enter": "Digite {{what}}",
219
219
  "permission_one": "permissão",
220
- "permission_other": "permissões"
220
+ "permission_other": "permissões",
221
+ "copy": "Copiar"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Personalizar colunas",
@@ -60,7 +60,8 @@
60
60
  "pending": "Pendente",
61
61
  "enter": "Entrar {{what}}",
62
62
  "permission_one": "permissão",
63
- "permission_other": "permissões"
63
+ "permission_other": "permissões",
64
+ "copy": "Copiar"
64
65
  },
65
66
  "columns": {
66
67
  "columns": "Personalizar colunas",
@@ -217,7 +217,8 @@
217
217
  "pending": "În așteptare",
218
218
  "enter": "Introduceți {{what}}",
219
219
  "permission_one": "permisie",
220
- "permission_other": "permisiuni"
220
+ "permission_other": "permisiuni",
221
+ "copy": "Copiază"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Personalizați coloanele",
@@ -211,7 +211,8 @@
211
211
  "pending": "В ожидании",
212
212
  "enter": "Введите {{what}}",
213
213
  "permission_one": "разрешение",
214
- "permission_other": "разрешения"
214
+ "permission_other": "разрешения",
215
+ "copy": "Копировать"
215
216
  },
216
217
  "columns": {
217
218
  "columns": "Настроить колонки",
@@ -217,7 +217,8 @@
217
217
  "pending": "Čaká",
218
218
  "enter": "Zadajte {{what}}",
219
219
  "permission_one": "povolenie",
220
- "permission_other": "povolenia"
220
+ "permission_other": "povolenia",
221
+ "copy": "Kopírovať"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Prispôsobenie stĺpcov",
@@ -217,7 +217,8 @@
217
217
  "pending": "Čaka",
218
218
  "enter": "Vnesite {{what}}",
219
219
  "permission_one": "dovoljenje",
220
- "permission_other": "dovoljenja"
220
+ "permission_other": "dovoljenja",
221
+ "copy": "Kopiraj"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Prilagodi stolpce",
@@ -217,7 +217,8 @@
217
217
  "pending": "Pågår",
218
218
  "enter": "Ange {{what}}",
219
219
  "permission_one": "behörighet",
220
- "permission_other": "behörigheter"
220
+ "permission_other": "behörigheter",
221
+ "copy": "Kopiera"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Anpassa kolumner",
@@ -515,7 +515,8 @@
515
515
  "pending": "รอดำเนินการ",
516
516
  "enter": "กรอก {{what}}",
517
517
  "permission_one": "อนุญาต",
518
- "permission_other": "อนุญาต"
518
+ "permission_other": "อนุญาต",
519
+ "copy": "คัดลอก"
519
520
  },
520
521
  "columns": {
521
522
  "columns": "ปรับแต่งคอลัมน์",
@@ -217,7 +217,8 @@
217
217
  "pending": "Beklemede",
218
218
  "enter": "{{what}} girin",
219
219
  "permission_one": "izin",
220
- "permission_other": "izinler"
220
+ "permission_other": "izinler",
221
+ "copy": "Kopyala"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Sütunları Özelleştir",
@@ -217,7 +217,8 @@
217
217
  "pending": "Очікується",
218
218
  "enter": "Введіть {{what}}",
219
219
  "permission_one": "дозвіл",
220
- "permission_other": "дозволи"
220
+ "permission_other": "дозволи",
221
+ "copy": "Копіювати"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Налаштування стовпців",
@@ -217,7 +217,8 @@
217
217
  "pending": "Đang chờ",
218
218
  "enter": "Nhập {{what}}",
219
219
  "permission_one": "quyền",
220
- "permission_other": "các quyền"
220
+ "permission_other": "các quyền",
221
+ "copy": "Sao chép"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "Tùy chỉnh cột",
@@ -217,7 +217,8 @@
217
217
  "pending": "待处理",
218
218
  "enter": "输入 {{what}}",
219
219
  "permission_one": "权限",
220
- "permission_other": "权限"
220
+ "permission_other": "权限",
221
+ "copy": "复制"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "自定义列",
@@ -217,7 +217,8 @@
217
217
  "pending": "待處理",
218
218
  "enter": "輸入 {{what}}",
219
219
  "permission_one": "權限",
220
- "permission_other": "權限"
220
+ "permission_other": "權限",
221
+ "copy": "複製"
221
222
  },
222
223
  "columns": {
223
224
  "columns": "自定義列",