@tenancy.nz/datepicker 1.9.5 → 1.9.6
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.
|
@@ -109,9 +109,12 @@ function DatePicker(_ref) {
|
|
|
109
109
|
setOpen(true);
|
|
110
110
|
},
|
|
111
111
|
endAdornment: /* @__PURE__ */React.createElement(InputAdornment, {
|
|
112
|
-
position: "end"
|
|
112
|
+
position: "end",
|
|
113
|
+
sx: {
|
|
114
|
+
color: disabled || readOnly ? ui.token("palette.semantic.icons.disabledColor") : ui.token("palette.semantic.icons.primaryColor")
|
|
115
|
+
}
|
|
113
116
|
}, disabled || readOnly ? triggerIcon : /* @__PURE__ */React.createElement(ui.IconButton, {
|
|
114
|
-
color: "
|
|
117
|
+
color: "primary",
|
|
115
118
|
onClick: function onClick() {
|
|
116
119
|
return setOpen(true);
|
|
117
120
|
},
|
|
@@ -5,7 +5,7 @@ import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
|
5
5
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
6
6
|
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
|
7
7
|
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
8
|
-
import { FormControl, IconButton } from '@tenancy.nz/ui';
|
|
8
|
+
import { FormControl, token, IconButton } from '@tenancy.nz/ui';
|
|
9
9
|
import CalendarOutlinedIcon from '@tenancy.nz/icons/CalendarOutlined';
|
|
10
10
|
import StyledDatepicker from './DatePicker.styled.js';
|
|
11
11
|
|
|
@@ -105,9 +105,12 @@ function DatePicker(_ref) {
|
|
|
105
105
|
setOpen(true);
|
|
106
106
|
},
|
|
107
107
|
endAdornment: /* @__PURE__ */React.createElement(InputAdornment, {
|
|
108
|
-
position: "end"
|
|
108
|
+
position: "end",
|
|
109
|
+
sx: {
|
|
110
|
+
color: disabled || readOnly ? token("palette.semantic.icons.disabledColor") : token("palette.semantic.icons.primaryColor")
|
|
111
|
+
}
|
|
109
112
|
}, disabled || readOnly ? triggerIcon : /* @__PURE__ */React.createElement(IconButton, {
|
|
110
|
-
color: "
|
|
113
|
+
color: "primary",
|
|
111
114
|
onClick: function onClick() {
|
|
112
115
|
return setOpen(true);
|
|
113
116
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenancy.nz/datepicker",
|
|
3
3
|
"description": "Datepicker library for TPS UI.",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.6",
|
|
5
5
|
"author": "TPS <https://www.tenancy.co.nz>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/cjs/index.cjs",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"dayjs": "^1.11.19",
|
|
19
19
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
20
20
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
21
|
-
"@tenancy.nz/icons": "1.9.
|
|
22
|
-
"@tenancy.nz/tokens": "1.9.
|
|
23
|
-
"@tenancy.nz/ui": "1.9.
|
|
21
|
+
"@tenancy.nz/icons": "1.9.6",
|
|
22
|
+
"@tenancy.nz/tokens": "1.9.6",
|
|
23
|
+
"@tenancy.nz/ui": "1.9.6"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tenancy.nz/ui": "1.9.
|
|
27
|
-
"@tenancy.nz/
|
|
28
|
-
"@tenancy.nz/
|
|
26
|
+
"@tenancy.nz/ui": "1.9.6",
|
|
27
|
+
"@tenancy.nz/tokens": "1.9.6",
|
|
28
|
+
"@tenancy.nz/icons": "1.9.6"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsx ../../scripts/build.js"
|