@ludo.ninja/components 1.7.8 → 1.8.0

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.
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { ApolloError } from '@apollo/client';
3
3
  import { TDimensions } from '@ludo.ninja/components/src/utils';
4
- import { TActiveTab } from '@ludo.ninja/components/src/system';
4
+ import { TActiveTab } from '@ludo.ninja/components/dist/system';
5
5
  export declare const VirtuosoPageBuilder: <TCreation>({ activeTab, isMobile, creations, windowDimensions, isLoading, error, refetchQuery, loadMore, renderCreation, notFoundText, isNextLoading, headerSlot, isProfileCards, }: {
6
6
  activeTab: TActiveTab;
7
7
  isMobile: boolean;
@@ -38,7 +38,7 @@ var modules_1 = require("@ludo.ninja/components/src/modules");
38
38
  var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
39
39
  var styles_1 = require("@ludo.ninja/components/src/styles");
40
40
  var profile_1 = require("@ludo.ninja/components/src/components/profile");
41
- var system_1 = require("@ludo.ninja/components/src/system");
41
+ var system_1 = require("@ludo.ninja/components/dist/system");
42
42
  var SCardsRow = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n width: 1080px;\n margin: 0 auto;\n\n ", " {\n width: 704px;\n }\n\n ", " {\n width: 320px;\n }\n ", " {\n width: ", ";\n }\n"], ["\n display: flex;\n width: 1080px;\n margin: 0 auto;\n\n ", " {\n width: 704px;\n }\n\n ", " {\n width: 320px;\n }\n ", " {\n width: ", ";\n }\n"])), styles_1.mediaQuery.maxWidthTablet, styles_1.mediaQuery.mobile, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(1080));
43
43
  var VirtuosoPageBuilder = function (_a) {
44
44
  var activeTab = _a.activeTab, isMobile = _a.isMobile, creations = _a.creations, windowDimensions = _a.windowDimensions, isLoading = _a.isLoading, error = _a.error, refetchQuery = _a.refetchQuery, loadMore = _a.loadMore, renderCreation = _a.renderCreation, notFoundText = _a.notFoundText, isNextLoading = _a.isNextLoading, headerSlot = _a.headerSlot, isProfileCards = _a.isProfileCards;
@@ -63,11 +63,11 @@ var core_1 = require("@ludo.ninja/core");
63
63
  var createNotificationWithId_1 = require("@ludo.ninja/ui/build/modules/notifications/createNotificationWithId");
64
64
  var utils_1 = require("@ludo.ninja/utils");
65
65
  var utils_2 = require("@ludo.ninja/utils");
66
- var theme_1 = require("@ludo.ninja/components/src/system/theme");
66
+ var system_1 = require("@ludo.ninja/components/dist/system");
67
67
  var utils_3 = require("./utils");
68
68
  exports.useUiStore = (0, traditional_1.createWithEqualityFn)()(function (setState) { return (__assign(__assign(__assign({
69
69
  //theme
70
- theme: theme_1.lightTheme, toggleTheme: function (theme, themeName) {
70
+ theme: system_1.lightTheme, toggleTheme: function (theme, themeName) {
71
71
  setState({ theme: theme });
72
72
  window.localStorage.setItem('theme', themeName);
73
73
  if (themeName === core_1.ThemeEnum.dark) {