@ssa-ui-kit/templates 2.31.0 → 2.32.0-canary-b64be64-20251219

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 (28) hide show
  1. package/dist/{991.index.js → 358.index.js} +7 -7
  2. package/dist/358.index.js.map +1 -0
  3. package/dist/{211.index.js → 809.index.js} +23699 -22664
  4. package/dist/809.index.js.map +1 -0
  5. package/dist/index.js +83 -83
  6. package/dist/index.js.map +1 -1
  7. package/dist/projects/fintech/components/ConfirmationModal/types.d.ts +2 -2
  8. package/dist/projects/fintech/components/CryptocurrencyPrices/styles.d.ts +0 -5
  9. package/dist/projects/fintech/components/PlotTooltip/hooks/usePlotTooltip.d.ts +2 -2
  10. package/dist/projects/fintech/components/WidgetInfoLabel/types.d.ts +3 -3
  11. package/dist/projects/fintech/components/WithWidgetLoader/WithWidgetLoader.d.ts +1 -1
  12. package/dist/projects/fintech/contexts/GraphsContext/types.d.ts +2 -2
  13. package/dist/projects/fintech/contexts/HeaderContext/types.d.ts +4 -4
  14. package/dist/projects/fintech/modals/types.d.ts +2 -2
  15. package/dist/projects/fintech/pages/AppLayout/types.d.ts +1 -1
  16. package/dist/projects/fintech/pages/BotsPage/BotsPage.d.ts +1 -4
  17. package/dist/projects/fintech/pages/Dashboard/components/PeriodFilter/PeriodButtonGroup.d.ts +3 -8
  18. package/dist/projects/fintech/pages/Dashboard/components/TopMenuWrapper/TopMenuWrapper.d.ts +0 -1
  19. package/dist/projects/fintech/pages/NotificationsPage/NotificationsPage.d.ts +2 -4
  20. package/dist/projects/fitness/pages/Template/Default.d.ts +2 -1
  21. package/dist/projects/hr/components/AppLayout/types.d.ts +1 -1
  22. package/dist/projects/hr/components/Events/components/EventInfoContext.d.ts +3 -3
  23. package/dist/projects/hr/components/Events/components/WithEventLink.d.ts +1 -1
  24. package/dist/projects/hr/components/WithWidgetLoader/WithWidgetLoader.d.ts +1 -1
  25. package/dist/projects/hr/contexts/Header/types.d.ts +2 -2
  26. package/package.json +34 -33
  27. package/dist/211.index.js.map +0 -1
  28. package/dist/991.index.js.map +0 -1
package/dist/index.js CHANGED
@@ -123,7 +123,6 @@ return /******/ (() => { // webpackBootstrap
123
123
  /******/ script = document.createElement('script');
124
124
  /******/
125
125
  /******/ script.charset = 'utf-8';
126
- /******/ script.timeout = 120;
127
126
  /******/ if (__webpack_require__.nc) {
128
127
  /******/ script.setAttribute("nonce", __webpack_require__.nc);
129
128
  /******/ }
@@ -245,9 +244,7 @@ return /******/ (() => { // webpackBootstrap
245
244
  /******/
246
245
  /******/ // install a JSONP callback for chunk loading
247
246
  /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
248
- /******/ var chunkIds = data[0];
249
- /******/ var moreModules = data[1];
250
- /******/ var runtime = data[2];
247
+ /******/ var [chunkIds, moreModules, runtime] = data;
251
248
  /******/ // add "moreModules" to the modules object,
252
249
  /******/ // then flag all "chunkIds" as loaded and fire callback
253
250
  /******/ var moduleId, chunkId, i = 0;
@@ -2021,7 +2018,7 @@ const useInstrumentInfoWithPrices = props => {
2021
2018
  isIncreasing: null
2022
2019
  });
2023
2020
  const [intervalId, setIntervalId] = (0,external_react_namespaceObject.useState)();
2024
- const mockIndex = (0,external_react_namespaceObject.useRef)();
2021
+ const mockIndex = (0,external_react_namespaceObject.useRef)(undefined);
2025
2022
  (0,external_react_namespaceObject.useEffect)(() => {
2026
2023
  const interval = setInterval(() => {
2027
2024
  if (mockIndex.current === undefined) {
@@ -11388,8 +11385,8 @@ const BotsActionRun = ({
11388
11385
  const Actions = ({
11389
11386
  row
11390
11387
  }) => {
11391
- const match = (0,external_react_router_dom_namespaceObject.useMatches)();
11392
- const isArchivePage = match[match.length - 1].pathname.includes('/archive');
11388
+ const location = (0,external_react_router_dom_namespaceObject.useLocation)();
11389
+ const isArchivePage = location.pathname.endsWith('/archive') || location.pathname.endsWith('/archive/');
11393
11390
  if (isArchivePage) {
11394
11391
  return null;
11395
11392
  }
@@ -12248,7 +12245,7 @@ const hooks_namespaceObject = require("@ssa-ui-kit/hooks");
12248
12245
  * this: https://gist.github.com/dyaa/8f8d1f8964160630f2475fe26a2e6150?permalink_comment_id=4065558#gistcomment-4065558
12249
12246
  * */
12250
12247
  const getFirebase = async () => {
12251
- const [firestore] = await Promise.all([Promise.all(/* import() */[__webpack_require__.e(211), __webpack_require__.e(991)]).then(__webpack_require__.bind(__webpack_require__, 991))]);
12248
+ const [firestore] = await Promise.all([Promise.all(/* import() */[__webpack_require__.e(809), __webpack_require__.e(358)]).then(__webpack_require__.bind(__webpack_require__, 358))]);
12252
12249
  return {
12253
12250
  firestore
12254
12251
  };
@@ -12596,7 +12593,6 @@ const Nav = /*#__PURE__*/base_default()("section", true ? {
12596
12593
  }) => theme.mediaQueries.lg, "{grid-area:nav;grid-row:main;}" + ( true ? "" : 0));
12597
12594
  ;// ./src/projects/fitness/pages/Template/Default.tsx
12598
12595
  function Default_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12599
- /* eslint-disable react/display-name */
12600
12596
 
12601
12597
 
12602
12598
 
@@ -12629,88 +12625,92 @@ const routes = [{
12629
12625
  iconName: 'settings'
12630
12626
  }];
12631
12627
 
12632
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
12628
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12633
12629
  var Default_ref = true ? {
12634
12630
  name: "zjik7",
12635
12631
  styles: "display:flex"
12636
12632
  } : 0;
12637
- const Default = Component => props => {
12638
- const theme = (0,react_namespaceObject.useTheme)();
12639
- const {
12640
- user
12641
- } = useAuth();
12642
- const {
12643
- data: goals,
12644
- query: loadGoals
12645
- } = (0,hooks_namespaceObject.useApi)(goalsApi_goals.get, []);
12646
- const {
12647
- data: workouts,
12648
- query: loadWorkouts
12649
- } = (0,hooks_namespaceObject.useApi)(workoutsApi_workouts.get, []);
12650
- (0,external_react_namespaceObject.useEffect)(() => {
12651
- loadGoals();
12652
- loadWorkouts();
12653
- }, []);
12654
- return (0,jsx_runtime_namespaceObject.jsxs)(Layout, {
12655
- children: [(0,jsx_runtime_namespaceObject.jsx)("input", {
12656
- type: "checkbox",
12657
- id: "aside"
12658
- }), (0,jsx_runtime_namespaceObject.jsxs)("div", {
12659
- css: /*#__PURE__*/(0,react_namespaceObject.css)("display:flex;grid-area:header;grid-column:-1/2;align-items:center;justify-content:flex-end;height:55px;padding-top:16px;padding-right:11px;", theme.mediaQueries.lg, "{display:none;}" + ( true ? "" : 0), true ? "" : 0),
12660
- children: [(0,jsx_runtime_namespaceObject.jsx)("label", {
12661
- htmlFor: "aside",
12662
- children: (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Avatar, {
12663
- size: 42,
12664
- image: 'https://firebasestorage.googleapis.com/v0/b/admin-themes.appspot.com/o/img%2Fface%2Fface_46.png?alt=media&token=aaa3a75c-4779-4887-b011-352f8dd6c214'
12665
- })
12666
- }), (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Button, {
12667
- size: "large",
12668
- variant: "tertiary",
12669
- endIcon: (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Icon, {
12670
- name: "notification"
12671
- }),
12672
- onClick: console.log
12673
- })]
12674
- }), (0,jsx_runtime_namespaceObject.jsxs)(Nav, {
12675
- children: [(0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.NavBar, {
12676
- items: routes
12633
+ const Default = Component => {
12634
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12635
+ function WrappedComponent(props) {
12636
+ const theme = (0,react_namespaceObject.useTheme)();
12637
+ const {
12638
+ user
12639
+ } = useAuth();
12640
+ const {
12641
+ data: goals,
12642
+ query: loadGoals
12643
+ } = (0,hooks_namespaceObject.useApi)(goalsApi_goals.get, []);
12644
+ const {
12645
+ data: workouts,
12646
+ query: loadWorkouts
12647
+ } = (0,hooks_namespaceObject.useApi)(workoutsApi_workouts.get, []);
12648
+ (0,external_react_namespaceObject.useEffect)(() => {
12649
+ loadGoals();
12650
+ loadWorkouts();
12651
+ }, []);
12652
+ return (0,jsx_runtime_namespaceObject.jsxs)(Layout, {
12653
+ children: [(0,jsx_runtime_namespaceObject.jsx)("input", {
12654
+ type: "checkbox",
12655
+ id: "aside"
12677
12656
  }), (0,jsx_runtime_namespaceObject.jsxs)("div", {
12678
- css: theme => /*#__PURE__*/(0,react_namespaceObject.css)("padding-left:20px;", theme.mediaQueries.lg, "{display:none;}" + ( true ? "" : 0), true ? "" : 0),
12679
- children: [(0,jsx_runtime_namespaceObject.jsxs)(core_namespaceObject.Typography, {
12680
- variant: "body1",
12681
- children: ["Good Morning, ", user?.name]
12682
- }), (0,jsx_runtime_namespaceObject.jsxs)(core_namespaceObject.Typography, {
12683
- variant: "h2",
12684
- css: Default_ref,
12685
- children: ["Welcome Back", (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.ResponsiveImage, {
12686
- srcSet: "",
12687
- sizes: "",
12688
- src: "https://firebasestorage.googleapis.com/v0/b/admin-themes.appspot.com/o/img%2Fdumbbell%2Fdumbbell_hand_24.png?alt=media&token=9061ef46-ed6a-404c-a119-8f2eaa991aa4",
12689
- alt: "Dumbbell with hand"
12657
+ css: /*#__PURE__*/(0,react_namespaceObject.css)("display:flex;grid-area:header;grid-column:-1/2;align-items:center;justify-content:flex-end;height:55px;padding-top:16px;padding-right:11px;", theme.mediaQueries.lg, "{display:none;}" + ( true ? "" : 0), true ? "" : 0),
12658
+ children: [(0,jsx_runtime_namespaceObject.jsx)("label", {
12659
+ htmlFor: "aside",
12660
+ children: (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Avatar, {
12661
+ size: 42,
12662
+ image: 'https://firebasestorage.googleapis.com/v0/b/admin-themes.appspot.com/o/img%2Fface%2Fface_46.png?alt=media&token=aaa3a75c-4779-4887-b011-352f8dd6c214'
12663
+ })
12664
+ }), (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Button, {
12665
+ size: "large",
12666
+ variant: "tertiary",
12667
+ endIcon: (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Icon, {
12668
+ name: "notification"
12669
+ }),
12670
+ onClick: console.log
12671
+ })]
12672
+ }), (0,jsx_runtime_namespaceObject.jsxs)(Nav, {
12673
+ children: [(0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.NavBar, {
12674
+ items: routes
12675
+ }), (0,jsx_runtime_namespaceObject.jsxs)("div", {
12676
+ css: theme => /*#__PURE__*/(0,react_namespaceObject.css)("padding-left:20px;", theme.mediaQueries.lg, "{display:none;}" + ( true ? "" : 0), true ? "" : 0),
12677
+ children: [(0,jsx_runtime_namespaceObject.jsxs)(core_namespaceObject.Typography, {
12678
+ variant: "body1",
12679
+ children: ["Good Morning, ", user?.name]
12680
+ }), (0,jsx_runtime_namespaceObject.jsxs)(core_namespaceObject.Typography, {
12681
+ variant: "h2",
12682
+ css: Default_ref,
12683
+ children: ["Welcome Back", (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.ResponsiveImage, {
12684
+ srcSet: "",
12685
+ sizes: "",
12686
+ src: "https://firebasestorage.googleapis.com/v0/b/admin-themes.appspot.com/o/img%2Fdumbbell%2Fdumbbell_hand_24.png?alt=media&token=9061ef46-ed6a-404c-a119-8f2eaa991aa4",
12687
+ alt: "Dumbbell with hand"
12688
+ })]
12690
12689
  })]
12691
12690
  })]
12691
+ }), (0,jsx_runtime_namespaceObject.jsx)(Component, {
12692
+ ...props
12693
+ }), (0,jsx_runtime_namespaceObject.jsxs)(Sidebar, {
12694
+ children: [(0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.UserCard, {
12695
+ user: user
12696
+ }), (0,jsx_runtime_namespaceObject.jsx)("section", {
12697
+ children: user && (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.Bmi, {
12698
+ height: user.height,
12699
+ weight: user.weight
12700
+ })
12701
+ }), (0,jsx_runtime_namespaceObject.jsx)("section", {
12702
+ children: (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.ListGoals, {
12703
+ goals: goals
12704
+ })
12705
+ }), (0,jsx_runtime_namespaceObject.jsx)("section", {
12706
+ children: (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.UpcomingWorkouts, {
12707
+ workouts: workouts
12708
+ })
12709
+ })]
12692
12710
  })]
12693
- }), (0,jsx_runtime_namespaceObject.jsx)(Component, {
12694
- ...props
12695
- }), (0,jsx_runtime_namespaceObject.jsxs)(Sidebar, {
12696
- children: [(0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.UserCard, {
12697
- user: user
12698
- }), (0,jsx_runtime_namespaceObject.jsx)("section", {
12699
- children: user && (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.Bmi, {
12700
- height: user.height,
12701
- weight: user.weight
12702
- })
12703
- }), (0,jsx_runtime_namespaceObject.jsx)("section", {
12704
- children: (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.ListGoals, {
12705
- goals: goals
12706
- })
12707
- }), (0,jsx_runtime_namespaceObject.jsx)("section", {
12708
- children: (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.UpcomingWorkouts, {
12709
- workouts: workouts
12710
- })
12711
- })]
12712
- })]
12713
- });
12711
+ });
12712
+ }
12713
+ return (0,core_namespaceObject.setHocDisplayName)('Default', Component, WrappedComponent);
12714
12714
  };
12715
12715
  Default.displayName = 'Default';
12716
12716
  /* harmony default export */ const Template_Default = (Default);