@tactics/toddle-styleguide 5.3.3 → 5.4.2

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.tsx CHANGED
@@ -107,6 +107,23 @@ import {Scale} from './src/theme/scale/index';
107
107
 
108
108
  // Export of responsive style
109
109
  import CreateResponsiveStyle from './src/theme/responsive/index';
110
+ import { ClockInterface, SystemClock } from "./src/utilities/datetime/clock.class";
111
+ import { YearAndMonth, YearAndMonthInterface, YearAndMonthLocaleAwareOutputFormat, YearAndMonthOutputFormat } from "./src/utilities/datetime/yearandmonth.class";
112
+ import { Year, YearInterface, YearOutputFormat } from "./src/utilities/datetime/year.class";
113
+ import {SystemTimezone, TimeZone, TimeZoneInterface, UTCTimezone } from "./src/utilities/datetime/timezone.class";
114
+ import { Time, TimeInputFormat, TimeInterface, TimeOutputFormat } from "./src/utilities/datetime/time.class";
115
+ import { Second, SecondInterface, SecondOutputFormat } from "./src/utilities/datetime/second.class";
116
+ import { Month, MonthIndex, MonthInterface, MonthLocalAwareOutputFormat, MonthOutputFormat } from "./src/utilities/datetime/month.class";
117
+ import { Minute, MinuteInterface, MinuteOutputFormat } from "./src/utilities/datetime/minute.class";
118
+ import { Millisecond, MillisecondInterface, MilliSecondOutputFormat } from "./src/utilities/datetime/millisecond.class";
119
+ import { Locale } from "./src/utilities/datetime/locale";
120
+ import { Hour, HourInterface, HourOutputFormat } from "./src/utilities/datetime/hour.class";
121
+ import { DayOfWeek, DayOfWeekIndex, DayOfWeekLocaleAwareOutputFormat, DayOfWeekOutputFormat, IDayOfWeek,
122
+ Iso8601WeekdayNumbers, ZeroBasedWeekdayNumbers } from "./src/utilities/datetime/dayoftheweek.class";
123
+ import { Day } from "./src/components/molecules/day/day.component";
124
+ import { DayInterface, DayOutputFormat } from "./src/utilities/datetime/day.class";
125
+ import { DateTime, DateTimeCalculation, DateTimeInterface, DateTimeOutputFormat } from "./src/utilities/datetime/datetime.class";
126
+ import { DateOnly, DateOnlyInterface, DateOnlyLocaleAwareOutputFormat, DateOnlyOutputFormat } from "./src/utilities/datetime/dateonly.class";
110
127
 
111
128
  export {
112
129
  AllCapsHeading,
@@ -191,4 +208,57 @@ export {
191
208
  SelectableListItem,
192
209
  SwipeableContainer,
193
210
  SwipeableAction,
211
+ ClockInterface,
212
+ SystemClock,
213
+ DateOnlyOutputFormat,
214
+ DateOnlyLocaleAwareOutputFormat,
215
+ DateOnlyInterface,
216
+ DateOnly,
217
+ DateTimeOutputFormat,
218
+ DateTimeCalculation,
219
+ DateTimeInterface,
220
+ DateTime,
221
+ DayOutputFormat,
222
+ DayInterface,
223
+ Day,
224
+ Iso8601WeekdayNumbers,
225
+ ZeroBasedWeekdayNumbers,
226
+ DayOfWeekLocaleAwareOutputFormat,
227
+ DayOfWeekOutputFormat,
228
+ DayOfWeekIndex,
229
+ IDayOfWeek,
230
+ DayOfWeek,
231
+ HourOutputFormat,
232
+ HourInterface,
233
+ Hour,
234
+ Locale,
235
+ MilliSecondOutputFormat,
236
+ MillisecondInterface,
237
+ Millisecond,
238
+ MinuteOutputFormat,
239
+ MinuteInterface,
240
+ Minute,
241
+ MonthOutputFormat,
242
+ MonthLocalAwareOutputFormat,
243
+ MonthInterface,
244
+ MonthIndex,
245
+ Month,
246
+ SecondOutputFormat,
247
+ SecondInterface,
248
+ Second,
249
+ TimeInputFormat,
250
+ TimeOutputFormat,
251
+ TimeInterface,
252
+ Time,
253
+ TimeZoneInterface,
254
+ TimeZone,
255
+ SystemTimezone,
256
+ UTCTimezone,
257
+ YearOutputFormat,
258
+ YearInterface,
259
+ Year,
260
+ YearAndMonthLocaleAwareOutputFormat,
261
+ YearAndMonthOutputFormat,
262
+ YearAndMonthInterface,
263
+ YearAndMonth
194
264
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "5.3.3",
3
+ "version": "5.4.2",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -20,7 +20,7 @@
20
20
  "packageManager": "yarn@3.3.1",
21
21
  "dependencies": {
22
22
  "@callstack/react-theme-provider": "^3.0.8",
23
- "@expo/metro-runtime": "~5.0.4",
23
+ "@expo/metro-runtime": "~6.1.2",
24
24
  "@expo/webpack-config": "~19.0.1",
25
25
  "@lottiefiles/dotlottie-react": "^0.14.3",
26
26
  "@miblanchard/react-native-slider": "^2.3.1",
@@ -36,45 +36,46 @@
36
36
  "@types/xdate": "^0.8.32",
37
37
  "dayjs": "^1.11.18",
38
38
  "dayjs-plugin-utc": "^0.1.2",
39
- "expo": "^53.0.0",
40
- "expo-application": "~6.1.5",
41
- "expo-background-task": "~0.2.8",
42
- "expo-camera": "~16.1.11",
43
- "expo-crypto": "~14.1.5",
44
- "expo-dev-client": "~5.2.4",
45
- "expo-device": "~7.1.4",
46
- "expo-font": "~13.3.2",
47
- "expo-haptics": "~14.1.4",
48
- "expo-linear-gradient": "~14.1.5",
49
- "expo-localization": "~16.1.6",
50
- "expo-secure-store": "~14.2.4",
51
- "expo-splash-screen": "~0.30.10",
52
- "expo-status-bar": "~2.2.3",
39
+ "expo": "^54.0.0",
40
+ "expo-application": "~7.0.7",
41
+ "expo-background-task": "~1.0.8",
42
+ "expo-camera": "~17.0.8",
43
+ "expo-crypto": "~15.0.7",
44
+ "expo-dev-client": "~6.0.12",
45
+ "expo-device": "~8.0.8",
46
+ "expo-font": "~14.0.8",
47
+ "expo-haptics": "~15.0.7",
48
+ "expo-linear-gradient": "~15.0.7",
49
+ "expo-localization": "~17.0.7",
50
+ "expo-secure-store": "~15.0.7",
51
+ "expo-splash-screen": "~31.0.10",
52
+ "expo-status-bar": "~3.0.8",
53
53
  "intl": "^1.2.5",
54
54
  "jsc-android": "^250231.0.0",
55
55
  "lottie-ios": "4.5.0",
56
- "lottie-react-native": "7.2.2",
57
- "react": "19.0.0",
58
- "react-dom": "19.0.0",
56
+ "lottie-react-native": "~7.3.1",
57
+ "react": "19.1.0",
58
+ "react-dom": "19.1.0",
59
59
  "react-i18next": "^13.0.1",
60
- "react-native": "0.79.5",
60
+ "react-native": "0.81.4",
61
61
  "react-native-calendar-strip": "^2.2.6",
62
62
  "react-native-calendars": "^1.1299.0",
63
63
  "react-native-dotenv": "^3.4.9",
64
- "react-native-gesture-handler": "~2.24.0",
64
+ "react-native-gesture-handler": "~2.28.0",
65
65
  "react-native-keychain": "^8.1.1",
66
- "react-native-pager-view": "6.7.1",
66
+ "react-native-pager-view": "6.9.1",
67
67
  "react-native-picker-select": "^8.0.4",
68
- "react-native-reanimated": "~3.17.4",
69
- "react-native-safe-area-context": "5.4.0",
70
- "react-native-screens": "~4.11.1",
71
- "react-native-svg": "15.11.2",
68
+ "react-native-reanimated": "~4.1.1",
69
+ "react-native-safe-area-context": "~5.6.0",
70
+ "react-native-screens": "~4.16.0",
71
+ "react-native-svg": "15.12.1",
72
72
  "react-native-swipe-gestures": "^1.0.5",
73
73
  "react-native-toast-message": "^2.1.6",
74
74
  "react-native-translation": "^1.1.0",
75
- "react-native-web": "^0.20.0",
75
+ "react-native-web": "^0.21.0",
76
76
  "react-native-wheel-picker-expo": "^0.5.4",
77
77
  "react-native-wheely": "^0.6.0",
78
+ "react-native-worklets": "0.5.1",
78
79
  "react-redux": "^8.1.1",
79
80
  "react-test-renderer": "^18.2.0"
80
81
  },
@@ -84,15 +85,19 @@
84
85
  "@types/jest": "^29.5.2",
85
86
  "@types/luxon": "^3.3.0",
86
87
  "@types/node": "^20.3.1",
87
- "@types/react": "~19.0.10",
88
- "@types/react-dom": "~18.3.1",
88
+ "@types/react": "~19.1.10",
89
+ "@types/react-dom": "~19.1.7",
89
90
  "@types/react-test-renderer": "^18.0.0",
90
91
  "jest": "~29.7.0",
91
- "jest-expo": "~53.0.10",
92
+ "jest-expo": "~54.0.12",
92
93
  "prettier": "2.8.8",
93
94
  "ts-jest": "^29.1.0",
94
95
  "ts-node": "^10.9.1",
95
- "typescript": "~5.8.3"
96
+ "typescript": "~5.9.2"
97
+ },
98
+ "resolutions": {
99
+ "@react-native-picker/picker": "2.11.1",
100
+ "react-native-safe-area-context": "5.6.1"
96
101
  },
97
102
  "expo": {
98
103
  "doctor": {
@@ -1,6 +1,5 @@
1
1
  import {DateTime, DateTimeInterface} from './datetime.class';
2
2
  import dayjs from './dayjs-config';
3
- import {TimeZoneInterface} from './timezone.class';
4
3
 
5
4
  export interface ClockInterface {
6
5
  now(): DateTimeInterface;
@@ -43,13 +43,6 @@ export enum DateOnlyLocaleAwareOutputFormat {
43
43
  DATEONLY_FULL = "ddd, D MMM YYYY",
44
44
  }
45
45
 
46
-
47
- export interface DateOnlyCalculation {
48
- years?: number;
49
- months?: number;
50
- days?: number;
51
- }
52
-
53
46
  export interface DateOnlyInterface {
54
47
  year: Year;
55
48
  month: Month;
@@ -19,7 +19,7 @@ export interface MinuteInterface {
19
19
  // formatLocale is not included since seconds don't get formatted local.
20
20
  }
21
21
 
22
- export class Minute {
22
+ export class Minute implements MinuteInterface{
23
23
  private constructor(private readonly minute: number) {
24
24
  if (minute < 0 || minute > 59) {
25
25
  throw InvalidMinute.outOfRange();