@workday/canvas-kit-preview-react 9.2.0-494-next.0 → 9.2.0-498-next.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.
@@ -12,7 +12,7 @@ export declare const useFormFieldInput: import("@workday/canvas-kit-react/common
12
12
  }, {
13
13
  required: boolean | undefined;
14
14
  'aria-invalid': boolean | undefined;
15
- 'aria-describedby': string;
16
- id: string;
15
+ 'aria-describedby': string | undefined;
16
+ id: string | undefined;
17
17
  }>;
18
18
  //# sourceMappingURL=useFormFieldInput.d.ts.map
@@ -11,7 +11,7 @@ exports.useFormFieldInput = common_1.createElemPropsHook(useFormFieldModel_1.use
11
11
  return {
12
12
  required: state.isRequired ? true : undefined,
13
13
  'aria-invalid': state.hasError ? true : undefined,
14
- 'aria-describedby': `hint-${state.id}`,
15
- id: `input-${state.id}`,
14
+ 'aria-describedby': state.id ? `hint-${state.id}` : undefined,
15
+ id: state.id ? `input-${state.id}` : undefined,
16
16
  };
17
17
  });
@@ -12,7 +12,7 @@ export declare const useFormFieldInput: import("@workday/canvas-kit-react/common
12
12
  }, {
13
13
  required: boolean | undefined;
14
14
  'aria-invalid': boolean | undefined;
15
- 'aria-describedby': string;
16
- id: string;
15
+ 'aria-describedby': string | undefined;
16
+ id: string | undefined;
17
17
  }>;
18
18
  //# sourceMappingURL=useFormFieldInput.d.ts.map
@@ -8,7 +8,7 @@ export const useFormFieldInput = createElemPropsHook(useFormFieldModel)(({ state
8
8
  return {
9
9
  required: state.isRequired ? true : undefined,
10
10
  'aria-invalid': state.hasError ? true : undefined,
11
- 'aria-describedby': `hint-${state.id}`,
12
- id: `input-${state.id}`,
11
+ 'aria-describedby': state.id ? `hint-${state.id}` : undefined,
12
+ id: state.id ? `input-${state.id}` : undefined,
13
13
  };
14
14
  });
@@ -9,7 +9,7 @@ export const useFormFieldInput = createElemPropsHook(useFormFieldModel)(({state}
9
9
  return {
10
10
  required: state.isRequired ? true : undefined,
11
11
  'aria-invalid': state.hasError ? true : undefined,
12
- 'aria-describedby': `hint-${state.id}`,
13
- id: `input-${state.id}`,
12
+ 'aria-describedby': state.id ? `hint-${state.id}` : undefined,
13
+ id: state.id ? `input-${state.id}` : undefined,
14
14
  };
15
15
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-preview-react",
3
- "version": "9.2.0-494-next.0",
3
+ "version": "9.2.0-498-next.0",
4
4
  "description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@emotion/react": "^11.7.1",
48
48
  "@emotion/styled": "^11.6.0",
49
- "@workday/canvas-kit-react": "^9.2.0-494-next.0",
49
+ "@workday/canvas-kit-react": "^9.2.0-498-next.0",
50
50
  "@workday/canvas-system-icons-web": "^3.0.0",
51
51
  "@workday/design-assets-types": "^0.2.8"
52
52
  },
@@ -56,5 +56,5 @@
56
56
  "react-hook-form": "7.36.1",
57
57
  "yup": "^0.32.11"
58
58
  },
59
- "gitHead": "390ff57e93f9838c992ccc75b1d252e053c7cb50"
59
+ "gitHead": "c15a57cfdf9b5ecd344c319bbecf900ba7eaad81"
60
60
  }