@stephanluis/react-input-duration 0.1.0 → 0.2.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.
package/README.md CHANGED
@@ -28,6 +28,9 @@ visible fields. Separator props are `daysDivider`, `hoursDivider`, `minutesDivid
28
28
  element, exposing its methods and properties. See the [component documentation](https://github.com/StephanLuis/input-duration#readme)
29
29
  for formats, styling, and methods.
30
30
 
31
+ Set `tabThrough` to preserve normal Tab navigation from the final field instead of finishing
32
+ editing with focus on the page.
33
+
31
34
  The browser loads and registers the web component after the wrapper mounts. Server-rendered HTML
32
35
  contains the custom element but its editable fields appear only after client-side initialization.
33
36
 
package/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export interface InputDurationProps extends Omit<HTMLAttributes<InputDurationEle
13
13
  noMinutes?: boolean;
14
14
  noSeconds?: boolean;
15
15
  noMicroseconds?: boolean;
16
+ tabThrough?: boolean;
16
17
  daysDivider?: string;
17
18
  hoursDivider?: string;
18
19
  minutesDivider?: string;
package/index.js CHANGED
@@ -9,6 +9,7 @@ const InputDuration = forwardRef(function InputDuration({
9
9
  noMinutes,
10
10
  noSeconds,
11
11
  noMicroseconds,
12
+ tabThrough,
12
13
  daysDivider,
13
14
  hoursDivider,
14
15
  minutesDivider,
@@ -71,6 +72,7 @@ const InputDuration = forwardRef(function InputDuration({
71
72
  'no-minutes': noMinutes ? '' : undefined,
72
73
  'no-seconds': noSeconds ? '' : undefined,
73
74
  'no-microseconds': noMicroseconds ? '' : undefined,
75
+ 'tab-through': tabThrough ? '' : undefined,
74
76
  'days-divider': daysDivider,
75
77
  'hours-divider': hoursDivider,
76
78
  'minutes-divider': minutesDivider,
package/package.json CHANGED
@@ -1,7 +1,20 @@
1
1
  {
2
2
  "name": "@stephanluis/react-input-duration",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "React wrapper for the input-duration web component.",
5
+ "keywords": [
6
+ "react",
7
+ "react-component",
8
+ "input-duration",
9
+ "duration",
10
+ "duration-input",
11
+ "time-input",
12
+ "elapsed-time",
13
+ "timer",
14
+ "countdown",
15
+ "web-component",
16
+ "typescript"
17
+ ],
5
18
  "type": "module",
6
19
  "main": "./index.js",
7
20
  "types": "./index.d.ts",
@@ -21,7 +34,7 @@
21
34
  "test": "node --test test/*.test.js && tsc --noEmit -p test/tsconfig.json"
22
35
  },
23
36
  "dependencies": {
24
- "input-duration": "^3.6.0"
37
+ "input-duration": "^4.0.0"
25
38
  },
26
39
  "peerDependencies": {
27
40
  "react": "^18.2.0 || ^19.0.0"