@ssa-ui-kit/templates 2.33.0 → 3.0.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.
- package/dist/{991.index.js → 733.index.js} +7 -7
- package/dist/733.index.js.map +1 -0
- package/dist/{211.index.js → 809.index.js} +23699 -22664
- package/dist/809.index.js.map +1 -0
- package/dist/index.js +84 -86
- package/dist/index.js.map +1 -1
- package/dist/projects/fintech/components/ConfirmationModal/types.d.ts +2 -2
- package/dist/projects/fintech/components/CryptocurrencyPrices/styles.d.ts +15 -10
- package/dist/projects/fintech/components/PlotTooltip/hooks/usePlotTooltip.d.ts +2 -2
- package/dist/projects/fintech/components/WidgetCard/Title.d.ts +1 -1
- package/dist/projects/fintech/components/WidgetCard/WidgetCardBase.d.ts +1 -1
- package/dist/projects/fintech/components/WidgetInfoLabel/types.d.ts +3 -3
- package/dist/projects/fintech/components/WithWidgetLoader/WithWidgetLoader.d.ts +1 -1
- package/dist/projects/fintech/contexts/GraphsContext/types.d.ts +2 -2
- package/dist/projects/fintech/contexts/HeaderContext/types.d.ts +4 -4
- package/dist/projects/fintech/modals/types.d.ts +2 -2
- package/dist/projects/fintech/pages/AppLayout/types.d.ts +1 -1
- package/dist/projects/fintech/pages/BotsPage/BotsPage.d.ts +1 -4
- package/dist/projects/fintech/pages/Dashboard/components/Bots/BotsText.d.ts +2 -2
- package/dist/projects/fintech/pages/Dashboard/components/PeriodFilter/PeriodButtonGroup.d.ts +3 -8
- package/dist/projects/fintech/pages/Dashboard/components/TopMenuWrapper/TopMenuWrapper.d.ts +3 -2
- package/dist/projects/fintech/pages/NotificationsPage/NotificationsPage.d.ts +2 -4
- package/dist/projects/fintech/pages/NotificationsPage/components/ReadAllButton/StyledButton.d.ts +1 -1
- package/dist/projects/fitness/pages/Template/Default.d.ts +2 -1
- package/dist/projects/hr/components/AppLayout/types.d.ts +1 -1
- package/dist/projects/hr/components/Events/components/EventInfoCell.d.ts +1 -3
- package/dist/projects/hr/components/Events/components/EventInfoContext.d.ts +3 -3
- package/dist/projects/hr/components/Events/components/EventInfoPopoverTrigger.d.ts +1 -6
- package/dist/projects/hr/components/Events/components/WithEventLink.d.ts +1 -1
- package/dist/projects/hr/components/TableCell.d.ts +1 -3
- package/dist/projects/hr/components/WidgetCard/Title.d.ts +1 -1
- package/dist/projects/hr/components/WidgetCard/WidgetCardBase.d.ts +1 -1
- package/dist/projects/hr/components/WithWidgetLoader/WithWidgetLoader.d.ts +1 -1
- package/dist/projects/hr/contexts/Header/types.d.ts +2 -2
- package/package.json +44 -35
- package/dist/211.index.js.map +0 -1
- 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
|
|
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) {
|
|
@@ -10942,7 +10939,6 @@ const ActionMore = () => {
|
|
|
10942
10939
|
},
|
|
10943
10940
|
placement: "top-start",
|
|
10944
10941
|
children: [(0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.PopoverTrigger, {
|
|
10945
|
-
variant: "custom",
|
|
10946
10942
|
isDisabled: isDisabled,
|
|
10947
10943
|
dataTestId: "more-trigger-button",
|
|
10948
10944
|
css: ActionMore_ref,
|
|
@@ -11294,7 +11290,6 @@ const ActionRun = ({
|
|
|
11294
11290
|
},
|
|
11295
11291
|
placement: "top-start",
|
|
11296
11292
|
children: [(0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.PopoverTrigger, {
|
|
11297
|
-
variant: "custom",
|
|
11298
11293
|
isDisabled: isDisabled,
|
|
11299
11294
|
dataTestId: "run-reason-trigger-button",
|
|
11300
11295
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
@@ -11334,7 +11329,7 @@ const ActionRun = ({
|
|
|
11334
11329
|
placeholder: "Enter",
|
|
11335
11330
|
css: ActionRun_ref4
|
|
11336
11331
|
}), (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Button, {
|
|
11337
|
-
variant: "
|
|
11332
|
+
variant: "primary",
|
|
11338
11333
|
type: "submit",
|
|
11339
11334
|
css: _ref5,
|
|
11340
11335
|
children: t('pages.bots.run')
|
|
@@ -11388,8 +11383,8 @@ const BotsActionRun = ({
|
|
|
11388
11383
|
const Actions = ({
|
|
11389
11384
|
row
|
|
11390
11385
|
}) => {
|
|
11391
|
-
const
|
|
11392
|
-
const isArchivePage =
|
|
11386
|
+
const location = (0,external_react_router_dom_namespaceObject.useLocation)();
|
|
11387
|
+
const isArchivePage = location.pathname.endsWith('/archive') || location.pathname.endsWith('/archive/');
|
|
11393
11388
|
if (isArchivePage) {
|
|
11394
11389
|
return null;
|
|
11395
11390
|
}
|
|
@@ -12248,7 +12243,7 @@ const hooks_namespaceObject = require("@ssa-ui-kit/hooks");
|
|
|
12248
12243
|
* this: https://gist.github.com/dyaa/8f8d1f8964160630f2475fe26a2e6150?permalink_comment_id=4065558#gistcomment-4065558
|
|
12249
12244
|
* */
|
|
12250
12245
|
const getFirebase = async () => {
|
|
12251
|
-
const [firestore] = await Promise.all([Promise.all(/* import() */[__webpack_require__.e(
|
|
12246
|
+
const [firestore] = await Promise.all([Promise.all(/* import() */[__webpack_require__.e(809), __webpack_require__.e(733)]).then(__webpack_require__.bind(__webpack_require__, 733))]);
|
|
12252
12247
|
return {
|
|
12253
12248
|
firestore
|
|
12254
12249
|
};
|
|
@@ -12596,7 +12591,6 @@ const Nav = /*#__PURE__*/base_default()("section", true ? {
|
|
|
12596
12591
|
}) => theme.mediaQueries.lg, "{grid-area:nav;grid-row:main;}" + ( true ? "" : 0));
|
|
12597
12592
|
;// ./src/projects/fitness/pages/Template/Default.tsx
|
|
12598
12593
|
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
12594
|
|
|
12601
12595
|
|
|
12602
12596
|
|
|
@@ -12629,88 +12623,92 @@ const routes = [{
|
|
|
12629
12623
|
iconName: 'settings'
|
|
12630
12624
|
}];
|
|
12631
12625
|
|
|
12632
|
-
|
|
12626
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12633
12627
|
var Default_ref = true ? {
|
|
12634
12628
|
name: "zjik7",
|
|
12635
12629
|
styles: "display:flex"
|
|
12636
12630
|
} : 0;
|
|
12637
|
-
const Default = Component =>
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
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
|
|
12631
|
+
const Default = Component => {
|
|
12632
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12633
|
+
function WrappedComponent(props) {
|
|
12634
|
+
const theme = (0,react_namespaceObject.useTheme)();
|
|
12635
|
+
const {
|
|
12636
|
+
user
|
|
12637
|
+
} = useAuth();
|
|
12638
|
+
const {
|
|
12639
|
+
data: goals,
|
|
12640
|
+
query: loadGoals
|
|
12641
|
+
} = (0,hooks_namespaceObject.useApi)(goalsApi_goals.get, []);
|
|
12642
|
+
const {
|
|
12643
|
+
data: workouts,
|
|
12644
|
+
query: loadWorkouts
|
|
12645
|
+
} = (0,hooks_namespaceObject.useApi)(workoutsApi_workouts.get, []);
|
|
12646
|
+
(0,external_react_namespaceObject.useEffect)(() => {
|
|
12647
|
+
loadGoals();
|
|
12648
|
+
loadWorkouts();
|
|
12649
|
+
}, []);
|
|
12650
|
+
return (0,jsx_runtime_namespaceObject.jsxs)(Layout, {
|
|
12651
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)("input", {
|
|
12652
|
+
type: "checkbox",
|
|
12653
|
+
id: "aside"
|
|
12677
12654
|
}), (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
12678
|
-
css:
|
|
12679
|
-
children: [(0,jsx_runtime_namespaceObject.
|
|
12680
|
-
|
|
12681
|
-
children:
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12655
|
+
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),
|
|
12656
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)("label", {
|
|
12657
|
+
htmlFor: "aside",
|
|
12658
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Avatar, {
|
|
12659
|
+
size: 42,
|
|
12660
|
+
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'
|
|
12661
|
+
})
|
|
12662
|
+
}), (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Button, {
|
|
12663
|
+
size: "large",
|
|
12664
|
+
variant: "tertiary",
|
|
12665
|
+
endIcon: (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Icon, {
|
|
12666
|
+
name: "notification"
|
|
12667
|
+
}),
|
|
12668
|
+
onClick: console.log
|
|
12669
|
+
})]
|
|
12670
|
+
}), (0,jsx_runtime_namespaceObject.jsxs)(Nav, {
|
|
12671
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.NavBar, {
|
|
12672
|
+
items: routes
|
|
12673
|
+
}), (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
12674
|
+
css: theme => /*#__PURE__*/(0,react_namespaceObject.css)("padding-left:20px;", theme.mediaQueries.lg, "{display:none;}" + ( true ? "" : 0), true ? "" : 0),
|
|
12675
|
+
children: [(0,jsx_runtime_namespaceObject.jsxs)(core_namespaceObject.Typography, {
|
|
12676
|
+
variant: "body1",
|
|
12677
|
+
children: ["Good Morning, ", user?.name]
|
|
12678
|
+
}), (0,jsx_runtime_namespaceObject.jsxs)(core_namespaceObject.Typography, {
|
|
12679
|
+
variant: "h2",
|
|
12680
|
+
css: Default_ref,
|
|
12681
|
+
children: ["Welcome Back", (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.ResponsiveImage, {
|
|
12682
|
+
srcSet: "",
|
|
12683
|
+
sizes: "",
|
|
12684
|
+
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",
|
|
12685
|
+
alt: "Dumbbell with hand"
|
|
12686
|
+
})]
|
|
12690
12687
|
})]
|
|
12691
12688
|
})]
|
|
12689
|
+
}), (0,jsx_runtime_namespaceObject.jsx)(Component, {
|
|
12690
|
+
...props
|
|
12691
|
+
}), (0,jsx_runtime_namespaceObject.jsxs)(Sidebar, {
|
|
12692
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.UserCard, {
|
|
12693
|
+
user: user
|
|
12694
|
+
}), (0,jsx_runtime_namespaceObject.jsx)("section", {
|
|
12695
|
+
children: user && (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.Bmi, {
|
|
12696
|
+
height: user.height,
|
|
12697
|
+
weight: user.weight
|
|
12698
|
+
})
|
|
12699
|
+
}), (0,jsx_runtime_namespaceObject.jsx)("section", {
|
|
12700
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.ListGoals, {
|
|
12701
|
+
goals: goals
|
|
12702
|
+
})
|
|
12703
|
+
}), (0,jsx_runtime_namespaceObject.jsx)("section", {
|
|
12704
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.UpcomingWorkouts, {
|
|
12705
|
+
workouts: workouts
|
|
12706
|
+
})
|
|
12707
|
+
})]
|
|
12692
12708
|
})]
|
|
12693
|
-
})
|
|
12694
|
-
|
|
12695
|
-
|
|
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
|
-
});
|
|
12709
|
+
});
|
|
12710
|
+
}
|
|
12711
|
+
return (0,core_namespaceObject.setHocDisplayName)('Default', Component, WrappedComponent);
|
|
12714
12712
|
};
|
|
12715
12713
|
Default.displayName = 'Default';
|
|
12716
12714
|
/* harmony default export */ const Template_Default = (Default);
|