@abgov/ui-components-common 1.11.0-dev.4 → 1.11.0-dev.7

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.
@@ -0,0 +1,41 @@
1
+ type CalendarDateInput = string | Date | 0 | {
2
+ year: number;
3
+ month: number;
4
+ day: number;
5
+ };
6
+ export declare class CalendarDate {
7
+ private _dateNums;
8
+ static parse(value: CalendarDateInput): number[];
9
+ static init(): CalendarDate;
10
+ constructor(value?: CalendarDateInput);
11
+ get date(): Date;
12
+ get year(): number;
13
+ get month(): number;
14
+ get day(): number;
15
+ get dayOfWeek(): number;
16
+ get daysInMonth(): number;
17
+ get firstDayOfMonth(): CalendarDate;
18
+ get lastDayOfMonth(): CalendarDate;
19
+ get previousDay(): CalendarDate;
20
+ get nextDay(): CalendarDate;
21
+ get previousWeek(): CalendarDate;
22
+ get nextWeek(): CalendarDate;
23
+ get previousMonth(): CalendarDate;
24
+ get nextMonth(): CalendarDate;
25
+ clone(): CalendarDate;
26
+ setYear(val: number): void;
27
+ setMonth(val: number): void;
28
+ setDay(val: number): CalendarDate;
29
+ addYears(count: number): CalendarDate;
30
+ addMonths(count: number): CalendarDate;
31
+ addDays(count: number): CalendarDate;
32
+ isSameDay(cmp: CalendarDate): boolean;
33
+ isSameMonth(value: CalendarDate): boolean;
34
+ isBefore(cmp: CalendarDate): boolean;
35
+ isAfter(cmp: CalendarDate): boolean;
36
+ isZero(): boolean;
37
+ isValid(): boolean;
38
+ format(tmpl: string): string;
39
+ toString(): string;
40
+ }
41
+ export {};
package/lib/common.d.ts CHANGED
@@ -124,6 +124,7 @@ export type GoabTextAreaOnBlurDetail = {
124
124
  };
125
125
  export type GoabTabsVariant = "default" | "segmented";
126
126
  export type GoabTabsOrientation = "auto" | "horizontal";
127
+ export type GoabTabsNavigation = "hash" | "none";
127
128
  export interface GoabTabsProps {
128
129
  initialTab?: number;
129
130
  variant?: GoabTabsVariant;
@@ -351,4 +352,8 @@ export type GoabDrawerPosition = "bottom" | "left" | "right" | undefined;
351
352
  export type GoabDrawerSizeUnit = "px" | "rem" | "ch" | "vh" | "vw" | "%";
352
353
  export type GoabDrawerSize = `${number}${GoabDrawerSizeUnit}` | undefined;
353
354
  export type GoabWorkSideMenuItemType = "normal" | "emergency" | "success";
355
+ export type GoabWorkSideNotificationItemType = "default" | "success" | "critical" | "warning" | "info";
356
+ export type GoabWorkSideNotificationReadStatus = "read" | "unread";
357
+ export type GoabWorkSideNotificationPriority = "normal" | "urgent";
358
+ export type GoabWorkSideNotificationActiveTabType = "unread" | "urgent" | "all";
354
359
  export {};
package/lib/once.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export declare class Once {
2
+ private done;
3
+ constructor();
4
+ when(condition: boolean): Once;
5
+ do(id: string, fn: () => void): void;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/ui-components-common",
3
- "version": "1.11.0-dev.4",
3
+ "version": "1.11.0-dev.7",
4
4
  "bugs": {
5
5
  "url": "https://github.com/GovAlta/ui-components/issues"
6
6
  },