@wix/editor-react-components 1.2295.0 → 1.2296.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,7 +86,7 @@ function TextBoxComponent(props) {
86
86
  "data-testid": TestIds.root,
87
87
  children: /* @__PURE__ */ jsxs(Field.Root, { className: styles.field, disabled, children: [
88
88
  (hasLabel || hasTooltip) && /* @__PURE__ */ jsxs("div", { className: styles.labelRow, children: [
89
- hasLabel && /* @__PURE__ */ jsx(
89
+ hasLabel && /* @__PURE__ */ jsxs(
90
90
  Field.Label,
91
91
  {
92
92
  className: clsx(
@@ -95,7 +95,17 @@ function TextBoxComponent(props) {
95
95
  formatClassNames(semanticClassNames.label)
96
96
  ),
97
97
  "data-testid": TestIds.label,
98
- children: label2
98
+ children: [
99
+ label2,
100
+ required && /* @__PURE__ */ jsx(
101
+ "span",
102
+ {
103
+ "data-testid": TestIds.requiredIndicator,
104
+ "aria-hidden": "true",
105
+ children: " *"
106
+ }
107
+ )
108
+ ]
99
109
  }
100
110
  ),
101
111
  hasTooltip && /* @__PURE__ */ jsx(Tooltip.Provider, { delay: 0, children: /* @__PURE__ */ jsxs(Tooltip.Root, { children: [
@@ -65,6 +65,7 @@ export declare const TestIds: {
65
65
  readonly root: "textbox-root";
66
66
  readonly input: "textbox-input";
67
67
  readonly label: "textbox-label";
68
+ readonly requiredIndicator: "textbox-required-indicator";
68
69
  readonly tooltipButton: "textbox-tooltip-button";
69
70
  };
70
71
  export declare const selectors: {
@@ -53,6 +53,7 @@ const TestIds = {
53
53
  root: "textbox-root",
54
54
  input: "textbox-input",
55
55
  label: "textbox-label",
56
+ requiredIndicator: "textbox-required-indicator",
56
57
  tooltipButton: "textbox-tooltip-button"
57
58
  };
58
59
  const selectors = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2295.0",
3
+ "version": "1.2296.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -186,5 +186,5 @@
186
186
  "registry": "https://registry.npmjs.org/",
187
187
  "access": "public"
188
188
  },
189
- "falconPackageHash": "d5e8a0640f3b99ef65ffae3160932b724a6ea0b79f37ef566e37c18b"
189
+ "falconPackageHash": "1a019220638101928977733f0eb75fb12cf0f4dd1989ed8e63757a3f"
190
190
  }