@layerfi/components 0.1.127 → 0.1.128-alpha.1

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/dist/index.d.ts CHANGED
@@ -79,6 +79,13 @@ declare interface AccountingOverviewStringOverrides {
79
79
  };
80
80
  }
81
81
 
82
+ declare const ApiEnumErrorType: {
83
+ readonly SpecifiedIdNotFound: "SpecifiedIdNotFound";
84
+ readonly SpecifiedBadRequest: "SpecifiedBadRequest";
85
+ };
86
+
87
+ declare type ApiEnumErrorType = typeof ApiEnumErrorType[keyof typeof ApiEnumErrorType];
88
+
82
89
  declare class APIError extends Error {
83
90
  code?: number;
84
91
  info?: string;
@@ -91,6 +98,7 @@ declare class APIError extends Error {
91
98
  declare type APIErrorMessage = {
92
99
  type?: string;
93
100
  description?: string;
101
+ error_enum?: ApiEnumErrorType;
94
102
  };
95
103
 
96
104
  declare type Awaitable<T> = T | Promise<T>;
@@ -1072,7 +1080,7 @@ declare interface TasksStringOverrides {
1072
1080
  header?: string;
1073
1081
  }
1074
1082
 
1075
- export declare const TaxEstimatesView: () => JSX_2.Element;
1083
+ export declare const TaxEstimates: () => JSX_2.Element;
1076
1084
 
1077
1085
  declare type TimeRangePickerConfig = {
1078
1086
  /**
@@ -1095,6 +1103,16 @@ declare type TimeRangePickerConfig = {
1095
1103
  csvMoneyFormat?: MoneyFormat;
1096
1104
  };
1097
1105
 
1106
+ declare interface TimeTrackingProps {
1107
+ showTitle?: boolean;
1108
+ onReportsClick?: () => void;
1109
+ stringOverrides?: TimeTrackingStringOverrides;
1110
+ }
1111
+
1112
+ declare interface TimeTrackingStringOverrides {
1113
+ title?: string;
1114
+ }
1115
+
1098
1116
  declare interface ToastProps {
1099
1117
  id?: string;
1100
1118
  content: string;
@@ -1115,6 +1133,8 @@ export declare const unstable_MileageTracking: ({ showTitle }: {
1115
1133
  showTitle?: boolean;
1116
1134
  }) => JSX_2.Element;
1117
1135
 
1136
+ export declare const unstable_TimeTracking: ({ showTitle, onReportsClick, stringOverrides }: TimeTrackingProps) => JSX_2.Element;
1137
+
1118
1138
  export declare const unstable_UnifiedReports: ({ dateSelectionMode }: UnifiedReportProps) => JSX_2.Element;
1119
1139
 
1120
1140
  export declare const useLayerContext: () => LayerContextShape;
@@ -1133,5 +1153,6 @@ export { }
1133
1153
  declare module '@tanstack/react-table' {
1134
1154
  interface ColumnMeta<TData extends RowData, TValue> {
1135
1155
  isRowHeader: boolean;
1156
+ alignment?: Alignment;
1136
1157
  }
1137
1158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.127",
3
+ "version": "0.1.128-alpha.1",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -94,6 +94,7 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "@floating-ui/react": "^0.27.8",
97
+ "@formatjs/intl-durationformat": "^0.10.4",
97
98
  "@internationalized/date": "^3.8.2",
98
99
  "@react-hook/resize-observer": "^2.0.2",
99
100
  "@tanstack/react-form": "^1.19.0",