@astryxdesign/lab 0.1.6-canary.e82deeb → 0.1.6-canary.eb23da7
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.
|
@@ -40,47 +40,6 @@ export declare function ListEventRow({ event, timezoneID, isPast, }: {
|
|
|
40
40
|
isPast?: boolean;
|
|
41
41
|
}): import("react").JSX.Element;
|
|
42
42
|
export declare function getEventCategory(event: CalendarEvent, categories: ReadonlyArray<ScheduleCategory>): ScheduleCategory;
|
|
43
|
-
export declare function eventColorStyle(color: ScheduleEventColor | undefined): Readonly<{
|
|
44
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#014975, #A1EEF9)">;
|
|
45
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#03A7D733, #03A7D733)">;
|
|
46
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#089DD0, #0171A4)">;
|
|
47
|
-
}> | Readonly<{
|
|
48
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#0A1317, #E7EAED)">;
|
|
49
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#0A131733, #666A724C)">;
|
|
50
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#647685, #748695)">;
|
|
51
|
-
}> | Readonly<{
|
|
52
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#09441F, #A5F690)">;
|
|
53
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#24BB5E33, #24BB5E33)">;
|
|
54
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#0D8626, #0B991F)">;
|
|
55
|
-
}> | Readonly<{
|
|
56
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#6B2203, #FDB876)">;
|
|
57
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#F2790233, #F2790233)">;
|
|
58
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#EB6E00, #B34A01)">;
|
|
59
|
-
}> | Readonly<{
|
|
60
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#650053, #FEADE3)">;
|
|
61
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#E638B333, #E638B333)">;
|
|
62
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#F351C0, #C02294)">;
|
|
63
|
-
}> | Readonly<{
|
|
64
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#3E0697, #B3B0FE)">;
|
|
65
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#7952FF33, #7952FF33)">;
|
|
66
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#9081FF, #7340FE)">;
|
|
67
|
-
}> | Readonly<{
|
|
68
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#7B0210, #FFB2B8)">;
|
|
69
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#E3193B33, #E3193B33)">;
|
|
70
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#E3193B, #F5394F)">;
|
|
71
|
-
}> | Readonly<{
|
|
72
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#083943, #40DCCD)">;
|
|
73
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#0DB7AF33, #0DB7AF33)">;
|
|
74
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#08A3A3, #08767D)">;
|
|
75
|
-
}> | Readonly<{
|
|
76
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#753F07, #FBCE03)">;
|
|
77
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#E2A40033, #E2A40033)">;
|
|
78
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#C58600, #B47700)">;
|
|
79
|
-
}> | Readonly<{
|
|
80
|
-
readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#042F97, #AFD7FF)">;
|
|
81
|
-
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#0171E333, #0171E333)">;
|
|
82
|
-
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "light-dark(#0064E0, #2694FE)">;
|
|
83
|
-
}>;
|
|
84
43
|
export declare function eventDotColorStyle(color: ScheduleEventColor | undefined): Readonly<{
|
|
85
44
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(#089DD0, #0171A4)">;
|
|
86
45
|
}> | Readonly<{
|
|
@@ -187,9 +146,7 @@ export declare function eventPastSurfaceColorStyle(color: ScheduleEventColor | u
|
|
|
187
146
|
export declare function formatWithPlainDate(date: PlainDate, timezoneID: string, options: Intl.DateTimeFormatOptions): string;
|
|
188
147
|
export declare function formatMonthTitle(date: PlainDate, timezoneID: string): string;
|
|
189
148
|
export declare function formatWeekTitle(start: PlainDate, end: PlainDate, timezoneID: string): string;
|
|
190
|
-
export declare function formatRangeTitle(start: PlainDate, end: PlainDate, timezoneID: string): string;
|
|
191
149
|
export declare function formatFullDate(date: PlainDate, timezoneID: string): string;
|
|
192
|
-
export declare function formatShortDate(date: PlainDate, timezoneID: string): string;
|
|
193
150
|
export declare function formatWeekday(date: PlainDate, timezoneID: string, weekday: 'short' | 'long'): string;
|
|
194
151
|
export declare function formatDayNumber(date: PlainDate, timezoneID: string): string;
|
|
195
152
|
export declare function formatHour(hour: number): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/Schedule/shared.tsx"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAA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AE,OAAO,EACpB,UAAU,EAAE,MAAM,GACjB,OAAO,CAQT;AAOD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAktBjB,CAAC"}
|
package/dist/Schedule/shared.js
CHANGED
|
@@ -240,31 +240,6 @@ export function getEventCategory(event, categories) {
|
|
|
240
240
|
color: DEFAULT_EVENT_CATEGORY.color
|
|
241
241
|
} : DEFAULT_EVENT_CATEGORY);
|
|
242
242
|
}
|
|
243
|
-
export function eventColorStyle(color) {
|
|
244
|
-
switch (color) {
|
|
245
|
-
case 'cyan':
|
|
246
|
-
return styles.eventCyan;
|
|
247
|
-
case 'gray':
|
|
248
|
-
return styles.eventGray;
|
|
249
|
-
case 'green':
|
|
250
|
-
return styles.eventGreen;
|
|
251
|
-
case 'orange':
|
|
252
|
-
return styles.eventOrange;
|
|
253
|
-
case 'pink':
|
|
254
|
-
return styles.eventPink;
|
|
255
|
-
case 'purple':
|
|
256
|
-
return styles.eventPurple;
|
|
257
|
-
case 'red':
|
|
258
|
-
return styles.eventRed;
|
|
259
|
-
case 'teal':
|
|
260
|
-
return styles.eventTeal;
|
|
261
|
-
case 'yellow':
|
|
262
|
-
return styles.eventYellow;
|
|
263
|
-
case 'blue':
|
|
264
|
-
default:
|
|
265
|
-
return styles.eventBlue;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
243
|
export function eventDotColorStyle(color) {
|
|
269
244
|
switch (color) {
|
|
270
245
|
case 'cyan':
|
|
@@ -364,9 +339,6 @@ export function formatWeekTitle(start, end, timezoneID) {
|
|
|
364
339
|
});
|
|
365
340
|
return start.year === end.year ? `${startMonth} - ${endMonth} ${end.year}` : `${startMonth} ${start.year} - ${endMonth} ${end.year}`;
|
|
366
341
|
}
|
|
367
|
-
export function formatRangeTitle(start, end, timezoneID) {
|
|
368
|
-
return `${formatShortDate(start, timezoneID)} - ${formatShortDate(end, timezoneID)}`;
|
|
369
|
-
}
|
|
370
342
|
export function formatFullDate(date, timezoneID) {
|
|
371
343
|
return formatWithPlainDate(date, timezoneID, {
|
|
372
344
|
weekday: 'long',
|
|
@@ -375,12 +347,6 @@ export function formatFullDate(date, timezoneID) {
|
|
|
375
347
|
year: 'numeric'
|
|
376
348
|
});
|
|
377
349
|
}
|
|
378
|
-
export function formatShortDate(date, timezoneID) {
|
|
379
|
-
return formatWithPlainDate(date, timezoneID, {
|
|
380
|
-
month: 'short',
|
|
381
|
-
day: 'numeric'
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
350
|
export function formatWeekday(date, timezoneID, weekday) {
|
|
385
351
|
return formatWithPlainDate(date, timezoneID, {
|
|
386
352
|
weekday
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/lab",
|
|
3
|
-
"version": "0.1.6-canary.
|
|
3
|
+
"version": "0.1.6-canary.eb23da7",
|
|
4
4
|
"description": "Experimental Astryx components — published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
|
|
5
5
|
"author": "Meta Open Source",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@stylexjs/stylex": ">=0.10.0",
|
|
48
|
-
"@astryxdesign/core": "0.1.6-canary.
|
|
48
|
+
"@astryxdesign/core": "0.1.6-canary.eb23da7",
|
|
49
49
|
"react": ">=19.0.0",
|
|
50
50
|
"react-dom": ">=19.0.0"
|
|
51
51
|
},
|
package/src/Schedule/shared.tsx
CHANGED
|
@@ -274,32 +274,6 @@ export function getEventCategory(
|
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
export function eventColorStyle(color: ScheduleEventColor | undefined) {
|
|
278
|
-
switch (color) {
|
|
279
|
-
case 'cyan':
|
|
280
|
-
return styles.eventCyan;
|
|
281
|
-
case 'gray':
|
|
282
|
-
return styles.eventGray;
|
|
283
|
-
case 'green':
|
|
284
|
-
return styles.eventGreen;
|
|
285
|
-
case 'orange':
|
|
286
|
-
return styles.eventOrange;
|
|
287
|
-
case 'pink':
|
|
288
|
-
return styles.eventPink;
|
|
289
|
-
case 'purple':
|
|
290
|
-
return styles.eventPurple;
|
|
291
|
-
case 'red':
|
|
292
|
-
return styles.eventRed;
|
|
293
|
-
case 'teal':
|
|
294
|
-
return styles.eventTeal;
|
|
295
|
-
case 'yellow':
|
|
296
|
-
return styles.eventYellow;
|
|
297
|
-
case 'blue':
|
|
298
|
-
default:
|
|
299
|
-
return styles.eventBlue;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
277
|
export function eventDotColorStyle(color: ScheduleEventColor | undefined) {
|
|
304
278
|
switch (color) {
|
|
305
279
|
case 'cyan':
|
|
@@ -415,17 +389,6 @@ export function formatWeekTitle(
|
|
|
415
389
|
: `${startMonth} ${start.year} - ${endMonth} ${end.year}`;
|
|
416
390
|
}
|
|
417
391
|
|
|
418
|
-
export function formatRangeTitle(
|
|
419
|
-
start: PlainDate,
|
|
420
|
-
end: PlainDate,
|
|
421
|
-
timezoneID: string,
|
|
422
|
-
): string {
|
|
423
|
-
return `${formatShortDate(start, timezoneID)} - ${formatShortDate(
|
|
424
|
-
end,
|
|
425
|
-
timezoneID,
|
|
426
|
-
)}`;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
392
|
export function formatFullDate(date: PlainDate, timezoneID: string): string {
|
|
430
393
|
return formatWithPlainDate(date, timezoneID, {
|
|
431
394
|
weekday: 'long',
|
|
@@ -435,13 +398,6 @@ export function formatFullDate(date: PlainDate, timezoneID: string): string {
|
|
|
435
398
|
});
|
|
436
399
|
}
|
|
437
400
|
|
|
438
|
-
export function formatShortDate(date: PlainDate, timezoneID: string): string {
|
|
439
|
-
return formatWithPlainDate(date, timezoneID, {
|
|
440
|
-
month: 'short',
|
|
441
|
-
day: 'numeric',
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
|
|
445
401
|
export function formatWeekday(
|
|
446
402
|
date: PlainDate,
|
|
447
403
|
timezoneID: string,
|