@dartech/arsenal-ui 1.4.16 → 1.4.17

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
@@ -2422,7 +2422,8 @@ const ControlPeriodInput = ({
2422
2422
  name: _name = 'period',
2423
2423
  control,
2424
2424
  label: _label = 'Period',
2425
- required
2425
+ required,
2426
+ isSecondsVisible: _isSecondsVisible = false
2426
2427
  }) => {
2427
2428
  var _a;
2428
2429
  const [localValue, setLocalValue] = useState();
@@ -2570,6 +2571,20 @@ const ControlPeriodInput = ({
2570
2571
  onChange: handleChange,
2571
2572
  fullWidth: true
2572
2573
  })
2574
+ })), _isSecondsVisible && jsx(Grid, Object.assign({
2575
+ sm: 1
2576
+ }, {
2577
+ children: jsx(TextField, {
2578
+ variant: "outlined",
2579
+ size: "small",
2580
+ error: !!error,
2581
+ value: (localValue === null || localValue === void 0 ? void 0 : localValue.seconds) || '',
2582
+ name: "seconds",
2583
+ label: "Seconds",
2584
+ type: "number",
2585
+ onChange: handleChange,
2586
+ fullWidth: true
2587
+ })
2573
2588
  }))]
2574
2589
  }))]
2575
2590
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -5,6 +5,7 @@ type Props = {
5
5
  control: Control<any>;
6
6
  label?: ReactNode;
7
7
  required?: boolean;
8
+ isSecondsVisible?: boolean;
8
9
  };
9
- export declare const ControlPeriodInput: ({ name, control, label, required }: Props) => JSX.Element;
10
+ export declare const ControlPeriodInput: ({ name, control, label, required, isSecondsVisible }: Props) => JSX.Element;
10
11
  export {};