@layerfi/components 0.1.113-alpha → 0.1.114-alpha

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
@@ -832,8 +832,8 @@ export declare const ProfitAndLoss: {
832
832
  chartColorsList?: string[];
833
833
  stringOverrides?: ProfitAndLossDetailedChartsStringOverrides;
834
834
  }) => JSX_2.Element;
835
- Header: ({ text, className, headingClassName, withDatePicker, withDownloadButton, withStatus, stringOverrides, }: ProfitAndLossHeaderProps) => JSX_2.Element;
836
- Report: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, view, renderInAppLink, hideHeader, }: ProfitAndLossReportProps) => JSX_2.Element;
835
+ Header: ({ text, className, headingClassName, withDatePicker, withDownloadButton, withStatus, stringOverrides, dateSelectionMode, }: ProfitAndLossHeaderProps) => JSX_2.Element;
836
+ Report: ({ stringOverrides, dateSelectionMode, csvMoneyFormat, view, renderInAppLink, hideHeader, }: ProfitAndLossReportProps) => JSX_2.Element;
837
837
  };
838
838
 
839
839
  declare interface ProfitAndLossCompareConfig {
@@ -882,6 +882,7 @@ declare interface ProfitAndLossHeaderProps {
882
882
  withDatePicker?: boolean;
883
883
  withDownloadButton?: boolean;
884
884
  withStatus?: boolean;
885
+ dateSelectionMode?: 'month' | 'full';
885
886
  }
886
887
 
887
888
  declare interface ProfitAndLossHeaderStringOverrides {
@@ -1077,13 +1078,23 @@ declare interface TasksStringOverrides {
1077
1078
 
1078
1079
  declare type TimeRangePickerConfig = {
1079
1080
  /**
1080
- * @deprecated Use `defaultDatePickerMode` instead
1081
+ * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1081
1082
  */
1082
1083
  datePickerMode?: DateRangePickerMode;
1084
+ /**
1085
+ * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1086
+ */
1083
1087
  defaultDatePickerMode?: DateRangePickerMode;
1088
+ /**
1089
+ * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1090
+ */
1084
1091
  allowedDatePickerModes?: ReadonlyArray<DateRangePickerMode>;
1085
- csvMoneyFormat?: MoneyFormat;
1092
+ /**
1093
+ * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1094
+ */
1086
1095
  customDateRanges?: CustomDateRange[];
1096
+ dateSelectionMode?: 'month' | 'full';
1097
+ csvMoneyFormat?: MoneyFormat;
1087
1098
  };
1088
1099
 
1089
1100
  declare interface ToastProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.113-alpha",
3
+ "version": "0.1.114-alpha",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -28,7 +28,8 @@
28
28
  "lint:eslint": "eslint .",
29
29
  "lint:stylelint": "stylelint '**/*.{css,scss}'",
30
30
  "clear:react": "rm -rf ./node_modules/react && rm -rf ./node_modules/react-dom",
31
- "prepare": "husky"
31
+ "prepare": "husky",
32
+ "migrate:aliases": "tsx scripts/migrate-import-aliases.ts"
32
33
  },
33
34
  "repository": {
34
35
  "type": "git",
@@ -61,6 +62,8 @@
61
62
  "@types/react-dom": "^18.2.0",
62
63
  "@vitejs/plugin-react": "^5.0.4",
63
64
  "eslint": "^9.26.0",
65
+ "eslint-import-resolver-typescript": "^4.4.4",
66
+ "eslint-plugin-import": "^2.32.0",
64
67
  "eslint-plugin-react": "^7.37.5",
65
68
  "eslint-plugin-react-hooks": "^5.2.0",
66
69
  "eslint-plugin-unused-imports": "^4.1.4",
@@ -73,10 +76,13 @@
73
76
  "stylelint-config-standard": "^38.0.0",
74
77
  "stylelint-config-standard-scss": "^15.0.1",
75
78
  "stylelint-order": "^7.0.0",
79
+ "ts-morph": "^27.0.2",
80
+ "tsx": "^4.20.6",
76
81
  "typescript": "^5.8.3",
77
82
  "typescript-eslint": "^8.32.0",
78
83
  "vite": "^6.4.0",
79
- "vite-plugin-dts": "^4.5.4"
84
+ "vite-plugin-dts": "^4.5.4",
85
+ "vite-tsconfig-paths": "^5.1.4"
80
86
  },
81
87
  "lint-staged": {
82
88
  "*.{css,scss}": "stylelint --fix"