@ultraviolet/ui 1.87.0 → 1.87.1

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.
@@ -13,11 +13,11 @@ const Label = ({
13
13
  }) => {
14
14
  const LabelRequiredOrNot = () => required ? /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { direction: "row", gap: "0.5", alignItems: "start", children: [
15
15
  /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "label", id, variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "neutral", htmlFor, prominence: "strong", children }),
16
- /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "label", variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "danger", htmlFor, children: "*" })
16
+ /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "span", variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "danger", "aria-label": "required", children: "*" })
17
17
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "label", id, variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "neutral", htmlFor, prominence: "strong", children });
18
18
  return labelDescription ? /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { direction: "row", gap: "1", alignItems: "center", children: [
19
19
  /* @__PURE__ */ jsxRuntime.jsx(LabelRequiredOrNot, {}),
20
- typeof labelDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "label", variant: "bodySmall", children: labelDescription }) : labelDescription
20
+ typeof labelDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "span", variant: "bodySmall", children: labelDescription }) : labelDescription
21
21
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(LabelRequiredOrNot, {});
22
22
  };
23
23
  exports.Label = Label;
@@ -11,11 +11,11 @@ const Label = ({
11
11
  }) => {
12
12
  const LabelRequiredOrNot = () => required ? /* @__PURE__ */ jsxs(Stack, { direction: "row", gap: "0.5", alignItems: "start", children: [
13
13
  /* @__PURE__ */ jsx(Text, { as: "label", id, variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "neutral", htmlFor, prominence: "strong", children }),
14
- /* @__PURE__ */ jsx(Text, { as: "label", variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "danger", htmlFor, children: "*" })
14
+ /* @__PURE__ */ jsx(Text, { as: "span", variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "danger", "aria-label": "required", children: "*" })
15
15
  ] }) : /* @__PURE__ */ jsx(Text, { as: "label", id, variant: size === "large" ? "bodyStrong" : "bodySmallStrong", sentiment: "neutral", htmlFor, prominence: "strong", children });
16
16
  return labelDescription ? /* @__PURE__ */ jsxs(Stack, { direction: "row", gap: "1", alignItems: "center", children: [
17
17
  /* @__PURE__ */ jsx(LabelRequiredOrNot, {}),
18
- typeof labelDescription === "string" ? /* @__PURE__ */ jsx(Text, { as: "label", variant: "bodySmall", children: labelDescription }) : labelDescription
18
+ typeof labelDescription === "string" ? /* @__PURE__ */ jsx(Text, { as: "span", variant: "bodySmall", children: labelDescription }) : labelDescription
19
19
  ] }) : /* @__PURE__ */ jsx(LabelRequiredOrNot, {});
20
20
  };
21
21
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/ui",
3
- "version": "1.87.0",
3
+ "version": "1.87.1",
4
4
  "description": "Ultraviolet UI",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -85,7 +85,7 @@
85
85
  "react-toastify": "10.0.6",
86
86
  "react-use-clipboard": "1.0.9",
87
87
  "reakit": "1.3.11",
88
- "@ultraviolet/icons": "3.11.1",
88
+ "@ultraviolet/icons": "3.11.2",
89
89
  "@ultraviolet/themes": "1.16.0"
90
90
  },
91
91
  "scripts": {