react-luminus-components 1.4.49 → 1.4.51

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 (42) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +30 -30
  3. package/dist/{FormDisabledProvider-CpiQT6Ys.js → FormDisabledProvider-CWPtd32k.js} +1 -1
  4. package/dist/FormDisabledProvider-DrZHlSO4.cjs +1 -0
  5. package/dist/components/{common → Search}/AppSearch/AppSearch.d.ts +4 -1
  6. package/dist/components/Search/AppSearch/comps/AutocompleteWindow/comps/AutocompleteWindowItem/AutocompleteWindowItem.d.ts +9 -0
  7. package/dist/components/Search/AppSearch/comps/AutocompleteWindow/comps/index.d.ts +1 -0
  8. package/dist/components/Search/SearchPage/SearchPage.d.ts +11 -0
  9. package/dist/components/Search/SearchPage/comps/SearchPageItem/SearchPageItem.d.ts +8 -0
  10. package/dist/components/Search/SearchPage/comps/index.d.ts +1 -0
  11. package/dist/components/Search/common/hooks/useSearchItems.d.ts +7 -0
  12. package/dist/components/Search/common/utils/appSearchUtils.d.ts +5 -0
  13. package/dist/components/Search/index.d.ts +2 -0
  14. package/dist/components/common/index.d.ts +0 -1
  15. package/dist/contexts.cjs.js +1 -1
  16. package/dist/contexts.es.js +16 -16
  17. package/dist/hooks.cjs.js +1 -1
  18. package/dist/hooks.es.js +44 -44
  19. package/dist/layout.cjs.js +1 -1
  20. package/dist/layout.es.js +25 -25
  21. package/dist/main.cjs.js +49 -49
  22. package/dist/main.d.ts +1 -1
  23. package/dist/main.es.js +10275 -10215
  24. package/dist/models/texts/AppSearchTexts.d.ts +1 -0
  25. package/dist/models/types/SearchResultModel.d.ts +4 -0
  26. package/dist/models/types/SearchType.d.ts +10 -0
  27. package/dist/models/ui/routes/RouteInfo.d.ts +4 -0
  28. package/dist/{ShortcutLinksContext-CvGOQ1rG.js → nivo-bar.es-DS751pis.js} +12152 -12152
  29. package/dist/{ShortcutLinksContext-pXbjIn9v.cjs → nivo-bar.es-Do8vRure.cjs} +8 -8
  30. package/dist/style.css +1 -1
  31. package/dist/useLocalStorageState-BjI7PIpr.cjs +1 -0
  32. package/dist/{useLocalStorageState-B3TFIwhw.js → useLocalStorageState-DJzWOFhI.js} +9 -9
  33. package/dist/utils.cjs.js +1 -1
  34. package/dist/utils.es.js +17 -17
  35. package/dist/variables.scss +165 -165
  36. package/package.json +123 -123
  37. package/dist/FormDisabledProvider-C2s5UVBK.cjs +0 -1
  38. package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +0 -7
  39. package/dist/useLocalStorageState-D3NipHGX.cjs +0 -1
  40. /package/dist/components/{common → Search}/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +0 -0
  41. /package/dist/components/{common → Search}/AppSearch/comps/TypeSelector/TypeSelector.d.ts +0 -0
  42. /package/dist/components/{common → Search}/AppSearch/comps/index.d.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  type AppSearchTexts = {
2
2
  searchPlaceholder: string;
3
3
  amountFrom: string;
4
+ noResultsFor: (query: string) => string;
4
5
  };
5
6
  export default AppSearchTexts;
@@ -5,5 +5,9 @@ type SearchResultModel = {
5
5
  name: string | null;
6
6
  type: string | null;
7
7
  group: SearchResultGroupKeyModel;
8
+ /**
9
+ * Used to override SearchType's toPath.
10
+ */
11
+ toPath?: string;
8
12
  };
9
13
  export default SearchResultModel;
@@ -1,6 +1,16 @@
1
+ import { default as SearchResultModel } from './SearchResultModel';
2
+
1
3
  type SearchType = {
2
4
  key: string;
3
5
  text: string;
4
6
  toPath: string;
7
+ /**
8
+ * Used to build name of the item.
9
+ */
10
+ customNameBuilder?: (item: SearchResultModel) => string;
11
+ /**
12
+ * Used to build link path for the item.
13
+ */
14
+ customPathBuilder?: (item: SearchResultModel, searchType: SearchType) => string;
5
15
  };
6
16
  export default SearchType;
@@ -5,4 +5,8 @@ export default interface RouteInfo<RouteType = string> {
5
5
  name: string;
6
6
  component: FC | null;
7
7
  permissions?: string[];
8
+ /**
9
+ * Setting this to false make the route not searchable through app searching features.
10
+ */
11
+ isSearchableOverride?: boolean;
8
12
  }