@skbkontur/react-ui 6.1.1-9752b.0 → 6.1.2-bea94.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/components/Input/Input.d.ts +1 -1
  3. package/components/Input/Input.js.map +1 -1
  4. package/components/TimePicker/TimeClockIcon.d.ts +3 -0
  5. package/components/TimePicker/TimeClockIcon.js +11 -0
  6. package/components/TimePicker/TimeClockIcon.js.map +1 -0
  7. package/components/TimePicker/TimeFragmentsView.d.ts +15 -0
  8. package/components/TimePicker/TimeFragmentsView.js +72 -0
  9. package/components/TimePicker/TimeFragmentsView.js.map +1 -0
  10. package/components/TimePicker/TimeFragmentsView.styles.d.ts +12 -0
  11. package/components/TimePicker/TimeFragmentsView.styles.js +43 -0
  12. package/components/TimePicker/TimeFragmentsView.styles.js.map +1 -0
  13. package/components/TimePicker/TimeInput.d.ts +22 -0
  14. package/components/TimePicker/TimeInput.js +103 -0
  15. package/components/TimePicker/TimeInput.js.map +1 -0
  16. package/components/TimePicker/TimePicker.d.ts +70 -0
  17. package/components/TimePicker/TimePicker.js +506 -0
  18. package/components/TimePicker/TimePicker.js.map +1 -0
  19. package/components/TimePicker/TimePicker.styles.d.ts +14 -0
  20. package/components/TimePicker/TimePicker.styles.js +45 -0
  21. package/components/TimePicker/TimePicker.styles.js.map +1 -0
  22. package/components/TimePicker/TimePickerMobilePopup.d.ts +38 -0
  23. package/components/TimePicker/TimePickerMobilePopup.js +21 -0
  24. package/components/TimePicker/TimePickerMobilePopup.js.map +1 -0
  25. package/components/TimePicker/TimePickerPopup.d.ts +20 -0
  26. package/components/TimePicker/TimePickerPopup.js +18 -0
  27. package/components/TimePicker/TimePickerPopup.js.map +1 -0
  28. package/components/TimePicker/TimePickerSlots.d.ts +17 -0
  29. package/components/TimePicker/TimePickerSlots.js +80 -0
  30. package/components/TimePicker/TimePickerSlots.js.map +1 -0
  31. package/components/TimePicker/helpers/TimePicker.constants.d.ts +22 -0
  32. package/components/TimePicker/helpers/TimePicker.constants.js +31 -0
  33. package/components/TimePicker/helpers/TimePicker.constants.js.map +1 -0
  34. package/components/TimePicker/helpers/TimePicker.editing.d.ts +23 -0
  35. package/components/TimePicker/helpers/TimePicker.editing.js +101 -0
  36. package/components/TimePicker/helpers/TimePicker.editing.js.map +1 -0
  37. package/components/TimePicker/helpers/TimePicker.layout.d.ts +6 -0
  38. package/components/TimePicker/helpers/TimePicker.layout.js +49 -0
  39. package/components/TimePicker/helpers/TimePicker.layout.js.map +1 -0
  40. package/components/TimePicker/helpers/TimePicker.selection.d.ts +5 -0
  41. package/components/TimePicker/helpers/TimePicker.selection.js +23 -0
  42. package/components/TimePicker/helpers/TimePicker.selection.js.map +1 -0
  43. package/components/TimePicker/helpers/TimePicker.shared.d.ts +47 -0
  44. package/components/TimePicker/helpers/TimePicker.shared.js +70 -0
  45. package/components/TimePicker/helpers/TimePicker.shared.js.map +1 -0
  46. package/components/TimePicker/helpers/TimePicker.value.d.ts +23 -0
  47. package/components/TimePicker/helpers/TimePicker.value.js +71 -0
  48. package/components/TimePicker/helpers/TimePicker.value.js.map +1 -0
  49. package/components/TimePicker/helpers/scrollSelectedSlotIntoView.d.ts +4 -0
  50. package/components/TimePicker/helpers/scrollSelectedSlotIntoView.js +24 -0
  51. package/components/TimePicker/helpers/scrollSelectedSlotIntoView.js.map +1 -0
  52. package/components/TimePicker/hooks/useTimePickerDropdown.d.ts +17 -0
  53. package/components/TimePicker/hooks/useTimePickerDropdown.js +62 -0
  54. package/components/TimePicker/hooks/useTimePickerDropdown.js.map +1 -0
  55. package/components/TimePicker/hooks/useTimePickerSelection.d.ts +18 -0
  56. package/components/TimePicker/hooks/useTimePickerSelection.js +66 -0
  57. package/components/TimePicker/hooks/useTimePickerSelection.js.map +1 -0
  58. package/components/TimePicker/hooks/useTimePickerValue.d.ts +18 -0
  59. package/components/TimePicker/hooks/useTimePickerValue.js +58 -0
  60. package/components/TimePicker/hooks/useTimePickerValue.js.map +1 -0
  61. package/components/TimePicker/index.d.ts +2 -0
  62. package/components/TimePicker/index.js +2 -0
  63. package/components/TimePicker/index.js.map +1 -0
  64. package/index.d.ts +1 -0
  65. package/index.js +1 -0
  66. package/index.js.map +1 -1
  67. package/internal/NativeTimeInput/NativeTimeInput.d.ts +16 -0
  68. package/internal/NativeTimeInput/NativeTimeInput.js +25 -0
  69. package/internal/NativeTimeInput/NativeTimeInput.js.map +1 -0
  70. package/internal/NativeTimeInput/NativeTimeInput.styles.d.ts +3 -0
  71. package/internal/NativeTimeInput/NativeTimeInput.styles.js +15 -0
  72. package/internal/NativeTimeInput/NativeTimeInput.styles.js.map +1 -0
  73. package/internal/NativeTimeInput/NativeTimeInput.utils.d.ts +7 -0
  74. package/internal/NativeTimeInput/NativeTimeInput.utils.js +28 -0
  75. package/internal/NativeTimeInput/NativeTimeInput.utils.js.map +1 -0
  76. package/internal/NativeTimeInput/index.d.ts +1 -0
  77. package/internal/NativeTimeInput/index.js +2 -0
  78. package/internal/NativeTimeInput/index.js.map +1 -0
  79. package/internal/icons2022/TimeClockIcon/TimeClockIcon16Light.d.ts +2 -0
  80. package/internal/icons2022/TimeClockIcon/TimeClockIcon16Light.js +20 -0
  81. package/internal/icons2022/TimeClockIcon/TimeClockIcon16Light.js.map +1 -0
  82. package/internal/icons2022/TimeClockIcon/TimeClockIcon20Light.d.ts +2 -0
  83. package/internal/icons2022/TimeClockIcon/TimeClockIcon20Light.js +20 -0
  84. package/internal/icons2022/TimeClockIcon/TimeClockIcon20Light.js.map +1 -0
  85. package/internal/icons2022/TimeClockIcon/TimeClockIcon24Regular.d.ts +2 -0
  86. package/internal/icons2022/TimeClockIcon/TimeClockIcon24Regular.js +20 -0
  87. package/internal/icons2022/TimeClockIcon/TimeClockIcon24Regular.js.map +1 -0
  88. package/internal/themes/BasicTheme.d.ts +34 -0
  89. package/internal/themes/BasicTheme.js +96 -0
  90. package/internal/themes/BasicTheme.js.map +1 -1
  91. package/package.json +5 -1
@@ -0,0 +1,18 @@
1
+ import type { TimeFormat, TimeSegment } from '../helpers/TimePicker.shared.js';
2
+ import type { TimeInputRef } from '../TimeInput.js';
3
+ type TimePickerSelection = TimeSegment | 'all';
4
+ interface UseTimePickerSelectionOptions {
5
+ isInputFocused: boolean;
6
+ format: TimeFormat;
7
+ getInput: () => TimeInputRef | null;
8
+ displayValue: string;
9
+ }
10
+ interface UseTimePickerSelectionResult {
11
+ selection: TimePickerSelection;
12
+ selectedSegment: TimeSegment;
13
+ selectSegment: (segment: TimeSegment) => void;
14
+ selectAll: () => void;
15
+ syncSelectionWithDOM: () => boolean;
16
+ }
17
+ export declare const useTimePickerSelection: (options: UseTimePickerSelectionOptions) => UseTimePickerSelectionResult;
18
+ export {};
@@ -0,0 +1,66 @@
1
+ import { useCallback, useLayoutEffect, useState } from 'react';
2
+ export var useTimePickerSelection = function (options) {
3
+ var isInputFocused = options.isInputFocused, format = options.format, displayValue = options.displayValue, getInput = options.getInput;
4
+ var _a = useState('hours'), selection = _a[0], setSelectionState = _a[1];
5
+ var selectedSegment = selection === 'all' ? 'hours' : selection;
6
+ var applySelectionToInput = useCallback(function (nextSelection) {
7
+ var currentInput = getInput();
8
+ if (!currentInput) {
9
+ return;
10
+ }
11
+ var node = currentInput.getNode();
12
+ var isInputActive = (node === null || node === void 0 ? void 0 : node.ownerDocument.activeElement) === node;
13
+ var applySelection = function (input) {
14
+ if (nextSelection === 'all') {
15
+ input.selectAll();
16
+ return;
17
+ }
18
+ input.selectSegment(nextSelection);
19
+ };
20
+ if (isInputActive) {
21
+ applySelection(currentInput);
22
+ return;
23
+ }
24
+ setTimeout(function () {
25
+ var nextInput = getInput();
26
+ if (!nextInput) {
27
+ return;
28
+ }
29
+ nextInput.focus();
30
+ applySelection(nextInput);
31
+ }, 0);
32
+ }, [getInput]);
33
+ var selectSegment = useCallback(function (segment) {
34
+ if (segment === 'seconds' && format === 'minute') {
35
+ return;
36
+ }
37
+ setSelectionState(segment);
38
+ applySelectionToInput(segment);
39
+ }, [applySelectionToInput, format]);
40
+ var selectAll = useCallback(function () {
41
+ setSelectionState('all');
42
+ applySelectionToInput('all');
43
+ }, [applySelectionToInput]);
44
+ var syncSelectionWithDOM = useCallback(function () {
45
+ var _a;
46
+ if (!((_a = getInput()) === null || _a === void 0 ? void 0 : _a.isAllSelected())) {
47
+ return false;
48
+ }
49
+ setSelectionState('all');
50
+ return true;
51
+ }, [getInput]);
52
+ useLayoutEffect(function () {
53
+ if (!isInputFocused || !getInput()) {
54
+ return;
55
+ }
56
+ applySelectionToInput(selection);
57
+ }, [applySelectionToInput, displayValue, getInput, isInputFocused, selection]);
58
+ return {
59
+ selection: selection,
60
+ selectedSegment: selectedSegment,
61
+ selectSegment: selectSegment,
62
+ selectAll: selectAll,
63
+ syncSelectionWithDOM: syncSelectionWithDOM,
64
+ };
65
+ };
66
+ //# sourceMappingURL=useTimePickerSelection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTimePickerSelection.js","sourceRoot":"","sources":["useTimePickerSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAoB/D,MAAM,CAAC,IAAM,sBAAsB,GAAG,UAAC,OAAsC;IACnE,IAAA,cAAc,GAAqC,OAAO,eAA5C,EAAE,MAAM,GAA6B,OAAO,OAApC,EAAE,YAAY,GAAe,OAAO,aAAtB,EAAE,QAAQ,GAAK,OAAO,SAAZ,CAAa;IAE7D,IAAA,KAAiC,QAAQ,CAAsB,OAAO,CAAC,EAAtE,SAAS,QAAA,EAAE,iBAAiB,QAA0C,CAAC;IAE9E,IAAM,eAAe,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IAElE,IAAM,qBAAqB,GAAG,WAAW,CACvC,UAAC,aAAkC;QACjC,IAAM,YAAY,GAAG,QAAQ,EAAE,CA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,CAAC;IAE5B,IAAM,oBAAoB,GAAG,WAAW,CAAC;;QACvC,IAAI,CAAC,CAAA,MAAA,QAAQ,EAAE,0CAAE,aAAa,EAAE,CAAA,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,eAAe,CAAC;QACd,IAAI,CAAC,cAAc,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;YACnC,OAAO;QACT,CAAC;QAED,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,qBAAqB,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC;IAE/E,OAAO;QACL,SAAS,WAAA;QACT,eAAe,iBAAA;QACf,aAAa,eAAA;QACb,SAAS,WAAA;QACT,oBAAoB,sBAAA;KACrB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useLayoutEffect, useState } from 'react';\n\nimport type { TimeFormat, TimeSegment } from '../helpers/TimePicker.shared.js';\nimport type { TimeInputRef } from '../TimeInput.js';\n\ntype TimePickerSelection = TimeSegment | 'all';\n\ninterface UseTimePickerSelectionOptions {\n isInputFocused: boolean;\n format: TimeFormat;\n getInput: () => TimeInputRef | null;\n displayValue: string;\n}\ninterface UseTimePickerSelectionResult {\n selection: TimePickerSelection;\n selectedSegment: TimeSegment;\n selectSegment: (segment: TimeSegment) => void;\n selectAll: () => void;\n syncSelectionWithDOM: () => boolean;\n}\nexport const useTimePickerSelection = (options: UseTimePickerSelectionOptions): UseTimePickerSelectionResult => {\n const { isInputFocused, format, displayValue, getInput } = options;\n\n const [selection, setSelectionState] = useState<TimePickerSelection>('hours');\n\n const selectedSegment = selection === 'all' ? 'hours' : selection;\n\n const applySelectionToInput = useCallback(\n (nextSelection: TimePickerSelection) => {\n const currentInput = getInput();\n\n if (!currentInput) {\n return;\n }\n\n const node = currentInput.getNode();\n const isInputActive = node?.ownerDocument.activeElement === node;\n\n const applySelection = (input: TimeInputRef) => {\n if (nextSelection === 'all') {\n input.selectAll();\n return;\n }\n\n input.selectSegment(nextSelection);\n };\n\n if (isInputActive) {\n applySelection(currentInput);\n return;\n }\n\n setTimeout(() => {\n const nextInput = getInput();\n\n if (!nextInput) {\n return;\n }\n\n nextInput.focus();\n applySelection(nextInput);\n }, 0);\n },\n [getInput],\n );\n\n const selectSegment = useCallback(\n (segment: TimeSegment) => {\n if (segment === 'seconds' && format === 'minute') {\n return;\n }\n\n setSelectionState(segment);\n applySelectionToInput(segment);\n },\n [applySelectionToInput, format],\n );\n\n const selectAll = useCallback(() => {\n setSelectionState('all');\n applySelectionToInput('all');\n }, [applySelectionToInput]);\n\n const syncSelectionWithDOM = useCallback(() => {\n if (!getInput()?.isAllSelected()) {\n return false;\n }\n\n setSelectionState('all');\n return true;\n }, [getInput]);\n\n useLayoutEffect(() => {\n if (!isInputFocused || !getInput()) {\n return;\n }\n\n applySelectionToInput(selection);\n }, [applySelectionToInput, displayValue, getInput, isInputFocused, selection]);\n\n return {\n selection,\n selectedSegment,\n selectSegment,\n selectAll,\n syncSelectionWithDOM,\n };\n};\n"]}
@@ -0,0 +1,18 @@
1
+ import type { RefObject } from 'react';
2
+ import type { TimeFormat } from '../helpers/TimePicker.shared.js';
3
+ interface UseTimePickerValueOptions {
4
+ isInputFocused: boolean;
5
+ value?: string;
6
+ format: TimeFormat;
7
+ onValueChange?(value: string): void;
8
+ }
9
+ interface UseTimePickerValueResult {
10
+ editingValue: string;
11
+ editingValueRef: RefObject<string>;
12
+ setEditingValue(value: string): void;
13
+ updateEditingValue(value: string): void;
14
+ commitEditingValue(): string;
15
+ clearEditingValue(): void;
16
+ }
17
+ export declare const useTimePickerValue: (options: UseTimePickerValueOptions) => UseTimePickerValueResult;
18
+ export {};
@@ -0,0 +1,58 @@
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
+ import { EMPTY_VALUE } from '../helpers/TimePicker.constants.js';
3
+ import { isTimeDisplayEmpty, normalizeTimeValue } from '../helpers/TimePicker.value.js';
4
+ export var useTimePickerValue = function (options) {
5
+ var value = options.value, format = options.format, isInputFocused = options.isInputFocused, onValueChange = options.onValueChange;
6
+ var committedValue = normalizeTimeValue(value !== null && value !== void 0 ? value : EMPTY_VALUE, format);
7
+ var _a = useState(committedValue), editingValue = _a[0], setEditingValueState = _a[1];
8
+ var editingValueRef = useRef(editingValue);
9
+ var emittedValueRef = useRef(committedValue);
10
+ var setEditingValue = useCallback(function (nextEditingValue) {
11
+ editingValueRef.current = nextEditingValue;
12
+ setEditingValueState(nextEditingValue);
13
+ }, []);
14
+ var emitValue = useCallback(function (nextValue) {
15
+ if (emittedValueRef.current !== nextValue) {
16
+ emittedValueRef.current = nextValue;
17
+ onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(nextValue);
18
+ }
19
+ }, [onValueChange]);
20
+ var updateEditingValue = useCallback(function (nextEditingValue) {
21
+ setEditingValue(nextEditingValue);
22
+ emitValue(normalizeTimeValue(nextEditingValue, format));
23
+ }, [emitValue, format, setEditingValue]);
24
+ var clearEditingValue = useCallback(function () {
25
+ setEditingValue(EMPTY_VALUE);
26
+ }, [setEditingValue]);
27
+ var commitEditingValue = useCallback(function () {
28
+ var currentEditingValue = editingValueRef.current;
29
+ if (isTimeDisplayEmpty(currentEditingValue)) {
30
+ clearEditingValue();
31
+ return EMPTY_VALUE;
32
+ }
33
+ var nextValue = normalizeTimeValue(currentEditingValue, format);
34
+ setEditingValue(nextValue);
35
+ emitValue(nextValue);
36
+ return nextValue;
37
+ }, [clearEditingValue, editingValueRef, emitValue, format, setEditingValue]);
38
+ useEffect(function () {
39
+ if (!isInputFocused) {
40
+ setEditingValue(committedValue);
41
+ }
42
+ else if (committedValue !== emittedValueRef.current) {
43
+ setEditingValue(committedValue);
44
+ }
45
+ }, [committedValue, isInputFocused, setEditingValue]);
46
+ useEffect(function () {
47
+ emittedValueRef.current = committedValue;
48
+ }, [committedValue]);
49
+ return {
50
+ editingValue: editingValue,
51
+ editingValueRef: editingValueRef,
52
+ setEditingValue: setEditingValue,
53
+ updateEditingValue: updateEditingValue,
54
+ commitEditingValue: commitEditingValue,
55
+ clearEditingValue: clearEditingValue,
56
+ };
57
+ };
58
+ //# sourceMappingURL=useTimePickerValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTimePickerValue.js","sourceRoot":"","sources":["useTimePickerValue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAkBxF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,OAAkC;IAC3D,IAAA,KAAK,GAA4C,OAAO,MAAnD,EAAE,MAAM,GAAoC,OAAO,OAA3C,EAAE,cAAc,GAAoB,OAAO,eAA3B,EAAE,aAAa,GAAK,OAAO,cAAZ,CAAa;IAEjE,IAAM,cAAc,GAAG,kBAAkB,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,WAAW,EAAE,MAAM,CAAC,CAAC;IAElE,IAAA,KAAuC,QAAQ,CAAS,cAAc,CAAC,EAAtE,YAAY,QAAA,EAAE,oBAAoB,QAAoC,CAAC;IAE9E,IAAM,eAAe,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;IAC7C,IAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAE/C,IAAM,eAAe,GAAG,WAAW,CAAC,UAAC,gBAAwB;QAC3D,eAAe,CAAC,OAAO,GAAG,gBAAgB,CAAC;QAC3C,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACzC,CAAC,EAAE,EAAE,CAAC,CAAC;IA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AAC,OAAO,EAAE,CAAC;YACtD,eAAe,CAAC,cAAc,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC;IAEtD,SAAS,CAAC;QACR,eAAe,CAAC,OAAO,GAAG,cAAc,CAAC;IAC3C,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,OAAO;QACL,YAAY,cAAA;QACZ,eAAe,iBAAA;QACf,eAAe,iBAAA;QACf,kBAAkB,oBAAA;QAClB,kBAAkB,oBAAA;QAClB,iBAAiB,mBAAA;KAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { RefObject } from 'react';\nimport { useCallback, useEffect, useRef, useState } from 'react';\n\nimport { EMPTY_VALUE } from '../helpers/TimePicker.constants.js';\nimport type { TimeFormat } from '../helpers/TimePicker.shared.js';\nimport { isTimeDisplayEmpty, normalizeTimeValue } from '../helpers/TimePicker.value.js';\n\ninterface UseTimePickerValueOptions {\n isInputFocused: boolean;\n value?: string;\n format: TimeFormat;\n onValueChange?(value: string): void;\n}\n\ninterface UseTimePickerValueResult {\n editingValue: string;\n editingValueRef: RefObject<string>;\n setEditingValue(value: string): void;\n updateEditingValue(value: string): void;\n commitEditingValue(): string;\n clearEditingValue(): void;\n}\n\nexport const useTimePickerValue = (options: UseTimePickerValueOptions): UseTimePickerValueResult => {\n const { value, format, isInputFocused, onValueChange } = options;\n\n const committedValue = normalizeTimeValue(value ?? EMPTY_VALUE, format);\n\n const [editingValue, setEditingValueState] = useState<string>(committedValue);\n\n const editingValueRef = useRef(editingValue);\n const emittedValueRef = useRef(committedValue);\n\n const setEditingValue = useCallback((nextEditingValue: string) => {\n editingValueRef.current = nextEditingValue;\n setEditingValueState(nextEditingValue);\n }, []);\n\n const emitValue = useCallback(\n (nextValue: string) => {\n if (emittedValueRef.current !== nextValue) {\n emittedValueRef.current = nextValue;\n onValueChange?.(nextValue);\n }\n },\n [onValueChange],\n );\n\n const updateEditingValue = useCallback(\n (nextEditingValue: string) => {\n setEditingValue(nextEditingValue);\n emitValue(normalizeTimeValue(nextEditingValue, format));\n },\n [emitValue, format, setEditingValue],\n );\n\n const clearEditingValue = useCallback(() => {\n setEditingValue(EMPTY_VALUE);\n }, [setEditingValue]);\n\n const commitEditingValue = useCallback((): string => {\n const currentEditingValue = editingValueRef.current;\n\n if (isTimeDisplayEmpty(currentEditingValue)) {\n clearEditingValue();\n return EMPTY_VALUE;\n }\n\n const nextValue = normalizeTimeValue(currentEditingValue, format);\n\n setEditingValue(nextValue);\n emitValue(nextValue);\n\n return nextValue;\n }, [clearEditingValue, editingValueRef, emitValue, format, setEditingValue]);\n\n useEffect(() => {\n if (!isInputFocused) {\n setEditingValue(committedValue);\n } else if (committedValue !== emittedValueRef.current) {\n setEditingValue(committedValue);\n }\n }, [committedValue, isInputFocused, setEditingValue]);\n\n useEffect(() => {\n emittedValueRef.current = committedValue;\n }, [committedValue]);\n\n return {\n editingValue,\n editingValueRef,\n setEditingValue,\n updateEditingValue,\n commitEditingValue,\n clearEditingValue,\n };\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './TimePicker.js';
2
+ export type { TimeFormat, TimeSegment, TimeSlot } from './helpers/TimePicker.shared.js';
@@ -0,0 +1,2 @@
1
+ export * from './TimePicker.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './TimePicker.js';\nexport type { TimeFormat, TimeSegment, TimeSlot } from './helpers/TimePicker.shared.js';\n"]}
package/index.d.ts CHANGED
@@ -39,6 +39,7 @@ export * from './components/Sticky/index.js';
39
39
  export * from './components/Switcher/index.js';
40
40
  export * from './components/Tabs/index.js';
41
41
  export * from './components/Textarea/index.js';
42
+ export * from './components/TimePicker/index.js';
42
43
  export * from './components/Toast/index.js';
43
44
  export * from './components/SingleToast/index.js';
44
45
  export * from './components/Toggle/index.js';
package/index.js CHANGED
@@ -39,6 +39,7 @@ export * from './components/Sticky/index.js';
39
39
  export * from './components/Switcher/index.js';
40
40
  export * from './components/Tabs/index.js';
41
41
  export * from './components/Textarea/index.js';
42
+ export * from './components/TimePicker/index.js';
42
43
  export * from './components/Toast/index.js';
43
44
  export * from './components/SingleToast/index.js';
44
45
  export * from './components/Toggle/index.js';
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAE1C,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,kBAAkB,MAAM,oCAAoC,CAAC","sourcesContent":["export * from './components/Autocomplete/index.js';\nexport * from './components/Button/index.js';\nexport * from './components/Calendar/index.js';\nexport * from './components/Center/index.js';\nexport * from './components/Checkbox/index.js';\nexport * from './components/ComboBox/index.js';\nexport * from './components/CurrencyInput/index.js';\nexport * from './components/CurrencyLabel/index.js';\nexport * from './components/DateInput/index.js';\nexport * from './components/DatePicker/index.js';\nexport * from './components/DateRangePicker/index.js';\nexport * from './components/Dropdown/index.js';\nexport * from './components/DropdownMenu/index.js';\nexport * from './components/FileUploader/index.js';\nexport * from './components/FxInput/index.js';\nexport * from './components/Gapped/index.js';\nexport * from './components/GlobalLoader/index.js';\nexport * from './components/Group/index.js';\nexport * from './components/Hint/index.js';\nexport * from './components/Input/index.js';\nexport * from './components/Kebab/index.js';\nexport * from './components/Link/index.js';\nexport * from './components/Loader/index.js';\nexport * from './components/MenuFooter/index.js';\nexport * from './components/MenuHeader/index.js';\nexport * from './components/MenuItem/index.js';\nexport * from './components/MenuSeparator/index.js';\nexport * from './components/MiniModal/index.js';\nexport * from './components/Modal/index.js';\nexport * from './components/Paging/index.js';\nexport * from './components/PasswordInput/index.js';\nexport * from './components/Radio/index.js';\nexport * from './components/RadioGroup/index.js';\nexport * from './components/ScrollContainer/index.js';\nexport * from './components/Select/index.js';\nexport * from './components/SidePage/index.js';\nexport * from './components/Spinner/index.js';\nexport * from './components/Sticky/index.js';\nexport * from './components/Switcher/index.js';\nexport * from './components/Tabs/index.js';\nexport * from './components/Textarea/index.js';\nexport * from './components/Toast/index.js';\nexport * from './components/SingleToast/index.js';\nexport * from './components/Toggle/index.js';\nexport * from './components/Token/index.js';\nexport * from './components/TokenInput/index.js';\nexport * from './components/Tooltip/index.js';\nexport * from './components/TooltipMenu/index.js';\nexport * from './components/ResponsiveLayout/index.js';\nexport * from './components/MaskedInput/index.js';\nexport * from './lib/featureFlagsContext/index.js';\nexport * from './lib/locale/index.js';\nexport * from './lib/size/index.js';\nexport * from './lib/theming/ThemeContext.js';\nexport * from './lib/theming/ThemeFactory.js';\nexport * from './lib/theming/themes/LightTheme.js';\nexport * from './lib/theming/themes/DarkTheme.js';\nexport * from './lib/types/props.js';\nexport * from './internal/Popup/types.js';\nexport type { PopupMenuCaptionProps } from './internal/PopupMenu/index.js';\nexport * as ColorFunctions from './lib/styles/ColorFunctions.js';\nexport * as DimensionFunctions from './lib/styles/DimensionFunctions.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,g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AC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAE1C,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,kBAAkB,MAAM,oCAAoC,CAAC","sourcesContent":["export * from './components/Autocomplete/index.js';\nexport * from './components/Button/index.js';\nexport * from './components/Calendar/index.js';\nexport * from './components/Center/index.js';\nexport * from './components/Checkbox/index.js';\nexport * from './components/ComboBox/index.js';\nexport * from './components/CurrencyInput/index.js';\nexport * from './components/CurrencyLabel/index.js';\nexport * from './components/DateInput/index.js';\nexport * from './components/DatePicker/index.js';\nexport * from './components/DateRangePicker/index.js';\nexport * from './components/Dropdown/index.js';\nexport * from './components/DropdownMenu/index.js';\nexport * from './components/FileUploader/index.js';\nexport * from './components/FxInput/index.js';\nexport * from './components/Gapped/index.js';\nexport * from './components/GlobalLoader/index.js';\nexport * from './components/Group/index.js';\nexport * from './components/Hint/index.js';\nexport * from './components/Input/index.js';\nexport * from './components/Kebab/index.js';\nexport * from './components/Link/index.js';\nexport * from './components/Loader/index.js';\nexport * from './components/MenuFooter/index.js';\nexport * from './components/MenuHeader/index.js';\nexport * from './components/MenuItem/index.js';\nexport * from './components/MenuSeparator/index.js';\nexport * from './components/MiniModal/index.js';\nexport * from './components/Modal/index.js';\nexport * from './components/Paging/index.js';\nexport * from './components/PasswordInput/index.js';\nexport * from './components/Radio/index.js';\nexport * from './components/RadioGroup/index.js';\nexport * from './components/ScrollContainer/index.js';\nexport * from './components/Select/index.js';\nexport * from './components/SidePage/index.js';\nexport * from './components/Spinner/index.js';\nexport * from './components/Sticky/index.js';\nexport * from './components/Switcher/index.js';\nexport * from './components/Tabs/index.js';\nexport * from './components/Textarea/index.js';\nexport * from './components/TimePicker/index.js';\nexport * from './components/Toast/index.js';\nexport * from './components/SingleToast/index.js';\nexport * from './components/Toggle/index.js';\nexport * from './components/Token/index.js';\nexport * from './components/TokenInput/index.js';\nexport * from './components/Tooltip/index.js';\nexport * from './components/TooltipMenu/index.js';\nexport * from './components/ResponsiveLayout/index.js';\nexport * from './components/MaskedInput/index.js';\nexport * from './lib/featureFlagsContext/index.js';\nexport * from './lib/locale/index.js';\nexport * from './lib/size/index.js';\nexport * from './lib/theming/ThemeContext.js';\nexport * from './lib/theming/ThemeFactory.js';\nexport * from './lib/theming/themes/LightTheme.js';\nexport * from './lib/theming/themes/DarkTheme.js';\nexport * from './lib/types/props.js';\nexport * from './internal/Popup/types.js';\nexport type { PopupMenuCaptionProps } from './internal/PopupMenu/index.js';\nexport * as ColorFunctions from './lib/styles/ColorFunctions.js';\nexport * as DimensionFunctions from './lib/styles/DimensionFunctions.js';\n"]}
@@ -0,0 +1,16 @@
1
+ import type { TimeFormat } from '../../components/TimePicker/index.js';
2
+ import type { Nullable } from '../../typings/utility-types.js';
3
+ export interface NativeTimeInputProps {
4
+ 'data-tid'?: string;
5
+ disabled?: boolean;
6
+ format: TimeFormat;
7
+ value: Nullable<string>;
8
+ minTime?: Nullable<string>;
9
+ maxTime?: Nullable<string>;
10
+ onValueChange?(value: string): void;
11
+ }
12
+ export interface NativeTimeInputRef {
13
+ focus(): void;
14
+ click(): void;
15
+ }
16
+ export declare const NativeTimeInput: import("../../lib/forwardRefAndName.js").ReactUIComponentWithRef<NativeTimeInputRef, NativeTimeInputProps> & Record<never, never>;
@@ -0,0 +1,25 @@
1
+ import React, { useImperativeHandle, useRef } from 'react';
2
+ import { forwardRefAndName } from '../../lib/forwardRefAndName.js';
3
+ import { useEmotion } from '../../lib/renderEnvironment/index.js';
4
+ import { getJsStyles } from './NativeTimeInput.styles.js';
5
+ import { getDefaultMaxTime, getDefaultMinTime, getNativeTimeStep, getTimeForComponent, getTimeForNative, } from './NativeTimeInput.utils.js';
6
+ export var NativeTimeInput = forwardRefAndName('NativeTimeInput', function (props, ref) {
7
+ var _a;
8
+ var value = props.value, minTime = props.minTime, maxTime = props.maxTime, format = props.format, disabled = props.disabled, onValueChange = props.onValueChange, dataTid = props["data-tid"];
9
+ var jsStyles = getJsStyles(useEmotion());
10
+ var inputRef = useRef(null);
11
+ useImperativeHandle(ref, function () { return ({
12
+ focus: function () {
13
+ var _a;
14
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
15
+ },
16
+ click: function () {
17
+ var _a;
18
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click();
19
+ },
20
+ }); }, []);
21
+ return (React.createElement("input", { type: 'time', "data-tid": dataTid, ref: inputRef, disabled: disabled, className: jsStyles.inputTypeTime(), tabIndex: -1, step: getNativeTimeStep(format), min: minTime ? getTimeForNative(minTime, format) : getDefaultMinTime(format), max: maxTime ? getTimeForNative(maxTime, format) : getDefaultMaxTime(format), value: (_a = getTimeForNative(value, format)) !== null && _a !== void 0 ? _a : '', onChange: function (event) {
22
+ onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(getTimeForComponent(event.target.value, format));
23
+ } }));
24
+ });
25
+ //# sourceMappingURL=NativeTimeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeTimeInput.js","sourceRoot":"","sources":["NativeTimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACj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BAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,mCAAI,EAAE,EAC5C,QAAQ,EAAE,UAAC,KAAK;YACd,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QACnE,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React, { useImperativeHandle, useRef } from 'react';\n\nimport type { TimeFormat } from '../../components/TimePicker/index.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { useEmotion } from '../../lib/renderEnvironment/index.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { getJsStyles } from './NativeTimeInput.styles.js';\nimport {\n getDefaultMaxTime,\n getDefaultMinTime,\n getNativeTimeStep,\n getTimeForComponent,\n getTimeForNative,\n} from './NativeTimeInput.utils.js';\n\nexport interface NativeTimeInputProps {\n 'data-tid'?: string;\n disabled?: boolean;\n format: TimeFormat;\n value: Nullable<string>;\n minTime?: Nullable<string>;\n maxTime?: Nullable<string>;\n onValueChange?(value: string): void;\n}\n\nexport interface NativeTimeInputRef {\n focus(): void;\n click(): void;\n}\n\nexport const NativeTimeInput = forwardRefAndName<NativeTimeInputRef, NativeTimeInputProps>(\n 'NativeTimeInput',\n (props, ref) => {\n const { value, minTime, maxTime, format, disabled, onValueChange, 'data-tid': dataTid } = props;\n\n const jsStyles = getJsStyles(useEmotion());\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n focus() {\n inputRef.current?.focus();\n },\n click() {\n inputRef.current?.click();\n },\n }),\n [],\n );\n\n return (\n <input\n type={'time'}\n data-tid={dataTid}\n ref={inputRef}\n disabled={disabled}\n className={jsStyles.inputTypeTime()}\n tabIndex={-1}\n step={getNativeTimeStep(format)}\n min={minTime ? getTimeForNative(minTime, format) : getDefaultMinTime(format)}\n max={maxTime ? getTimeForNative(maxTime, format) : getDefaultMaxTime(format)}\n value={getTimeForNative(value, format) ?? ''}\n onChange={(event) => {\n onValueChange?.(getTimeForComponent(event.target.value, format));\n }}\n />\n );\n },\n);\n"]}
@@ -0,0 +1,3 @@
1
+ export declare const getJsStyles: import("../../lib/theming/Emotion.js").StylesGetter<{
2
+ inputTypeTime(): string;
3
+ }>;
@@ -0,0 +1,15 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { memoizeGetStyles } from '../../lib/theming/Emotion.js';
6
+ export var getJsStyles = memoizeGetStyles(function (_a) {
7
+ var css = _a.css;
8
+ return ({
9
+ inputTypeTime: function () {
10
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 0;\n height: 0;\n padding: 0;\n margin: 0;\n line-height: 0;\n transform: scale(0);\n border: none;\n overflow: hidden;\n opacity: 0;\n "], ["\n width: 0;\n height: 0;\n padding: 0;\n margin: 0;\n line-height: 0;\n transform: scale(0);\n border: none;\n overflow: hidden;\n opacity: 0;\n "])));
11
+ },
12
+ });
13
+ });
14
+ var templateObject_1;
15
+ //# sourceMappingURL=NativeTimeInput.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeTimeInput.styles.js","sourceRoot":"","sources":["NativeTimeInput.styles.ts"],"names":[],"mappings":";;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,CAAC,IAAM,WAAW,GAAG,gBAAgB,CAAC,UAAC,EAAgB;QAAd,GAAG,SAAA;IAAgB,OAAA,CAAC;QACjE,aAAa;YACX,OAAO,GAAG,uQAAA,oMAUT,KAAC;QACJ,CAAC;KACF,CAAC;AAdgE,CAchE,CAAC,CAAC","sourcesContent":["import type { Emotion } from '@emotion/css/create-instance';\n\nimport { memoizeGetStyles } from '../../lib/theming/Emotion.js';\n\nexport const getJsStyles = memoizeGetStyles(({ css }: Emotion) => ({\n inputTypeTime() {\n return css`\n width: 0;\n height: 0;\n padding: 0;\n margin: 0;\n line-height: 0;\n transform: scale(0);\n border: none;\n overflow: hidden;\n opacity: 0;\n `;\n },\n}));\n"]}
@@ -0,0 +1,7 @@
1
+ import type { TimeFormat } from '../../components/TimePicker/index.js';
2
+ import type { Nullable } from '../../typings/utility-types.js';
3
+ export declare const getTimeForNative: (componentTime: Nullable<string>, format: TimeFormat) => string | undefined;
4
+ export declare const getTimeForComponent: (nativeTime: Nullable<string>, format: TimeFormat) => string;
5
+ export declare const getDefaultMinTime: (format: TimeFormat) => string;
6
+ export declare const getDefaultMaxTime: (format: TimeFormat) => string;
7
+ export declare const getNativeTimeStep: (format: TimeFormat) => number;
@@ -0,0 +1,28 @@
1
+ var DEFAULT_NATIVE_MIN_TIME = '00:00:00';
2
+ var DEFAULT_NATIVE_MAX_TIME = '23:59:59';
3
+ var padTimePart = function (value) { return (value !== null && value !== void 0 ? value : '00').padStart(2, '0'); };
4
+ var normalizeNativeTime = function (value, format) {
5
+ var _a = value.split(':'), hours = _a[0], minutes = _a[1], seconds = _a[2];
6
+ var normalizedTime = "".concat(padTimePart(hours), ":").concat(padTimePart(minutes), ":").concat(padTimePart(seconds));
7
+ return format === 'minute' ? normalizedTime.slice(0, 5) : normalizedTime;
8
+ };
9
+ export var getTimeForNative = function (componentTime, format) {
10
+ if (!componentTime) {
11
+ return undefined;
12
+ }
13
+ return normalizeNativeTime(componentTime, format);
14
+ };
15
+ export var getTimeForComponent = function (nativeTime, format) {
16
+ if (!nativeTime) {
17
+ return '';
18
+ }
19
+ return normalizeNativeTime(nativeTime, format);
20
+ };
21
+ export var getDefaultMinTime = function (format) {
22
+ return format === 'minute' ? DEFAULT_NATIVE_MIN_TIME.slice(0, 5) : DEFAULT_NATIVE_MIN_TIME;
23
+ };
24
+ export var getDefaultMaxTime = function (format) {
25
+ return format === 'minute' ? DEFAULT_NATIVE_MAX_TIME.slice(0, 5) : DEFAULT_NATIVE_MAX_TIME;
26
+ };
27
+ export var getNativeTimeStep = function (format) { return (format === 'minute' ? 60 : 1); };
28
+ //# sourceMappingURL=NativeTimeInput.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeTimeInput.utils.js","sourceRoot":"","sources":["NativeTimeInput.utils.ts"],"names":[],"mappings":"AAGA,IAAM,uBAAuB,GAAG,UAAU,CAAC;AAC3C,IAAM,uBAAuB,GAAG,UAAU,CAAC;AAE3C,IAAM,WAAW,GAAG,UAAC,KAAyB,IAAa,OAAA,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAhC,CAAgC,CAAC;AAE5F,IAAM,mBAAmB,GAAG,UAAC,KAAa,EAAE,MAAkB;IACtD,IAAA,KAA4B,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAA3C,KAAK,QAAA,EAAE,OAAO,QAAA,EAAE,OAAO,QAAoB,CAAC;IAEnD,IAAM,cAAc,GAAG,UAAG,WAAW,CAAC,KAAK,CAAC,cAAI,WAAW,CAAC,OAAO,CAAC,cAAI,WAAW,CAAC,OAAO,CAAC,CAAE,CAAC;IAE/F,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;AAC3E,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,aAA+B,EAAE,MAAkB;IAClF,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,mBAAmB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,UAA4B,EAAE,MAAkB;IAClF,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,mBAAmB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,MAAkB;IAClD,OAAA,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB;AAAnF,CAAmF,CAAC;AAEtF,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,MAAkB;IAClD,OAAA,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB;AAAnF,CAAmF,CAAC;AAEtF,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,MAAkB,IAAa,OAAA,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAA9B,CAA8B,CAAC","sourcesContent":["import type { TimeFormat } from '../../components/TimePicker/index.js';\nimport type { Nullable } from '../../typings/utility-types.js';\n\nconst DEFAULT_NATIVE_MIN_TIME = '00:00:00';\nconst DEFAULT_NATIVE_MAX_TIME = '23:59:59';\n\nconst padTimePart = (value: string | undefined): string => (value ?? '00').padStart(2, '0');\n\nconst normalizeNativeTime = (value: string, format: TimeFormat): string => {\n const [hours, minutes, seconds] = value.split(':');\n\n const normalizedTime = `${padTimePart(hours)}:${padTimePart(minutes)}:${padTimePart(seconds)}`;\n\n return format === 'minute' ? normalizedTime.slice(0, 5) : normalizedTime;\n};\n\nexport const getTimeForNative = (componentTime: Nullable<string>, format: TimeFormat): string | undefined => {\n if (!componentTime) {\n return undefined;\n }\n\n return normalizeNativeTime(componentTime, format);\n};\n\nexport const getTimeForComponent = (nativeTime: Nullable<string>, format: TimeFormat): string => {\n if (!nativeTime) {\n return '';\n }\n\n return normalizeNativeTime(nativeTime, format);\n};\n\nexport const getDefaultMinTime = (format: TimeFormat): string =>\n format === 'minute' ? DEFAULT_NATIVE_MIN_TIME.slice(0, 5) : DEFAULT_NATIVE_MIN_TIME;\n\nexport const getDefaultMaxTime = (format: TimeFormat): string =>\n format === 'minute' ? DEFAULT_NATIVE_MAX_TIME.slice(0, 5) : DEFAULT_NATIVE_MAX_TIME;\n\nexport const getNativeTimeStep = (format: TimeFormat): number => (format === 'minute' ? 60 : 1);\n"]}
@@ -0,0 +1 @@
1
+ export * from './NativeTimeInput.js';
@@ -0,0 +1,2 @@
1
+ export * from './NativeTimeInput.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './NativeTimeInput.js';\n"]}
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../BaseIcon.js';
2
+ export declare const TimeClockIcon16Light: import("../../../lib/forwardRefAndName.js").ReactUIComponentWithRef<SVGSVGElement, IconProps> & Record<never, never>;
@@ -0,0 +1,20 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React from 'react';
13
+ import { forwardRefAndName } from '../../../lib/forwardRefAndName.js';
14
+ import { BaseIcon } from '../BaseIcon.js';
15
+ export var TimeClockIcon16Light = forwardRefAndName('TimeClockIcon16Light', function (props, ref) {
16
+ return (React.createElement(BaseIcon, __assign({ ref: ref }, props),
17
+ React.createElement("path", { d: "M8 4.40234C8 4.1262 7.77614 3.90234 7.5 3.90234C7.22386 3.90234 7 4.1262 7 4.40234V6.7274C7 7.39025 7.3745 7.99621 7.96738 8.29265L10.2764 9.44716C10.5234 9.57065 10.8237 9.47054 10.9472 9.22355C11.0707 8.97656 10.9706 8.67623 10.7236 8.55273L8.41459 7.39822C8.1605 7.27118 8 7.01148 8 6.7274V4.40234Z" }),
18
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.5 1C3.91015 1 1 3.91015 1 7.5C1 11.0899 3.91015 14 7.5 14C11.0899 14 14 11.0899 14 7.5C14 3.91015 11.0899 1 7.5 1ZM2 7.5C2 4.46243 4.46243 2 7.5 2C10.5376 2 13 4.46243 13 7.5C13 10.5376 10.5376 13 7.5 13C4.46243 13 2 10.5376 2 7.5Z" })));
19
+ });
20
+ //# sourceMappingURL=TimeClockIcon16Light.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeClockIcon16Light.js","sourceRoot":"","sources":["TimeClockIcon16Light.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,IAAM,oBAAoB,GAAG,iBAAiB,CACnD,sBAAsB,EACtB,UAAC,KAAK,EAAE,GAAG;IACT,OAAO,CACL,oBAAC,QAAQ,aAAC,GAAG,EAAE,GAAG,IAAM,KAAK;QAC3B,8BAAM,CAAC,EAAC,+SAA+S,GAAG;QAC1T,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,4OAA4O,GAC9O,CACO,CACZ,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React from 'react';\n\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName.js';\nimport type { IconProps } from '../BaseIcon.js';\nimport { BaseIcon } from '../BaseIcon.js';\n\nexport const TimeClockIcon16Light = forwardRefAndName<SVGSVGElement, IconProps>(\n 'TimeClockIcon16Light',\n (props, ref) => {\n return (\n <BaseIcon ref={ref} {...props}>\n <path d=\"M8 4.40234C8 4.1262 7.77614 3.90234 7.5 3.90234C7.22386 3.90234 7 4.1262 7 4.40234V6.7274C7 7.39025 7.3745 7.99621 7.96738 8.29265L10.2764 9.44716C10.5234 9.57065 10.8237 9.47054 10.9472 9.22355C11.0707 8.97656 10.9706 8.67623 10.7236 8.55273L8.41459 7.39822C8.1605 7.27118 8 7.01148 8 6.7274V4.40234Z\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.5 1C3.91015 1 1 3.91015 1 7.5C1 11.0899 3.91015 14 7.5 14C11.0899 14 14 11.0899 14 7.5C14 3.91015 11.0899 1 7.5 1ZM2 7.5C2 4.46243 4.46243 2 7.5 2C10.5376 2 13 4.46243 13 7.5C13 10.5376 10.5376 13 7.5 13C4.46243 13 2 10.5376 2 7.5Z\"\n />\n </BaseIcon>\n );\n },\n);\n"]}
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../BaseIcon.js';
2
+ export declare const TimeClockIcon20Light: import("../../../lib/forwardRefAndName.js").ReactUIComponentWithRef<SVGSVGElement, IconProps> & Record<never, never>;
@@ -0,0 +1,20 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React from 'react';
13
+ import { forwardRefAndName } from '../../../lib/forwardRefAndName.js';
14
+ import { BaseIcon } from '../BaseIcon.js';
15
+ export var TimeClockIcon20Light = forwardRefAndName('TimeClockIcon20Light', function (props, ref) {
16
+ return (React.createElement(BaseIcon, __assign({ ref: ref, viewBoxSize: 20 }, props),
17
+ React.createElement("path", { d: "M10.0033 6.50463C10.0033 6.22849 9.77943 6.00464 9.50329 6.00464C9.22715 6.00464 9.00329 6.2285 9.0033 6.50464L9.00332 9.47699C9.00332 10.1394 9.3774 10.7451 9.96974 11.0417L12.7761 12.4471C13.023 12.5707 13.3234 12.4708 13.4471 12.2239C13.5707 11.977 13.4708 11.6766 13.2239 11.5529L10.4175 10.1476C10.1636 10.0205 10.0033 9.76089 10.0033 9.47698L10.0033 6.50463Z" }),
18
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10Z" })));
19
+ });
20
+ //# sourceMappingURL=TimeClockIcon20Light.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeClockIcon20Light.js","sourceRoot":"","sources":["TimeClockIcon20Light.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,IAAM,oBAAoB,GAAG,iBAAiB,CACnD,sBAAsB,EACtB,UAAC,KAAK,EAAE,GAAG;IACT,OAAO,CACL,oBAAC,QAAQ,aAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE,IAAM,KAAK;QAC5C,8BAAM,CAAC,EAAC,8WAA8W,GAAG;QACzX,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,8NAA8N,GAChO,CACO,CACZ,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React from 'react';\n\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName.js';\nimport type { IconProps } from '../BaseIcon.js';\nimport { BaseIcon } from '../BaseIcon.js';\n\nexport const TimeClockIcon20Light = forwardRefAndName<SVGSVGElement, IconProps>(\n 'TimeClockIcon20Light',\n (props, ref) => {\n return (\n <BaseIcon ref={ref} viewBoxSize={20} {...props}>\n <path d=\"M10.0033 6.50463C10.0033 6.22849 9.77943 6.00464 9.50329 6.00464C9.22715 6.00464 9.00329 6.2285 9.0033 6.50464L9.00332 9.47699C9.00332 10.1394 9.3774 10.7451 9.96974 11.0417L12.7761 12.4471C13.023 12.5707 13.3234 12.4708 13.4471 12.2239C13.5707 11.977 13.4708 11.6766 13.2239 11.5529L10.4175 10.1476C10.1636 10.0205 10.0033 9.76089 10.0033 9.47698L10.0033 6.50463Z\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10Z\"\n />\n </BaseIcon>\n );\n },\n);\n"]}
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../BaseIcon.js';
2
+ export declare const TimeClockIcon24Regular: import("../../../lib/forwardRefAndName.js").ReactUIComponentWithRef<SVGSVGElement, IconProps> & Record<never, never>;
@@ -0,0 +1,20 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React from 'react';
13
+ import { forwardRefAndName } from '../../../lib/forwardRefAndName.js';
14
+ import { BaseIcon } from '../BaseIcon.js';
15
+ export var TimeClockIcon24Regular = forwardRefAndName('TimeClockIcon24Regular', function (props, ref) {
16
+ return (React.createElement(BaseIcon, __assign({ ref: ref, viewBoxSize: 24 }, props),
17
+ React.createElement("path", { d: "M12.5 7.3125C12.5 6.89829 12.1642 6.5625 11.75 6.5625C11.3358 6.5625 11 6.89829 11 7.3125V11.2604C11 12.1127 11.4815 12.8918 12.2438 13.2729L15.5396 14.9208C15.9101 15.1061 16.3606 14.9559 16.5458 14.5854C16.7311 14.2149 16.5809 13.7644 16.2104 13.5792L12.9146 11.9313C12.6605 11.8042 12.5 11.5445 12.5 11.2604V7.3125Z" }),
18
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM3.75 12C3.75 7.44365 7.44365 3.75 12 3.75C16.5563 3.75 20.25 7.44365 20.25 12C20.25 16.5563 16.5563 20.25 12 20.25C7.44365 20.25 3.75 16.5563 3.75 12Z" })));
19
+ });
20
+ //# sourceMappingURL=TimeClockIcon24Regular.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeClockIcon24Regular.js","sourceRoot":"","sources":["TimeClockIcon24Regular.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,IAAM,sBAAsB,GAAG,iBAAiB,CACrD,wBAAwB,EACxB,UAAC,KAAK,EAAE,GAAG;IACT,OAAO,CACL,oBAAC,QAAQ,aAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE,IAAM,KAAK;QAC5C,8BAAM,CAAC,EAAC,gUAAgU,GAAG;QAC3U,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,gTAAgT,GAClT,CACO,CACZ,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React from 'react';\n\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName.js';\nimport type { IconProps } from '../BaseIcon.js';\nimport { BaseIcon } from '../BaseIcon.js';\n\nexport const TimeClockIcon24Regular = forwardRefAndName<SVGSVGElement, IconProps>(\n 'TimeClockIcon24Regular',\n (props, ref) => {\n return (\n <BaseIcon ref={ref} viewBoxSize={24} {...props}>\n <path d=\"M12.5 7.3125C12.5 6.89829 12.1642 6.5625 11.75 6.5625C11.3358 6.5625 11 6.89829 11 7.3125V11.2604C11 12.1127 11.4815 12.8918 12.2438 13.2729L15.5396 14.9208C15.9101 15.1061 16.3606 14.9559 16.5458 14.5854C16.7311 14.2149 16.5809 13.7644 16.2104 13.5792L12.9146 11.9313C12.6605 11.8042 12.5 11.5445 12.5 11.2604V7.3125Z\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM3.75 12C3.75 7.44365 7.44365 3.75 12 3.75C16.5563 3.75 20.25 7.44365 20.25 12C20.25 16.5563 16.5563 20.25 12 20.25C7.44365 20.25 3.75 16.5563 3.75 12Z\"\n />\n </BaseIcon>\n );\n },\n);\n"]}
@@ -595,6 +595,40 @@ export declare class BasicThemeClass {
595
595
  static mobileCalendarCellFontSize: string;
596
596
  static mobileCalendarGridRowSpacing: string;
597
597
  static mobileCalendarWrapperHeight: string;
598
+ static timePickerSlotGapSmall: string;
599
+ static timePickerSlotGapMedium: string;
600
+ static timePickerSlotGapLarge: string;
601
+ static timePickerSuffixGapSmall: string;
602
+ static timePickerSuffixGapMedium: string;
603
+ static timePickerSuffixGapLarge: string;
604
+ static timePickerInputMinWidthSmall: string;
605
+ static timePickerInputMinWidthMedium: string;
606
+ static timePickerInputMinWidthLarge: string;
607
+ static timePickerInputMinWidthWithSecondsSmall: string;
608
+ static timePickerInputMinWidthWithSecondsMedium: string;
609
+ static timePickerInputMinWidthWithSecondsLarge: string;
610
+ static timePickerInputMinWidthWithIconSmall: string;
611
+ static timePickerInputMinWidthWithIconMedium: string;
612
+ static timePickerInputMinWidthWithIconLarge: string;
613
+ static timePickerInputMinWidthWithIconAndSecondsSmall: string;
614
+ static timePickerInputMinWidthWithIconAndSecondsMedium: string;
615
+ static timePickerInputMinWidthWithIconAndSecondsLarge: string;
616
+ static timePickerSeparatorOffsetTopSmall: string;
617
+ static timePickerSeparatorOffsetTopMedium: string;
618
+ static timePickerSeparatorOffsetTopLarge: string;
619
+ static timePickerSeparatorPaddingXSmall: string;
620
+ static timePickerSeparatorPaddingXMedium: string;
621
+ static timePickerSeparatorPaddingXLarge: string;
622
+ static get timePickerPopupBg(): string;
623
+ static get timePickerPopupBorderRadius(): string;
624
+ static get timePickerPopupShadow(): string;
625
+ static get timePickerMaskColor(): string;
626
+ static timePickerSelectedBgColor: string;
627
+ static timePickerSelectedTextColor: string;
628
+ static get timePickerMenuOffsetY(): string;
629
+ static get timePickerMenuMaxHeightSmall(): string;
630
+ static get timePickerMenuMaxHeightMedium(): string;
631
+ static get timePickerMenuMaxHeightLarge(): string;
598
632
  static rangeCalendarCellBg: string;
599
633
  static rangeCalendarCellEndBg: string;
600
634
  static rangeCalendarCellEndColor: string;