@rolster/react-components 19.1.2 → 19.1.4

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.
@@ -43,7 +43,7 @@
43
43
  column-gap: var(--rls-sizing-x2);
44
44
  font-size: var(--pvt-font-size);
45
45
  font-weight: var(--pvt-font-weight);
46
- color: var(--rls-amount-font-color, inherit);
46
+ color: var(--rlc-amount-font-color, inherit);
47
47
  }
48
48
  .rls-amount[rls-theme] {
49
49
  color: var(--rls-theme-color-500);
@@ -73,14 +73,15 @@
73
73
  --rlc-image-height: var(--rlc-avatar-height);
74
74
  position: relative;
75
75
  display: flex;
76
- justify-content: center;
77
- overflow: hidden;
78
- font-size: var(--rlc-avatar-font-size, var(--rls-title-font-size));
79
76
  width: var(--rlc-avatar-width, var(--rls-sizing-x24));
80
77
  height: var(--rlc-avatar-height, var(--rls-sizing-x24));
81
- background: var(--rls-theme-gradient-500);
82
- color: var(--rls-theme-color-050);
78
+ justify-content: center;
79
+ align-items: center;
83
80
  border-radius: var(--rlc-avatar-radius, var(--rls-sizing-x4));
81
+ font-size: var(--rlc-avatar-font-size, var(--rls-title-font-size));
82
+ color: var(--rls-theme-color-050);
83
+ background: var(--rls-theme-gradient-500);
84
+ overflow: hidden;
84
85
  }
85
86
  .rls-avatar--skeleton {
86
87
  background: var(--rls-theme-color-200);
@@ -91,9 +92,16 @@
91
92
  .rls-avatar--rounded {
92
93
  border-radius: 50%;
93
94
  }
94
- .rls-avatar span {
95
- align-self: center;
95
+ .rls-avatar--contrast {
96
+ color: var(--rls-theme-color-500);
97
+ background: var(--rls-theme-color-100);
98
+ }
99
+ .rls-avatar > span {
96
100
  font-size: inherit;
101
+ }
102
+ .rls-avatar > img {
103
+ width: 100%;
104
+ object-fit: cover;
97
105
  } /*# sourceMappingURL=Avatar.css.map */
98
106
 
99
107
  .rls-badge {
@@ -108,7 +116,7 @@
108
116
  min-width: var(--pvt-dimension);
109
117
  height: var(--pvt-dimension);
110
118
  line-height: var(--pvt-dimension);
111
- padding: var(--rlc-badge-padding, 0rem var(--rls-sizing-x4));
119
+ padding: var(--rlc-badge-padding, 0rem var(--rls-sizing-x2));
112
120
  box-sizing: border-box;
113
121
  font-size: var(--rlc-badge-font-size, var(--rls-smalltext-font-size));
114
122
  font-weight: var(--rlc-badge-font-weight, var(--rls-font-weight-regular));
@@ -117,9 +125,9 @@
117
125
  --rlc-badge-letter-spacing,
118
126
  var(--rls-smalltext-letter-spacing)
119
127
  );
120
- color: var(--rls-app-color-050);
121
- background: var(--rls-app-color-700);
122
- border-radius: var(--rlc-badge-border-radius, calc(var(--pvt-dimension) / 2));
128
+ color: var(--pvt-font-color);
129
+ background: var(--pvt-background);
130
+ border-radius: var(--rlc-badge-radius, calc(var(--pvt-dimension) / 2));
123
131
  }
124
132
  .rls-badge--contrast {
125
133
  color: var(--pvt-contrast-font-color);
@@ -980,9 +988,10 @@
980
988
 
981
989
  .rls-progress-bar {
982
990
  --pvt-component-display: block;
991
+ --pvt-component-height: var(--rlc-progress-bar-height, --rls-sizing-x2);
983
992
  position: relative;
984
993
  width: 100%;
985
- height: var(--rls-sizing-x2);
994
+ height: var(--pvt-component-height);
986
995
  overflow: hidden;
987
996
  background: var(--rls-theme-color-200);
988
997
  }
@@ -995,7 +1004,7 @@
995
1004
  content: '';
996
1005
  top: 0rem;
997
1006
  width: 0%;
998
- height: var(--rls-sizing-x2);
1007
+ height: var(--pvt-component-height);
999
1008
  background: var(--rls-theme-gradient-500);
1000
1009
  }
1001
1010
  .rls-progress-bar--indeterminate::after {
@@ -1008,7 +1017,7 @@
1008
1017
  position: absolute;
1009
1018
  top: 0rem;
1010
1019
  width: 0%;
1011
- height: var(--rls-sizing-x4);
1020
+ height: var(--pvt-component-height);
1012
1021
  display: var(--pvt-component-display);
1013
1022
  background: var(--rls-theme-gradient-500);
1014
1023
  transition: width 320ms 0ms var(--rls-standard-curve);
package/dist/cjs/index.js CHANGED
@@ -466,10 +466,10 @@ function RlsAmount({ value, decimals, rlsTheme, symbol }) {
466
466
  return (jsxRuntimeExports.jsxs("div", { className: "rls-amount", "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { className: "rls-amount__symbol", children: symbol }), jsxRuntimeExports.jsxs("div", { className: "rls-amount__content", children: [jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__integer", value: integer }), decimal && (jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__decimal", value: decimal }))] })] }));
467
467
  }
468
468
 
469
- function RlsAvatar({ children, rounded, skeleton, rlsTheme }) {
469
+ function RlsAvatar({ children, contrast, rounded, skeleton, rlsTheme }) {
470
470
  const className = require$$0.useMemo(() => {
471
- return renderClassStatus('rls-avatar', { rounded, skeleton });
472
- }, [rounded, skeleton]);
471
+ return renderClassStatus('rls-avatar', { contrast, rounded, skeleton });
472
+ }, [contrast, rounded, skeleton]);
473
473
  return (jsxRuntimeExports.jsx("div", { className: className, "rls-theme": rlsTheme, children: children }));
474
474
  }
475
475