@dartech/arsenal-ui 1.4.40 → 1.4.41

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.
package/index.js CHANGED
@@ -2227,12 +2227,13 @@ const ControlDate = _a => {
2227
2227
  name,
2228
2228
  required,
2229
2229
  label,
2230
+ placeholder,
2230
2231
  format: format$1 = DATE_DEFAULT_FORMAT,
2231
2232
  hideErrorMessage = false,
2232
2233
  textFieldProps = {},
2233
2234
  requiredErrorText = ''
2234
2235
  } = _a,
2235
- datePickerProps = __rest(_a, ["control", "name", "required", "label", "format", "hideErrorMessage", "textFieldProps", "requiredErrorText"]);
2236
+ datePickerProps = __rest(_a, ["control", "name", "required", "label", "placeholder", "format", "hideErrorMessage", "textFieldProps", "requiredErrorText"]);
2236
2237
  const [localFormat, setLocalFormat] = useState(DATE_DEFAULT_FORMAT);
2237
2238
  const {
2238
2239
  field,
@@ -2287,7 +2288,10 @@ const ControlDate = _a => {
2287
2288
  helperText: !hideErrorMessage && (error === null || error === void 0 ? void 0 : error.message),
2288
2289
  FormHelperTextProps: {
2289
2290
  variant: 'standard'
2290
- }
2291
+ },
2292
+ inputProps: Object.assign(Object.assign({}, params.inputProps), {
2293
+ placeholder: placeholder
2294
+ })
2291
2295
  }, textFieldProps))
2292
2296
  }))]
2293
2297
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.40",
3
+ "version": "1.4.41",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -14,9 +14,10 @@ type ControlDateProps = Partial<DatePickerProps<unknown, unknown>> & {
14
14
  name: string;
15
15
  label?: ReactNode;
16
16
  format?: string;
17
+ placeholder?: string;
17
18
  hideErrorMessage?: boolean;
18
19
  textFieldProps?: TextFieldProps;
19
20
  requiredErrorText?: string;
20
21
  };
21
- export declare const ControlDate: ({ control, name, required, label, format, hideErrorMessage, textFieldProps, requiredErrorText, ...datePickerProps }: ControlDateProps) => JSX.Element;
22
+ export declare const ControlDate: ({ control, name, required, label, placeholder, format, hideErrorMessage, textFieldProps, requiredErrorText, ...datePickerProps }: ControlDateProps) => JSX.Element;
22
23
  export default ControlDate;