@trackunit/react-form-components 1.15.6 → 1.15.7
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.cjs.js +2 -2
- package/index.esm.js +1 -1
- package/package.json +8 -8
package/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var i18nLibraryTranslation = require('@trackunit/i18n-library-translation');
|
|
5
|
-
var
|
|
5
|
+
var dateAndTimeUtils = require('@trackunit/date-and-time-utils');
|
|
6
6
|
var reactComponents = require('@trackunit/react-components');
|
|
7
7
|
var uiDesignTokens = require('@trackunit/ui-design-tokens');
|
|
8
8
|
var react = require('react');
|
|
@@ -496,7 +496,7 @@ BaseInput.displayName = "BaseInput";
|
|
|
496
496
|
*/
|
|
497
497
|
const DateBaseInput = ({ min, max, defaultValue, value, ref, ...rest }) => {
|
|
498
498
|
const formatDateToInputString = (date) => date instanceof Date
|
|
499
|
-
?
|
|
499
|
+
? dateAndTimeUtils.Temporal.PlainDateTime.from({
|
|
500
500
|
year: date.getFullYear(),
|
|
501
501
|
month: date.getMonth() + 1,
|
|
502
502
|
day: date.getDate(),
|
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { registerTranslations, useNamespaceTranslation, NamespaceTrans } from '@trackunit/i18n-library-translation';
|
|
3
|
-
import { Temporal } from '@
|
|
3
|
+
import { Temporal } from '@trackunit/date-and-time-utils';
|
|
4
4
|
import { IconButton, Icon, Tooltip, cvaMenu, cvaMenuList, Tag, useIsTextTruncated, ZStack, MenuItem, useMeasure, useDebounce, useMergeRefs, Spinner, useScrollBlock, Text, Heading, useIsFirstRender } from '@trackunit/react-components';
|
|
5
5
|
import { themeSpacing } from '@trackunit/ui-design-tokens';
|
|
6
6
|
import { useRef, useEffect, useImperativeHandle, useCallback, useState, cloneElement, isValidElement, useLayoutEffect, useReducer, useMemo, createContext, useContext, useId } from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.7",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
11
|
"react-select": "^5.10.2",
|
|
12
|
+
"@trackunit/date-and-time-utils": "1.11.68",
|
|
12
13
|
"usehooks-ts": "^3.1.0",
|
|
13
14
|
"libphonenumber-js": "^1.12.22",
|
|
14
15
|
"zod": "^3.23.8",
|
|
15
16
|
"react-hook-form": "7.62.0",
|
|
16
17
|
"tailwind-merge": "^2.0.0",
|
|
17
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
18
|
-
"@trackunit/react-components": "1.18.
|
|
19
|
-
"@trackunit/ui-icons": "1.11.
|
|
20
|
-
"@trackunit/shared-utils": "1.13.
|
|
21
|
-
"@trackunit/ui-design-tokens": "1.11.
|
|
22
|
-
"@trackunit/i18n-library-translation": "1.12.
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "1.11.67",
|
|
19
|
+
"@trackunit/react-components": "1.18.7",
|
|
20
|
+
"@trackunit/ui-icons": "1.11.65",
|
|
21
|
+
"@trackunit/shared-utils": "1.13.67",
|
|
22
|
+
"@trackunit/ui-design-tokens": "1.11.66",
|
|
23
|
+
"@trackunit/i18n-library-translation": "1.12.58",
|
|
23
24
|
"string-ts": "^2.0.0",
|
|
24
|
-
"@js-temporal/polyfill": "^0.5.1",
|
|
25
25
|
"es-toolkit": "^1.39.10"
|
|
26
26
|
},
|
|
27
27
|
"module": "./index.esm.js",
|