@box/copy-input 0.27.2 → 0.27.4

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.
@@ -28,7 +28,7 @@ import '../../styles/copy-input.css';const U = "_formWrapper_yd7hc_1", A = "_has
28
28
  onCopy: L,
29
29
  hideLabel: W,
30
30
  ...l
31
- } = x, d = z(), N = d.formatMessage(f.copyButtonDefaultLabel), S = d.formatMessage(f.copyButtonCopiedLabel), u = _("inline-error-"), y = _("subtext-"), {
31
+ } = x, d = z(), N = d.formatMessage(f.copyButtonLabel), S = d.formatMessage(f.copyButtonCopiedLabel), u = _("inline-error-"), y = _("subtext-"), {
32
32
  copied: m,
33
33
  handleCopy: h,
34
34
  inputRef: T
@@ -36,11 +36,11 @@ import '../../styles/copy-input.css';const U = "_formWrapper_yd7hc_1", A = "_has
36
36
  o.target.select();
37
37
  }, []), M = b((o) => {
38
38
  o.target instanceof HTMLInputElement && o.target.setSelectionRange(0, o.target.value.length);
39
- }, []), t = !!r && !n, a = !r && !!p, R = t || a;
40
- let c = "";
41
- t ? c = u : a && (c = y);
39
+ }, []), t = !!r && !n, c = !r && !!p, R = t || c;
40
+ let a = "";
41
+ t ? a = u : c && (a = y);
42
42
  const j = i(l["aria-describedby"], {
43
- [c]: R
43
+ [a]: R
44
44
  });
45
45
  return /* @__PURE__ */ I("div", {
46
46
  className: i(e.formWrapper, {
@@ -79,7 +79,7 @@ import '../../styles/copy-input.css';const U = "_formWrapper_yd7hc_1", A = "_has
79
79
  className: e.inlineError,
80
80
  id: u,
81
81
  children: r
82
- }) : a && /* @__PURE__ */ s(q, {
82
+ }) : c && /* @__PURE__ */ s(q, {
83
83
  as: "p",
84
84
  className: e.subtext,
85
85
  color: "textOnLightSecondary",
@@ -1,6 +1,6 @@
1
1
  import { defineMessages as e } from "react-intl";
2
2
  const t = e({
3
- copyButtonDefaultLabel: {
3
+ copyButtonLabel: {
4
4
  id: "groupSharedFeatures.copyButton.copyButtonLabel",
5
5
  defaultMessage: "Copy"
6
6
  },
@@ -1,4 +1,4 @@
1
- # Copy button active state (after clicking) label
1
+ # Label for a call-to-action button in its active state. Button was clicked and text input's contents was copied the user's clipboard.
2
2
  groupSharedFeatures.copyButton.copyButtonCopiedLabel = Copied
3
- # Copy button default state (call-to-action) label
3
+ # Label for a call-to-action button in its default state. Clicking the button copies text input's contents to the user's clipboard.
4
4
  groupSharedFeatures.copyButton.copyButtonLabel = Copy
@@ -1 +1 @@
1
- [{"id":"groupSharedFeatures.copyButton.copyButtonLabel","description":"Copy button default state (call-to-action) label","defaultMessage":"Copy"},{"id":"groupSharedFeatures.copyButton.copyButtonCopiedLabel","description":"Copy button active state (after clicking) label","defaultMessage":"Copied"}]
1
+ [{"id":"groupSharedFeatures.copyButton.copyButtonLabel","description":"Label for a call-to-action button in its default state. Clicking the button copies text input's contents to the user's clipboard.","defaultMessage":"Copy"},{"id":"groupSharedFeatures.copyButton.copyButtonCopiedLabel","description":"Label for a call-to-action button in its active state. Button was clicked and text input's contents was copied the user's clipboard.","defaultMessage":"Copied"}]
@@ -1,5 +1,5 @@
1
1
  export declare const messages: {
2
- copyButtonDefaultLabel: {
2
+ copyButtonLabel: {
3
3
  defaultMessage: string;
4
4
  description: string;
5
5
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/copy-input",
3
- "version": "0.27.2",
3
+ "version": "0.27.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^9.19.0",
@@ -10,9 +10,9 @@
10
10
  "react-intl": "^6.4.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@box/blueprint-web": "^12.78.5",
14
- "@box/blueprint-web-assets": "^4.70.0",
15
- "@box/storybook-utils": "0.14.6",
13
+ "@box/blueprint-web": "^12.78.6",
14
+ "@box/blueprint-web-assets": "^4.71.0",
15
+ "@box/storybook-utils": "0.14.7",
16
16
  "@box/eslint-plugin-blueprint": "1.0.5",
17
17
  "react-intl": "^6.4.2"
18
18
  },