rbro-tat-uds 2.2.6 → 2.2.8

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.
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ 'use strict';
5
+
6
+ Object.defineProperty(exports, '__esModule', { value: true });
7
+
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+ require('react');
10
+ var styled = require('styled-components');
11
+ var utils = require('../../utils');
12
+ var AppBranding = require('../AppBranding/AppBranding.cjs');
13
+
14
+ const SelectionAppCardStyled = styled.div`
15
+ max-width: 182px;
16
+ width: 100%;
17
+ display: flex;
18
+ flex-direction: column;
19
+ gap: 4px;
20
+
21
+ & > div {
22
+ border: ${({ $selected }) => $selected ? `2px solid ${utils.colors.info_200}` : `1px solid ${utils.colors.gray_100}`};
23
+ background-color: ${({ $selected }) => $selected ? utils.colors.info_100 : utils.colors.white};
24
+ border-radius: 8px;
25
+ height: 124px;
26
+ width: 100%;
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ cursor: pointer;
31
+ }
32
+
33
+ & > span {
34
+ font-size: 12px;
35
+ font-weight: 500;
36
+ color: ${utils.colors.info_600};
37
+ text-align: center;
38
+ }
39
+ `;
40
+ const SelectionAppCard = ({
41
+ text = "",
42
+ textColor = "gray_950",
43
+ bgColor = "gray_60",
44
+ selected = false,
45
+ ...props
46
+ }) => {
47
+ return /* @__PURE__ */ jsxRuntime.jsxs(SelectionAppCardStyled, { $selected: selected, ...props, children: [
48
+ /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AppBranding.default, { text, textColor, bgColor }) }),
49
+ selected && /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Aplicatia curenta" })
50
+ ] });
51
+ };
52
+
53
+ exports.default = SelectionAppCard;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ 'use strict';
5
+
6
+ Object.defineProperty(exports, '__esModule', { value: true });
7
+
8
+ var SelectionAppCard = require('./SelectionAppCard.cjs');
9
+
10
+
11
+
12
+ exports.default = SelectionAppCard.default;
@@ -21,9 +21,10 @@ const ShortcutCardStyled = styled.div`
21
21
  gap: 16px;
22
22
  border-width: 1px;
23
23
  border-style: solid;
24
- border-color: ${({ $filled }) => $filled ? utils.colors.gray_30 : utils.colors.gray_150};
25
- background-color: ${({ $filled }) => $filled ? utils.colors.gray_30 : "transparent"};
24
+ border-color: ${({ $filled, $featured }) => $featured ? utils.colors.accent_600 : $filled ? utils.colors.gray_30 : utils.colors.gray_150};
25
+ background-color: ${({ $filled, $featured }) => $featured ? utils.colors.accent_100 : $filled ? utils.colors.gray_30 : "transparent"};
26
26
  border-radius: 8px;
27
+ outline: ${({ $featured }) => $featured ? `3px solid ${utils.colors.accent_300}` : "none"};
27
28
 
28
29
  ${(props) => props.$disabled && styled.css`
29
30
  background-color: ${utils.colors.gray_30};
@@ -81,6 +82,7 @@ const ShortcutCard = ({
81
82
  buttonGrow = false,
82
83
  disabled = false,
83
84
  loading = false,
85
+ featured = false,
84
86
  buttonOnClick,
85
87
  ...rest
86
88
  }) => {
@@ -96,6 +98,7 @@ const ShortcutCard = ({
96
98
  $textFontWeight: textFontWeight,
97
99
  $icon: icon,
98
100
  $disabled: disabled,
101
+ $featured: featured,
99
102
  ...rest,
100
103
  children: [
101
104
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -90,6 +90,7 @@ var VerticalHeat = require('./VerticalHeat/VerticalHeat.cjs');
90
90
  var Icon = require('./Icon/Icon.cjs');
91
91
  var Spinner = require('./Spinner/Spinner.cjs');
92
92
  var GraficContributieUnitlinked = require('./GraficContributieUnitlinked/GraficContributieUnitlinked.cjs');
93
+ var SelectionAppCard = require('./SelectionAppCard/SelectionAppCard.cjs');
93
94
 
94
95
 
95
96
 
@@ -180,3 +181,4 @@ exports.VerticalHeat = VerticalHeat.default;
180
181
  exports.Icon = Icon.default;
181
182
  exports.Spinner = Spinner.default;
182
183
  exports.GraficContributieUnitlinked = GraficContributieUnitlinked.default;
184
+ exports.SelectionAppCard = SelectionAppCard.default;
@@ -24120,9 +24120,10 @@ const ShortcutCardStyled = styled__default.default.div`
24120
24120
  gap: 16px;
24121
24121
  border-width: 1px;
24122
24122
  border-style: solid;
24123
- border-color: ${({ $filled }) => $filled ? utils.colors.gray_30 : utils.colors.gray_150};
24124
- background-color: ${({ $filled }) => $filled ? utils.colors.gray_30 : "transparent"};
24123
+ border-color: ${({ $filled, $featured }) => $featured ? utils.colors.accent_600 : $filled ? utils.colors.gray_30 : utils.colors.gray_150};
24124
+ background-color: ${({ $filled, $featured }) => $featured ? utils.colors.accent_100 : $filled ? utils.colors.gray_30 : "transparent"};
24125
24125
  border-radius: 8px;
24126
+ outline: ${({ $featured }) => $featured ? `3px solid ${utils.colors.accent_300}` : "none"};
24126
24127
 
24127
24128
  ${(props) => props.$disabled && styled.css`
24128
24129
  background-color: ${utils.colors.gray_30};
@@ -24180,6 +24181,7 @@ const ShortcutCard = ({
24180
24181
  buttonGrow = false,
24181
24182
  disabled = false,
24182
24183
  loading = false,
24184
+ featured = false,
24183
24185
  buttonOnClick,
24184
24186
  ...rest
24185
24187
  }) => {
@@ -24195,6 +24197,7 @@ const ShortcutCard = ({
24195
24197
  $textFontWeight: textFontWeight,
24196
24198
  $icon: icon,
24197
24199
  $disabled: disabled,
24200
+ $featured: featured,
24198
24201
  ...rest,
24199
24202
  children: [
24200
24203
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -26474,6 +26477,45 @@ const VerticalHeat = ({
26474
26477
  ] });
26475
26478
  };
26476
26479
 
26480
+ const SelectionAppCardStyled = styled__default.default.div`
26481
+ max-width: 182px;
26482
+ width: 100%;
26483
+ display: flex;
26484
+ flex-direction: column;
26485
+ gap: 4px;
26486
+
26487
+ & > div {
26488
+ border: ${({ $selected }) => $selected ? `2px solid ${utils.colors.info_200}` : `1px solid ${utils.colors.gray_100}`};
26489
+ background-color: ${({ $selected }) => $selected ? utils.colors.info_100 : utils.colors.white};
26490
+ border-radius: 8px;
26491
+ height: 124px;
26492
+ width: 100%;
26493
+ display: flex;
26494
+ align-items: center;
26495
+ justify-content: center;
26496
+ cursor: pointer;
26497
+ }
26498
+
26499
+ & > span {
26500
+ font-size: 12px;
26501
+ font-weight: 500;
26502
+ color: ${utils.colors.info_600};
26503
+ text-align: center;
26504
+ }
26505
+ `;
26506
+ const SelectionAppCard = ({
26507
+ text = "",
26508
+ textColor = "gray_950",
26509
+ bgColor = "gray_60",
26510
+ selected = false,
26511
+ ...props
26512
+ }) => {
26513
+ return /* @__PURE__ */ jsxRuntime.jsxs(SelectionAppCardStyled, { $selected: selected, ...props, children: [
26514
+ /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AppBranding, { text, textColor, bgColor }) }),
26515
+ selected && /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Aplicatia curenta" })
26516
+ ] });
26517
+ };
26518
+
26477
26519
  exports.Alert = Alert;
26478
26520
  exports.AppBranding = AppBranding;
26479
26521
  exports.AutosaveStatus = AutosaveStatus;
@@ -26543,6 +26585,7 @@ exports.Radio = Radio;
26543
26585
  exports.RatesCalculator = RatesCalculator;
26544
26586
  exports.Section = Section;
26545
26587
  exports.SegmentedTabs = SegmentedTabs;
26588
+ exports.SelectionAppCard = SelectionAppCard;
26546
26589
  exports.SelectionButton = SelectionButton;
26547
26590
  exports.SelectionPill = SelectionPill;
26548
26591
  exports.ShortcutCard = ShortcutCard;
@@ -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 };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ import SelectionAppCard from './SelectionAppCard.js';
5
+
6
+
7
+
8
+ export { SelectionAppCard as default };
@@ -17,9 +17,10 @@ const ShortcutCardStyled = styled.div`
17
17
  gap: 16px;
18
18
  border-width: 1px;
19
19
  border-style: solid;
20
- border-color: ${({ $filled }) => $filled ? colors.gray_30 : colors.gray_150};
21
- background-color: ${({ $filled }) => $filled ? colors.gray_30 : "transparent"};
20
+ border-color: ${({ $filled, $featured }) => $featured ? colors.accent_600 : $filled ? colors.gray_30 : colors.gray_150};
21
+ background-color: ${({ $filled, $featured }) => $featured ? colors.accent_100 : $filled ? colors.gray_30 : "transparent"};
22
22
  border-radius: 8px;
23
+ outline: ${({ $featured }) => $featured ? `3px solid ${colors.accent_300}` : "none"};
23
24
 
24
25
  ${(props) => props.$disabled && css`
25
26
  background-color: ${colors.gray_30};
@@ -77,6 +78,7 @@ const ShortcutCard = ({
77
78
  buttonGrow = false,
78
79
  disabled = false,
79
80
  loading = false,
81
+ featured = false,
80
82
  buttonOnClick,
81
83
  ...rest
82
84
  }) => {
@@ -92,6 +94,7 @@ const ShortcutCard = ({
92
94
  $textFontWeight: textFontWeight,
93
95
  $icon: icon,
94
96
  $disabled: disabled,
97
+ $featured: featured,
95
98
  ...rest,
96
99
  children: [
97
100
  /* @__PURE__ */ jsxs("div", { children: [
@@ -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';
@@ -24097,9 +24097,10 @@ const ShortcutCardStyled = styled.div`
24097
24097
  gap: 16px;
24098
24098
  border-width: 1px;
24099
24099
  border-style: solid;
24100
- border-color: ${({ $filled }) => $filled ? colors.gray_30 : colors.gray_150};
24101
- background-color: ${({ $filled }) => $filled ? colors.gray_30 : "transparent"};
24100
+ border-color: ${({ $filled, $featured }) => $featured ? colors.accent_600 : $filled ? colors.gray_30 : colors.gray_150};
24101
+ background-color: ${({ $filled, $featured }) => $featured ? colors.accent_100 : $filled ? colors.gray_30 : "transparent"};
24102
24102
  border-radius: 8px;
24103
+ outline: ${({ $featured }) => $featured ? `3px solid ${colors.accent_300}` : "none"};
24103
24104
 
24104
24105
  ${(props) => props.$disabled && css`
24105
24106
  background-color: ${colors.gray_30};
@@ -24157,6 +24158,7 @@ const ShortcutCard = ({
24157
24158
  buttonGrow = false,
24158
24159
  disabled = false,
24159
24160
  loading = false,
24161
+ featured = false,
24160
24162
  buttonOnClick,
24161
24163
  ...rest
24162
24164
  }) => {
@@ -24172,6 +24174,7 @@ const ShortcutCard = ({
24172
24174
  $textFontWeight: textFontWeight,
24173
24175
  $icon: icon,
24174
24176
  $disabled: disabled,
24177
+ $featured: featured,
24175
24178
  ...rest,
24176
24179
  children: [
24177
24180
  /* @__PURE__ */ jsxs("div", { children: [
@@ -26451,4 +26454,43 @@ const VerticalHeat = ({
26451
26454
  ] });
26452
26455
  };
26453
26456
 
26454
- export { Alert, AppBranding, AutosaveStatus, Bar, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, Card, Checkbox, CityPicker, ConfigurationSaveInfo, Container, Content, ContentDropdown, CreditCard, DashboardCard, DashboardCategory, DashboardSmallShortcut, Datepicker, Divider, DonutGraph, Dropdown, Flex, FormField, GraficConfiguratiePensii, GraficContributieUnitlinked, GraficFondInvestitii, GraficFondInvestitiiInflatie, GraficPensii, GraficPlanInvestitii, GraficPropunerePensii, Icon$1 as Icon, IconButton, IconCard, Illustration, ImageCard, InPageTab, InvestmentFundItem, LabeledText, LabeledTextInLine, Layout, Logo, Modal, ObjectiveCard, ObjectiveCardSmall, OfferCard, OperationsDashboardCard, OperationsDashboardCategory, PageMessage, PageTitle, Pill, PlanFinanciarAUMBar, PlanFinanciarAUMGraph, PlanulFinanciarTeaser, ProductTeaser, ProductTeaserButton, ProductTeaserParameters, ProductTeaserStep, ProposalPensii, ProposalUnitlinked, PropunereAsigurariCalatorie, PropunereFlexicredit, PropunereFondInvestitii, PropunuerePlanInvestitii as PropunerePlanInvestitii, Radio, RatesCalculator, Section, SegmentedTabs, SelectionButton, SelectionPill, ShortcutCard, Sidebar, SidebarItem, Slider, Spinner, StepTab, StepsBar, Switch, Tab, TextInput, TimedButton, TimelineSteps, TimelineStepsItem, Timer, UnitLinkGraph as UnitlinkGraph, VerticalHeat };
26457
+ const SelectionAppCardStyled = styled.div`
26458
+ max-width: 182px;
26459
+ width: 100%;
26460
+ display: flex;
26461
+ flex-direction: column;
26462
+ gap: 4px;
26463
+
26464
+ & > div {
26465
+ border: ${({ $selected }) => $selected ? `2px solid ${colors.info_200}` : `1px solid ${colors.gray_100}`};
26466
+ background-color: ${({ $selected }) => $selected ? colors.info_100 : colors.white};
26467
+ border-radius: 8px;
26468
+ height: 124px;
26469
+ width: 100%;
26470
+ display: flex;
26471
+ align-items: center;
26472
+ justify-content: center;
26473
+ cursor: pointer;
26474
+ }
26475
+
26476
+ & > span {
26477
+ font-size: 12px;
26478
+ font-weight: 500;
26479
+ color: ${colors.info_600};
26480
+ text-align: center;
26481
+ }
26482
+ `;
26483
+ const SelectionAppCard = ({
26484
+ text = "",
26485
+ textColor = "gray_950",
26486
+ bgColor = "gray_60",
26487
+ selected = false,
26488
+ ...props
26489
+ }) => {
26490
+ return /* @__PURE__ */ jsxs(SelectionAppCardStyled, { $selected: selected, ...props, children: [
26491
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AppBranding, { text, textColor, bgColor }) }),
26492
+ selected && /* @__PURE__ */ jsx("span", { children: "Aplicatia curenta" })
26493
+ ] });
26494
+ };
26495
+
26496
+ export { Alert, AppBranding, AutosaveStatus, Bar, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, Card, Checkbox, CityPicker, ConfigurationSaveInfo, Container, Content, ContentDropdown, CreditCard, DashboardCard, DashboardCategory, DashboardSmallShortcut, Datepicker, Divider, DonutGraph, Dropdown, Flex, FormField, GraficConfiguratiePensii, GraficContributieUnitlinked, GraficFondInvestitii, GraficFondInvestitiiInflatie, GraficPensii, GraficPlanInvestitii, GraficPropunerePensii, Icon$1 as Icon, IconButton, IconCard, Illustration, ImageCard, InPageTab, InvestmentFundItem, LabeledText, LabeledTextInLine, Layout, Logo, Modal, ObjectiveCard, ObjectiveCardSmall, OfferCard, OperationsDashboardCard, OperationsDashboardCategory, PageMessage, PageTitle, Pill, PlanFinanciarAUMBar, PlanFinanciarAUMGraph, PlanulFinanciarTeaser, ProductTeaser, ProductTeaserButton, ProductTeaserParameters, ProductTeaserStep, ProposalPensii, ProposalUnitlinked, PropunereAsigurariCalatorie, PropunereFlexicredit, PropunereFondInvestitii, PropunuerePlanInvestitii as PropunerePlanInvestitii, Radio, RatesCalculator, Section, SegmentedTabs, SelectionAppCard, SelectionButton, SelectionPill, ShortcutCard, Sidebar, SidebarItem, Slider, Spinner, StepTab, StepsBar, Switch, Tab, TextInput, TimedButton, TimelineSteps, TimelineStepsItem, Timer, UnitLinkGraph as UnitlinkGraph, VerticalHeat };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { colors } from '../../utils/colors.js';
3
+
4
+ interface SelectionAppCardProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ text?: string;
6
+ textColor?: keyof typeof colors;
7
+ bgColor?: keyof typeof colors;
8
+ selected?: boolean;
9
+ }
10
+ declare const SelectionAppCard: React.FC<SelectionAppCardProps>;
11
+
12
+ export { SelectionAppCard as default };
13
+ export type { SelectionAppCardProps };
@@ -0,0 +1,6 @@
1
+ import SelectionAppCard from './SelectionAppCard.js';
2
+ export { SelectionAppCardProps } from './SelectionAppCard.js';
3
+
4
+
5
+
6
+ export { SelectionAppCard as default };
@@ -17,6 +17,7 @@ interface ShortcutCardProps extends HTMLAttributes<HTMLDivElement> {
17
17
  disabled?: boolean;
18
18
  loading?: boolean;
19
19
  buttonOnClick?(): void;
20
+ featured?: boolean;
20
21
  }
21
22
  declare const ShortcutCard: React.FC<ShortcutCardProps>;
22
23
 
@@ -86,3 +86,4 @@ export { default as VerticalHeat, VerticalHeatProps } from './components/Vertica
86
86
  export { default as Logo, LogoProps } from './components/Logo/Logo.js';
87
87
  export { default as Icon } from './components/Icon/Icon.js';
88
88
  export { default as Spinner } from './components/Spinner/Spinner.js';
89
+ export { default as SelectionAppCard, SelectionAppCardProps } from './components/SelectionAppCard/SelectionAppCard.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbro-tat-uds",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "type": "module",
5
5
  "main": "build/cjs/index.cjs",
6
6
  "module": "build/esm/index.js",