rbro-tat-uds 2.2.7 → 2.2.9
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/build/cjs/assets/icons/brand-logo.svg.cjs +35 -0
- package/build/cjs/components/Button/Button.cjs +1 -0
- package/build/cjs/components/DashboardCard/DashboardCard.cjs +24 -1
- package/build/cjs/components/Dropdown/Dropdown.cjs +3 -0
- package/build/cjs/components/Icon/IconsList.cjs +3 -1
- package/build/cjs/components/IconButton/IconButton.cjs +1 -0
- package/build/cjs/components/PageMessage/PageMessage.cjs +1 -0
- package/build/cjs/components/SelectionAppCard/SelectionAppCard.cjs +53 -0
- package/build/cjs/components/SelectionAppCard/index.cjs +12 -0
- package/build/cjs/components/TextInput/TextInput.cjs +1 -0
- package/build/cjs/components/index.cjs +2 -0
- package/build/cjs/index.cjs +640 -562
- package/build/esm/assets/icons/brand-logo.svg.js +14 -0
- package/build/esm/components/Button/Button.js +1 -0
- package/build/esm/components/DashboardCard/DashboardCard.js +24 -1
- package/build/esm/components/Dropdown/Dropdown.js +3 -0
- package/build/esm/components/Icon/IconsList.js +3 -1
- package/build/esm/components/IconButton/IconButton.js +1 -0
- package/build/esm/components/PageMessage/PageMessage.js +1 -0
- package/build/esm/components/SelectionAppCard/SelectionAppCard.js +49 -0
- package/build/esm/components/SelectionAppCard/index.js +8 -0
- package/build/esm/components/TextInput/TextInput.js +1 -0
- package/build/esm/components/index.js +1 -0
- package/build/esm/index.js +640 -563
- package/build/types/components/DashboardCard/DashboardCard.d.ts +1 -0
- package/build/types/components/Icon/Icon.types.d.ts +1 -1
- package/build/types/components/Icon/IconsList.d.ts +1 -0
- package/build/types/components/SelectionAppCard/SelectionAppCard.d.ts +13 -0
- package/build/types/components/SelectionAppCard/index.d.ts +6 -0
- package/build/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
|
3
|
+
var _path;
|
4
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
5
|
+
var SvgBrandLogo = function SvgBrandLogo(props) {
|
6
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
8
|
+
viewBox: "0 0 24 24"
|
9
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
10
|
+
d: "M5.372 21.727 12 15.043l6.628 6.684 2.63-2.649-6.63-6.686 1.383-1.396V8.241l.961-.97v2.403l.836.844 3.36-3.39.832.837c-.006-.632-.131-2.462-1.67-3.987-1.661-1.611-3.454-.885-4.067-.266L12.904 7.1l.857.863L12 9.74l-1.761-1.777.857-.863-3.36-3.39c-.612-.618-2.406-1.344-4.066.267C2.13 5.503 2.006 7.333 2 7.965l.831-.838 3.36 3.39.837-.843V7.271l.96.97v2.755l1.383 1.396-6.629 6.686z"
|
11
|
+
})));
|
12
|
+
};
|
13
|
+
|
14
|
+
export { SvgBrandLogo as default };
|
@@ -146,6 +146,7 @@ import '../../assets/icons/hint-outlined.svg.js';
|
|
146
146
|
import '../../assets/icons/face-happy.svg.js';
|
147
147
|
import '../../assets/icons/person-level.svg.js';
|
148
148
|
import '../../assets/icons/star-reward.svg.js';
|
149
|
+
import '../../assets/icons/brand-logo.svg.js';
|
149
150
|
import Icon from '../Icon/Icon.js';
|
150
151
|
import Spinner from '../Spinner/Spinner.js';
|
151
152
|
import { colors } from '../../utils';
|
@@ -96,7 +96,25 @@ const DashboardCardStyled = styled.div`
|
|
96
96
|
background-color: ${colors.black};
|
97
97
|
`}
|
98
98
|
|
99
|
-
|
99
|
+
&>.a1b2c3d4e5adk4 {
|
100
|
+
position: absolute;
|
101
|
+
bottom: -11px;
|
102
|
+
right: 12px;
|
103
|
+
display: flex;
|
104
|
+
align-items: center;
|
105
|
+
gap: 4px;
|
106
|
+
padding: 1px 4px;
|
107
|
+
border-radius: 4px;
|
108
|
+
background-color: ${colors.gray_950};
|
109
|
+
|
110
|
+
& > span {
|
111
|
+
font-size: 13px;
|
112
|
+
font-weight: 400;
|
113
|
+
color: ${colors.accent_400};
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
& > .a7b2c9d4e8f5h3 {
|
100
118
|
display: flex;
|
101
119
|
position: absolute;
|
102
120
|
top: -10%;
|
@@ -278,6 +296,7 @@ const DashboardCard = ({
|
|
278
296
|
loading = false,
|
279
297
|
statusConfiguratii = 0,
|
280
298
|
retention = false,
|
299
|
+
promoText = "",
|
281
300
|
...rest
|
282
301
|
}) => {
|
283
302
|
return /* @__PURE__ */ jsxs(
|
@@ -293,6 +312,10 @@ const DashboardCard = ({
|
|
293
312
|
rest.onClick?.(event);
|
294
313
|
},
|
295
314
|
children: [
|
315
|
+
promoText.length > 0 && /* @__PURE__ */ jsxs("div", { className: "a1b2c3d4e5adk4", children: [
|
316
|
+
/* @__PURE__ */ jsx(Icon, { icon: "brand-logo", size: 12, color: colors.accent_500 }),
|
317
|
+
/* @__PURE__ */ jsx("span", { children: promoText })
|
318
|
+
] }),
|
296
319
|
statusConfiguratii > 0 && !loading && /* @__PURE__ */ jsxs("div", { className: "a7b2c9d4e8f5h3", children: [
|
297
320
|
/* @__PURE__ */ jsx("span", { children: statusConfiguratii }),
|
298
321
|
/* @__PURE__ */ jsx(Icon, { icon: "grocery-2", size: 14, color: colors.white })
|
@@ -37,6 +37,7 @@ const DropdownWraperStyled = styled.div`
|
|
37
37
|
}
|
38
38
|
|
39
39
|
& > input {
|
40
|
+
box-sizing: border-box;
|
40
41
|
border-radius: 8px;
|
41
42
|
border: none;
|
42
43
|
outline: none;
|
@@ -129,6 +130,7 @@ const DropdownContentStyled = styled.div`
|
|
129
130
|
& > div:last-of-type {
|
130
131
|
padding-right: 4px;
|
131
132
|
div {
|
133
|
+
box-sizing: border-box;
|
132
134
|
padding: 12px 8px 12px 12px;
|
133
135
|
width: 100%;
|
134
136
|
overflow-y: scroll;
|
@@ -152,6 +154,7 @@ const DropdownContentStyled = styled.div`
|
|
152
154
|
white-space: nowrap;
|
153
155
|
}
|
154
156
|
& > div {
|
157
|
+
box-sizing: border-box;
|
155
158
|
height: 42px;
|
156
159
|
display: flex;
|
157
160
|
align-items: center;
|
@@ -143,6 +143,7 @@ import HintOutlinedIcon from '../../assets/icons/hint-outlined.svg.js';
|
|
143
143
|
import FaceHappyIcon from '../../assets/icons/face-happy.svg.js';
|
144
144
|
import PersonLevelIcon from '../../assets/icons/person-level.svg.js';
|
145
145
|
import StarRewardIcon from '../../assets/icons/star-reward.svg.js';
|
146
|
+
import BrandLogoIcon from '../../assets/icons/brand-logo.svg.js';
|
146
147
|
|
147
148
|
const IconsList = {
|
148
149
|
asterix: AsterixIcon,
|
@@ -286,7 +287,8 @@ const IconsList = {
|
|
286
287
|
"hint-outlined": HintOutlinedIcon,
|
287
288
|
"face-happy": FaceHappyIcon,
|
288
289
|
"person-level": PersonLevelIcon,
|
289
|
-
"star-reward": StarRewardIcon
|
290
|
+
"star-reward": StarRewardIcon,
|
291
|
+
"brand-logo": BrandLogoIcon
|
290
292
|
};
|
291
293
|
|
292
294
|
export { IconsList as default };
|
@@ -145,6 +145,7 @@ import '../../assets/icons/hint-outlined.svg.js';
|
|
145
145
|
import '../../assets/icons/face-happy.svg.js';
|
146
146
|
import '../../assets/icons/person-level.svg.js';
|
147
147
|
import '../../assets/icons/star-reward.svg.js';
|
148
|
+
import '../../assets/icons/brand-logo.svg.js';
|
148
149
|
import styled, { css } from 'styled-components';
|
149
150
|
import Icon from '../Icon/Icon.js';
|
150
151
|
import Spinner from '../Spinner/Spinner.js';
|
@@ -145,6 +145,7 @@ import '../../assets/icons/hint-outlined.svg.js';
|
|
145
145
|
import '../../assets/icons/face-happy.svg.js';
|
146
146
|
import '../../assets/icons/person-level.svg.js';
|
147
147
|
import '../../assets/icons/star-reward.svg.js';
|
148
|
+
import '../../assets/icons/brand-logo.svg.js';
|
148
149
|
import styled from 'styled-components';
|
149
150
|
import Icon from '../Icon/Icon.js';
|
150
151
|
import { colors } from '../../utils';
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
"use client";
|
3
|
+
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
5
|
+
import 'react';
|
6
|
+
import styled from 'styled-components';
|
7
|
+
import { colors } from '../../utils';
|
8
|
+
import AppBranding from '../AppBranding/AppBranding.js';
|
9
|
+
|
10
|
+
const SelectionAppCardStyled = styled.div`
|
11
|
+
max-width: 182px;
|
12
|
+
width: 100%;
|
13
|
+
display: flex;
|
14
|
+
flex-direction: column;
|
15
|
+
gap: 4px;
|
16
|
+
|
17
|
+
& > div {
|
18
|
+
border: ${({ $selected }) => $selected ? `2px solid ${colors.info_200}` : `1px solid ${colors.gray_100}`};
|
19
|
+
background-color: ${({ $selected }) => $selected ? colors.info_100 : colors.white};
|
20
|
+
border-radius: 8px;
|
21
|
+
height: 124px;
|
22
|
+
width: 100%;
|
23
|
+
display: flex;
|
24
|
+
align-items: center;
|
25
|
+
justify-content: center;
|
26
|
+
cursor: pointer;
|
27
|
+
}
|
28
|
+
|
29
|
+
& > span {
|
30
|
+
font-size: 12px;
|
31
|
+
font-weight: 500;
|
32
|
+
color: ${colors.info_600};
|
33
|
+
text-align: center;
|
34
|
+
}
|
35
|
+
`;
|
36
|
+
const SelectionAppCard = ({
|
37
|
+
text = "",
|
38
|
+
textColor = "gray_950",
|
39
|
+
bgColor = "gray_60",
|
40
|
+
selected = false,
|
41
|
+
...props
|
42
|
+
}) => {
|
43
|
+
return /* @__PURE__ */ jsxs(SelectionAppCardStyled, { $selected: selected, ...props, children: [
|
44
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AppBranding, { text, textColor, bgColor }) }),
|
45
|
+
selected && /* @__PURE__ */ jsx("span", { children: "Aplicatia curenta" })
|
46
|
+
] });
|
47
|
+
};
|
48
|
+
|
49
|
+
export { SelectionAppCard as default };
|
@@ -146,6 +146,7 @@ import '../../assets/icons/hint-outlined.svg.js';
|
|
146
146
|
import '../../assets/icons/face-happy.svg.js';
|
147
147
|
import '../../assets/icons/person-level.svg.js';
|
148
148
|
import '../../assets/icons/star-reward.svg.js';
|
149
|
+
import '../../assets/icons/brand-logo.svg.js';
|
149
150
|
import { createPortal } from 'react-dom';
|
150
151
|
import Icon from '../Icon/Icon.js';
|
151
152
|
import Numpad from '../Numpad/Numpad.js';
|
@@ -88,3 +88,4 @@ export { default as VerticalHeat } from './VerticalHeat/VerticalHeat.js';
|
|
88
88
|
export { default as Icon } from './Icon/Icon.js';
|
89
89
|
export { default as Spinner } from './Spinner/Spinner.js';
|
90
90
|
export { default as GraficContributieUnitlinked } from './GraficContributieUnitlinked/GraficContributieUnitlinked.js';
|
91
|
+
export { default as SelectionAppCard } from './SelectionAppCard/SelectionAppCard.js';
|