@tactics/toddle-styleguide 5.4.0 → 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
|
@@ -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();
|