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

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.
Files changed (2) hide show
  1. package/lib/common.d.ts +11 -0
  2. package/package.json +1 -1
package/lib/common.d.ts CHANGED
@@ -123,9 +123,11 @@ export type GoabTextAreaOnBlurDetail = {
123
123
  event: Event;
124
124
  };
125
125
  export type GoabTabsVariant = "default" | "segmented";
126
+ export type GoabTabsOrientation = "auto" | "horizontal";
126
127
  export interface GoabTabsProps {
127
128
  initialTab?: number;
128
129
  variant?: GoabTabsVariant;
130
+ orientation?: GoabTabsOrientation;
129
131
  }
130
132
  export type GoabTabsOnChangeDetail = {
131
133
  tab: number;
@@ -138,10 +140,19 @@ export interface GoabTableProps extends Margins {
138
140
  variant?: GoabTableVariant;
139
141
  testId?: string;
140
142
  }
143
+ export type GoabTableSortMode = "single" | "multi";
144
+ export type GoabTableSortOrder = 1 | 2;
145
+ export type GoabTableSortEntry = {
146
+ column: string;
147
+ direction: "asc" | "desc";
148
+ };
141
149
  export type GoabTableOnSortDetail = {
142
150
  sortBy: string;
143
151
  sortDir: number;
144
152
  };
153
+ export type GoabTableOnMultiSortDetail = {
154
+ sorts: GoabTableSortEntry[];
155
+ };
145
156
  export type GoabSpacerHorizontalSpacing = Spacing | "fill";
146
157
  export type GoabSpacerVerticalSpacing = Spacing;
147
158
  export interface GoabSpacerProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/ui-components-common",
3
- "version": "1.11.0-dev.2",
3
+ "version": "1.11.0-dev.4",
4
4
  "bugs": {
5
5
  "url": "https://github.com/GovAlta/ui-components/issues"
6
6
  },