@idealyst/datepicker 1.2.94 → 1.2.96
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/datepicker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.96",
|
|
4
4
|
"description": "Cross-platform date and time picker components for React and React Native",
|
|
5
5
|
"documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/datepicker#readme",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish:npm": "npm publish"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@idealyst/theme": "^1.2.
|
|
39
|
+
"@idealyst/theme": "^1.2.96",
|
|
40
40
|
"@mdi/js": ">=7.0.0",
|
|
41
41
|
"@mdi/react": ">=1.6.0",
|
|
42
42
|
"react": ">=16.8.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@idealyst/theme": "^1.2.
|
|
72
|
+
"@idealyst/theme": "^1.2.96",
|
|
73
73
|
"@mdi/js": "^7.4.47",
|
|
74
74
|
"@mdi/react": "^1.6.1",
|
|
75
75
|
"@types/react": "^19.1.0",
|
package/src/DateInput.web.tsx
CHANGED
|
@@ -8,6 +8,7 @@ import { DatePicker } from './DatePicker';
|
|
|
8
8
|
import { dateTimeInputStyles } from './InputStyles';
|
|
9
9
|
import type { DateInputProps } from './types';
|
|
10
10
|
import { flattenStyle } from './flattenStyle';
|
|
11
|
+
import type { Theme } from '@idealyst/theme';
|
|
11
12
|
|
|
12
13
|
export const DateInput: React.FC<DateInputProps> = ({
|
|
13
14
|
value,
|
|
@@ -35,7 +36,7 @@ export const DateInput: React.FC<DateInputProps> = ({
|
|
|
35
36
|
});
|
|
36
37
|
|
|
37
38
|
// Get theme for icon size and color
|
|
38
|
-
const { theme } = useUnistyles();
|
|
39
|
+
const { theme } = useUnistyles() as { theme: Theme };
|
|
39
40
|
const iconSize = theme.sizes.input[size].iconSize;
|
|
40
41
|
const iconColor = theme.colors.text.secondary;
|
|
41
42
|
|
package/src/DatePicker.styles.ts
CHANGED
|
@@ -264,10 +264,10 @@ export const datePickerCalendarStyles = defineStyle('DatePickerCalendar', (theme
|
|
|
264
264
|
|
|
265
265
|
// Today styling - subtle background highlight
|
|
266
266
|
todayDay: (_props: DatePickerDynamicProps) => ({
|
|
267
|
-
backgroundColor: theme.intents.primary.
|
|
267
|
+
backgroundColor: theme.intents.primary.light,
|
|
268
268
|
borderRadius: 6,
|
|
269
269
|
_web: {
|
|
270
|
-
background: theme.intents.primary.
|
|
270
|
+
background: theme.intents.primary.light,
|
|
271
271
|
},
|
|
272
272
|
}),
|
|
273
273
|
|
package/src/TimeInput.web.tsx
CHANGED
|
@@ -7,6 +7,7 @@ import { IconSvg } from './IconSvg.web';
|
|
|
7
7
|
import { TimePicker } from './TimePicker';
|
|
8
8
|
import { dateTimeInputStyles } from './InputStyles';
|
|
9
9
|
import type { TimeInputProps } from './types';
|
|
10
|
+
import type { Theme } from '@idealyst/theme';
|
|
10
11
|
|
|
11
12
|
export const TimeInput: React.FC<TimeInputProps> = ({
|
|
12
13
|
value,
|
|
@@ -34,7 +35,7 @@ export const TimeInput: React.FC<TimeInputProps> = ({
|
|
|
34
35
|
});
|
|
35
36
|
|
|
36
37
|
// Get theme for icon size and color
|
|
37
|
-
const { theme } = useUnistyles();
|
|
38
|
+
const { theme } = useUnistyles() as { theme: Theme };
|
|
38
39
|
const iconSize = theme.sizes.input[size].iconSize;
|
|
39
40
|
const iconColor = theme.colors.text.secondary;
|
|
40
41
|
|