@trackunit/react-components 0.0.102 → 0.0.105-alpha-97c5e688c.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.
- package/components/FormGroup/FormGroup.d.ts +1 -1
- package/index.js +5 -8
- package/package.json +6 -7
|
@@ -26,7 +26,7 @@ export interface FormGroupProps extends CommonProps {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* The FormGroup component should be used to wrap any Input element that needs a label.
|
|
29
|
-
* Besides a label the component
|
|
29
|
+
* Besides a label the component supplies an optional Tip, HelpText and HelpAddon support.
|
|
30
30
|
*
|
|
31
31
|
* @param {FormGroupProps} props - The props for the FormGroup component
|
|
32
32
|
* @returns {JSX.Element} FormGroup component
|
package/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import ReactAsyncCreatableSelect from 'react-select/async-creatable';
|
|
|
17
17
|
import ReactCreatableSelect from 'react-select/creatable';
|
|
18
18
|
import ReactSelect from 'react-select';
|
|
19
19
|
import ReactAsyncSelect from 'react-select/async';
|
|
20
|
-
import
|
|
20
|
+
import { format, formatDistance } from 'date-fns';
|
|
21
21
|
|
|
22
22
|
const docs = {
|
|
23
23
|
source: {
|
|
@@ -2330,7 +2330,7 @@ const TipContainer = tw.span`
|
|
|
2330
2330
|
|
|
2331
2331
|
/**
|
|
2332
2332
|
* The FormGroup component should be used to wrap any Input element that needs a label.
|
|
2333
|
-
* Besides a label the component
|
|
2333
|
+
* Besides a label the component supplies an optional Tip, HelpText and HelpAddon support.
|
|
2334
2334
|
*
|
|
2335
2335
|
* @param {FormGroupProps} props - The props for the FormGroup component
|
|
2336
2336
|
* @returns {JSX.Element} FormGroup component
|
|
@@ -4049,12 +4049,9 @@ const TimelineElement = ({
|
|
|
4049
4049
|
size: "large"
|
|
4050
4050
|
})
|
|
4051
4051
|
}),
|
|
4052
|
-
header =
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
}, {
|
|
4056
|
-
children: date
|
|
4057
|
-
}))
|
|
4052
|
+
header = `${format(date, "MMM d, yyyy")} (${formatDistance(date, new Date(), {
|
|
4053
|
+
addSuffix: true
|
|
4054
|
+
})})`
|
|
4058
4055
|
}) => {
|
|
4059
4056
|
var _a;
|
|
4060
4057
|
|
package/package.json
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.105-alpha-97c5e688c.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@trackunit/css-core": "0.0.
|
|
8
|
-
"@trackunit/tailwind-styled-components": "0.0.
|
|
7
|
+
"@trackunit/css-core": "0.0.47-alpha-97c5e688c.0",
|
|
8
|
+
"@trackunit/tailwind-styled-components": "0.0.41-alpha-97c5e688c.0",
|
|
9
9
|
"react": "17.0.1",
|
|
10
|
-
"@trackunit/ui-design-tokens": "0.0.
|
|
10
|
+
"@trackunit/ui-design-tokens": "0.0.40-alpha-97c5e688c.0",
|
|
11
11
|
"echarts-for-react": "^3.0.2",
|
|
12
12
|
"uuid": "^8.3.2",
|
|
13
13
|
"@react-spring/web": "^9.4.5",
|
|
14
14
|
"react-use": "^17.3.2",
|
|
15
15
|
"react-day-picker": "^8.0.3",
|
|
16
16
|
"date-fns": "^2.28.0",
|
|
17
|
-
"@trackunit/ui-icons": "0.0.
|
|
17
|
+
"@trackunit/ui-icons": "0.0.42-alpha-97c5e688c.0",
|
|
18
18
|
"react-useportal": "^1.0.16",
|
|
19
19
|
"react-helmet": "^6.1.0",
|
|
20
20
|
"@popperjs/core": "^2.11.4",
|
|
21
21
|
"history": "^5.3.0",
|
|
22
22
|
"react-router-dom": "^6.2.2",
|
|
23
|
-
"react-select": "^5.4.0"
|
|
24
|
-
"react-moment": "^1.1.2"
|
|
23
|
+
"react-select": "^5.4.0"
|
|
25
24
|
},
|
|
26
25
|
"module": "./index.js",
|
|
27
26
|
"main": "./index.js",
|