@layerfi/components 0.1.124-alpha → 0.1.125

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
@@ -432,21 +432,31 @@ export declare enum DisplayState {
432
432
  categorized = "categorized"
433
433
  }
434
434
 
435
- declare const ENTITY_TYPES: readonly [{
435
+ declare const ENTITY_TYPES_CONFIG: readonly [{
436
+ readonly i18nKey: string;
437
+ readonly defaultValue: string;
438
+ readonly ns?: string;
436
439
  readonly value: "SOLE_PROP";
437
- readonly label: "Sole Proprietorship";
438
440
  }, {
441
+ readonly i18nKey: string;
442
+ readonly defaultValue: string;
443
+ readonly ns?: string;
439
444
  readonly value: "C_CORP";
440
- readonly label: "C Corporation";
441
445
  }, {
446
+ readonly i18nKey: string;
447
+ readonly defaultValue: string;
448
+ readonly ns?: string;
442
449
  readonly value: "LLC";
443
- readonly label: "Limited Liability Company";
444
450
  }, {
451
+ readonly i18nKey: string;
452
+ readonly defaultValue: string;
453
+ readonly ns?: string;
445
454
  readonly value: "S_CORP";
446
- readonly label: "S Corporation";
447
455
  }, {
456
+ readonly i18nKey: string;
457
+ readonly defaultValue: string;
458
+ readonly ns?: string;
448
459
  readonly value: "PARTNERSHIP";
449
- readonly label: "Partnership";
450
460
  }];
451
461
 
452
462
  export declare enum EntityName {
@@ -474,7 +484,7 @@ export declare enum EntityName {
474
484
  CustomerCredit = "Customer Credit"
475
485
  }
476
486
 
477
- declare type EntityType = (typeof ENTITY_TYPES)[number]['value'];
487
+ declare type EntityType = (typeof ENTITY_TYPES_CONFIG)[number]['value'];
478
488
 
479
489
  declare type EnumWithUnknownValues<T extends string> = T | UnknownEnumValue;
480
490
 
@@ -599,14 +609,6 @@ declare interface JournalTableStringOverrides {
599
609
  creditColumnHeader?: string;
600
610
  }
601
611
 
602
- /**
603
- * The LandingPage component provides a page-level component that surfaces the Layer accounting
604
- * and bookkeeping services. It acts as a landing page allowing platforms to showcase the core value proposition
605
- * and offers/pricing for the platform's end users.
606
- * @see LandingPageMainConfig
607
- @param config Allows you to customize the page component.
608
- @returns A React JSX component
609
- */
610
612
  export declare const LandingPage: ({ platform, availableOffers, heroOverrides, offeringOverrides, }: LandingPageProps) => JSX_2.Element;
611
613
 
612
614
  /**
@@ -665,13 +667,6 @@ declare interface LandingPagePlatformConfig {
665
667
  industry: string;
666
668
  }
667
669
 
668
- /**
669
- * Props for the LandingPage component.
670
- *
671
- * Requires only a single parameter, which is `config` which holds on to all the customizable
672
- * settings for the landing page component such as textual content on the accounting and bookkeeping
673
- * services, with varied pricing options and book-a-call calendly integration.
674
- */
675
670
  declare interface LandingPageProps {
676
671
  platform: LandingPagePlatformConfig;
677
672
  availableOffers: ('accounting' | 'bookkeeping')[];
@@ -842,12 +837,6 @@ declare interface OnboardingProps {
842
837
 
843
838
  declare type OnboardingStep = undefined | 'connectAccount' | 'complete';
844
839
 
845
- export declare const PlatformOnboarding: ({ onComplete }: PlatformOnboardingProps) => JSX_2.Element;
846
-
847
- declare type PlatformOnboardingProps = {
848
- onComplete?: () => void;
849
- };
850
-
851
840
  export declare const ProfitAndLoss: {
852
841
  ({ children, tagFilter, comparisonConfig, reportingBasis, asContainer, }: Props): JSX_2.Element;
853
842
  Chart: ({ tagFilter }: ProfitAndLossChartProps) => JSX_2.Element;
@@ -1161,169 +1150,271 @@ export declare const unstable_MileageTracking: ({ showTitle }: {
1161
1150
 
1162
1151
  export declare const unstable_UnifiedReports: ({ dateSelectionMode }: UnifiedReportProps) => JSX_2.Element;
1163
1152
 
1164
- declare const US_STATES: readonly [{
1153
+ declare const US_STATES_CONFIG: readonly [{
1154
+ readonly i18nKey: string;
1155
+ readonly defaultValue: string;
1156
+ readonly ns?: string;
1165
1157
  readonly value: "AL";
1166
- readonly label: "Alabama";
1167
1158
  }, {
1159
+ readonly i18nKey: string;
1160
+ readonly defaultValue: string;
1161
+ readonly ns?: string;
1168
1162
  readonly value: "AK";
1169
- readonly label: "Alaska";
1170
1163
  }, {
1164
+ readonly i18nKey: string;
1165
+ readonly defaultValue: string;
1166
+ readonly ns?: string;
1171
1167
  readonly value: "AZ";
1172
- readonly label: "Arizona";
1173
1168
  }, {
1169
+ readonly i18nKey: string;
1170
+ readonly defaultValue: string;
1171
+ readonly ns?: string;
1174
1172
  readonly value: "AR";
1175
- readonly label: "Arkansas";
1176
1173
  }, {
1174
+ readonly i18nKey: string;
1175
+ readonly defaultValue: string;
1176
+ readonly ns?: string;
1177
1177
  readonly value: "CA";
1178
- readonly label: "California";
1179
1178
  }, {
1179
+ readonly i18nKey: string;
1180
+ readonly defaultValue: string;
1181
+ readonly ns?: string;
1180
1182
  readonly value: "CO";
1181
- readonly label: "Colorado";
1182
1183
  }, {
1184
+ readonly i18nKey: string;
1185
+ readonly defaultValue: string;
1186
+ readonly ns?: string;
1183
1187
  readonly value: "CT";
1184
- readonly label: "Connecticut";
1185
1188
  }, {
1189
+ readonly i18nKey: string;
1190
+ readonly defaultValue: string;
1191
+ readonly ns?: string;
1186
1192
  readonly value: "DE";
1187
- readonly label: "Delaware";
1188
1193
  }, {
1194
+ readonly i18nKey: string;
1195
+ readonly defaultValue: string;
1196
+ readonly ns?: string;
1189
1197
  readonly value: "DC";
1190
- readonly label: "District of Columbia";
1191
1198
  }, {
1199
+ readonly i18nKey: string;
1200
+ readonly defaultValue: string;
1201
+ readonly ns?: string;
1192
1202
  readonly value: "FL";
1193
- readonly label: "Florida";
1194
1203
  }, {
1204
+ readonly i18nKey: string;
1205
+ readonly defaultValue: string;
1206
+ readonly ns?: string;
1195
1207
  readonly value: "GA";
1196
- readonly label: "Georgia";
1197
1208
  }, {
1209
+ readonly i18nKey: string;
1210
+ readonly defaultValue: string;
1211
+ readonly ns?: string;
1198
1212
  readonly value: "HI";
1199
- readonly label: "Hawaii";
1200
1213
  }, {
1214
+ readonly i18nKey: string;
1215
+ readonly defaultValue: string;
1216
+ readonly ns?: string;
1201
1217
  readonly value: "ID";
1202
- readonly label: "Idaho";
1203
1218
  }, {
1219
+ readonly i18nKey: string;
1220
+ readonly defaultValue: string;
1221
+ readonly ns?: string;
1204
1222
  readonly value: "IL";
1205
- readonly label: "Illinois";
1206
1223
  }, {
1224
+ readonly i18nKey: string;
1225
+ readonly defaultValue: string;
1226
+ readonly ns?: string;
1207
1227
  readonly value: "IN";
1208
- readonly label: "Indiana";
1209
1228
  }, {
1229
+ readonly i18nKey: string;
1230
+ readonly defaultValue: string;
1231
+ readonly ns?: string;
1210
1232
  readonly value: "IA";
1211
- readonly label: "Iowa";
1212
1233
  }, {
1234
+ readonly i18nKey: string;
1235
+ readonly defaultValue: string;
1236
+ readonly ns?: string;
1213
1237
  readonly value: "KS";
1214
- readonly label: "Kansas";
1215
1238
  }, {
1239
+ readonly i18nKey: string;
1240
+ readonly defaultValue: string;
1241
+ readonly ns?: string;
1216
1242
  readonly value: "KY";
1217
- readonly label: "Kentucky";
1218
1243
  }, {
1244
+ readonly i18nKey: string;
1245
+ readonly defaultValue: string;
1246
+ readonly ns?: string;
1219
1247
  readonly value: "LA";
1220
- readonly label: "Louisiana";
1221
1248
  }, {
1249
+ readonly i18nKey: string;
1250
+ readonly defaultValue: string;
1251
+ readonly ns?: string;
1222
1252
  readonly value: "ME";
1223
- readonly label: "Maine";
1224
1253
  }, {
1254
+ readonly i18nKey: string;
1255
+ readonly defaultValue: string;
1256
+ readonly ns?: string;
1225
1257
  readonly value: "MD";
1226
- readonly label: "Maryland";
1227
1258
  }, {
1259
+ readonly i18nKey: string;
1260
+ readonly defaultValue: string;
1261
+ readonly ns?: string;
1228
1262
  readonly value: "MA";
1229
- readonly label: "Massachusetts";
1230
1263
  }, {
1264
+ readonly i18nKey: string;
1265
+ readonly defaultValue: string;
1266
+ readonly ns?: string;
1231
1267
  readonly value: "MI";
1232
- readonly label: "Michigan";
1233
1268
  }, {
1269
+ readonly i18nKey: string;
1270
+ readonly defaultValue: string;
1271
+ readonly ns?: string;
1234
1272
  readonly value: "MN";
1235
- readonly label: "Minnesota";
1236
1273
  }, {
1274
+ readonly i18nKey: string;
1275
+ readonly defaultValue: string;
1276
+ readonly ns?: string;
1237
1277
  readonly value: "MS";
1238
- readonly label: "Mississippi";
1239
1278
  }, {
1279
+ readonly i18nKey: string;
1280
+ readonly defaultValue: string;
1281
+ readonly ns?: string;
1240
1282
  readonly value: "MO";
1241
- readonly label: "Missouri";
1242
1283
  }, {
1284
+ readonly i18nKey: string;
1285
+ readonly defaultValue: string;
1286
+ readonly ns?: string;
1243
1287
  readonly value: "MT";
1244
- readonly label: "Montana";
1245
1288
  }, {
1289
+ readonly i18nKey: string;
1290
+ readonly defaultValue: string;
1291
+ readonly ns?: string;
1246
1292
  readonly value: "NE";
1247
- readonly label: "Nebraska";
1248
1293
  }, {
1294
+ readonly i18nKey: string;
1295
+ readonly defaultValue: string;
1296
+ readonly ns?: string;
1249
1297
  readonly value: "NV";
1250
- readonly label: "Nevada";
1251
1298
  }, {
1299
+ readonly i18nKey: string;
1300
+ readonly defaultValue: string;
1301
+ readonly ns?: string;
1252
1302
  readonly value: "NH";
1253
- readonly label: "New Hampshire";
1254
1303
  }, {
1304
+ readonly i18nKey: string;
1305
+ readonly defaultValue: string;
1306
+ readonly ns?: string;
1255
1307
  readonly value: "NJ";
1256
- readonly label: "New Jersey";
1257
1308
  }, {
1309
+ readonly i18nKey: string;
1310
+ readonly defaultValue: string;
1311
+ readonly ns?: string;
1258
1312
  readonly value: "NM";
1259
- readonly label: "New Mexico";
1260
1313
  }, {
1314
+ readonly i18nKey: string;
1315
+ readonly defaultValue: string;
1316
+ readonly ns?: string;
1261
1317
  readonly value: "NY";
1262
- readonly label: "New York";
1263
1318
  }, {
1319
+ readonly i18nKey: string;
1320
+ readonly defaultValue: string;
1321
+ readonly ns?: string;
1264
1322
  readonly value: "NC";
1265
- readonly label: "North Carolina";
1266
1323
  }, {
1324
+ readonly i18nKey: string;
1325
+ readonly defaultValue: string;
1326
+ readonly ns?: string;
1267
1327
  readonly value: "ND";
1268
- readonly label: "North Dakota";
1269
1328
  }, {
1329
+ readonly i18nKey: string;
1330
+ readonly defaultValue: string;
1331
+ readonly ns?: string;
1270
1332
  readonly value: "OH";
1271
- readonly label: "Ohio";
1272
1333
  }, {
1334
+ readonly i18nKey: string;
1335
+ readonly defaultValue: string;
1336
+ readonly ns?: string;
1273
1337
  readonly value: "OK";
1274
- readonly label: "Oklahoma";
1275
1338
  }, {
1339
+ readonly i18nKey: string;
1340
+ readonly defaultValue: string;
1341
+ readonly ns?: string;
1276
1342
  readonly value: "OR";
1277
- readonly label: "Oregon";
1278
1343
  }, {
1344
+ readonly i18nKey: string;
1345
+ readonly defaultValue: string;
1346
+ readonly ns?: string;
1279
1347
  readonly value: "PA";
1280
- readonly label: "Pennsylvania";
1281
1348
  }, {
1349
+ readonly i18nKey: string;
1350
+ readonly defaultValue: string;
1351
+ readonly ns?: string;
1282
1352
  readonly value: "RI";
1283
- readonly label: "Rhode Island";
1284
1353
  }, {
1354
+ readonly i18nKey: string;
1355
+ readonly defaultValue: string;
1356
+ readonly ns?: string;
1285
1357
  readonly value: "SC";
1286
- readonly label: "South Carolina";
1287
1358
  }, {
1359
+ readonly i18nKey: string;
1360
+ readonly defaultValue: string;
1361
+ readonly ns?: string;
1288
1362
  readonly value: "SD";
1289
- readonly label: "South Dakota";
1290
1363
  }, {
1364
+ readonly i18nKey: string;
1365
+ readonly defaultValue: string;
1366
+ readonly ns?: string;
1291
1367
  readonly value: "TN";
1292
- readonly label: "Tennessee";
1293
1368
  }, {
1369
+ readonly i18nKey: string;
1370
+ readonly defaultValue: string;
1371
+ readonly ns?: string;
1294
1372
  readonly value: "TX";
1295
- readonly label: "Texas";
1296
1373
  }, {
1374
+ readonly i18nKey: string;
1375
+ readonly defaultValue: string;
1376
+ readonly ns?: string;
1297
1377
  readonly value: "UT";
1298
- readonly label: "Utah";
1299
1378
  }, {
1379
+ readonly i18nKey: string;
1380
+ readonly defaultValue: string;
1381
+ readonly ns?: string;
1300
1382
  readonly value: "VT";
1301
- readonly label: "Vermont";
1302
1383
  }, {
1384
+ readonly i18nKey: string;
1385
+ readonly defaultValue: string;
1386
+ readonly ns?: string;
1303
1387
  readonly value: "VA";
1304
- readonly label: "Virginia";
1305
1388
  }, {
1389
+ readonly i18nKey: string;
1390
+ readonly defaultValue: string;
1391
+ readonly ns?: string;
1306
1392
  readonly value: "WA";
1307
- readonly label: "Washington";
1308
1393
  }, {
1394
+ readonly i18nKey: string;
1395
+ readonly defaultValue: string;
1396
+ readonly ns?: string;
1309
1397
  readonly value: "WV";
1310
- readonly label: "West Virginia";
1311
1398
  }, {
1399
+ readonly i18nKey: string;
1400
+ readonly defaultValue: string;
1401
+ readonly ns?: string;
1312
1402
  readonly value: "WI";
1313
- readonly label: "Wisconsin";
1314
1403
  }, {
1404
+ readonly i18nKey: string;
1405
+ readonly defaultValue: string;
1406
+ readonly ns?: string;
1315
1407
  readonly value: "WY";
1316
- readonly label: "Wyoming";
1317
1408
  }, {
1409
+ readonly i18nKey: string;
1410
+ readonly defaultValue: string;
1411
+ readonly ns?: string;
1318
1412
  readonly value: "PR";
1319
- readonly label: "Puerto Rico";
1320
1413
  }];
1321
1414
 
1322
1415
  export declare const useLayerContext: () => LayerContextShape;
1323
1416
 
1324
- declare type USState = typeof US_STATES[number];
1325
-
1326
- declare type USStateCode = USState['value'];
1417
+ declare type USStateCode = (typeof US_STATES_CONFIG)[number]['value'];
1327
1418
 
1328
1419
  declare type Variants = Partial<{
1329
1420
  size: SizeVariant;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.124-alpha",
3
+ "version": "0.1.125",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -59,7 +59,6 @@
59
59
  "@stylistic/stylelint-plugin": "^3.1.2",
60
60
  "@types/lodash-es": "^4.17.12",
61
61
  "@types/node": "^24.9.0",
62
- "@types/pluralize": "^0.0.33",
63
62
  "@types/react": "^18.2.0",
64
63
  "@types/react-dom": "^18.2.0",
65
64
  "@vitejs/plugin-react": "^5.1.3",
@@ -72,6 +71,7 @@
72
71
  "eslint-plugin-simple-import-sort": "^12.1.1",
73
72
  "eslint-plugin-unused-imports": "^4.1.4",
74
73
  "husky": "^9.1.7",
74
+ "i18next-cli": "^1.49.4",
75
75
  "lint-staged": "^16.2.3",
76
76
  "npm-dts": "^1.3.13",
77
77
  "react": "^18.2.0",
@@ -103,15 +103,16 @@
103
103
  "classnames": "^2.5.1",
104
104
  "date-fns": "^4.1.0",
105
105
  "effect": "^3.16.3",
106
- "libphonenumber-js": "^1.12.7",
106
+ "i18next": "^25.8.17",
107
+ "i18next-pseudo": "^2.2.1",
107
108
  "lodash-es": "^4.17.21",
108
109
  "lucide-react": "^0.507.0",
109
110
  "motion": "^12.23.11",
110
- "pluralize": "^8.0.0",
111
111
  "react-aria-components": "^1.13.0",
112
112
  "react-calendly": "^4.4.0",
113
113
  "react-currency-input-field": "^3.10.0",
114
114
  "react-dropzone": "^14.3.8",
115
+ "react-i18next": "^16.5.6",
115
116
  "react-merge-refs": "^3.0.2",
116
117
  "react-plaid-link": "^4.0.1",
117
118
  "react-select": "^5.10.1",