@rolster/react-components 18.21.36 → 18.21.38

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.
@@ -8,12 +8,10 @@
8
8
  --pvt-pointer-width: var(--rlc-tabular-text-pointer-width, 2rem);
9
9
  display: flex;
10
10
  width: auto;
11
- justify-content: var(--rlc-tabular-text-align, flex-start);
12
- }
13
- .rls-tabular-text span {
14
- font-size: var(--pvt-char-font-size);
15
11
  height: var(--pvt-char-height);
16
12
  line-height: var(--pvt-char-height);
13
+ font-size: var(--pvt-char-font-size);
14
+ justify-content: var(--rlc-tabular-text-align, flex-start);
17
15
  }
18
16
  .rls-tabular-text__char {
19
17
  display: block;
@@ -31,20 +29,26 @@
31
29
  --rlc-tabular-text-font-size: var(--pvt-font-size);
32
30
  display: flex;
33
31
  width: var(--rlc-amount-width, auto);
34
- justify-content: var(--rlc-amount-text-align, start);
32
+ justify-content: var(--rlc-amount-text-align, flex-start);
35
33
  column-gap: var(--rls-sizing-x2);
36
34
  font-size: var(--pvt-font-size);
37
35
  }
38
36
  .rls-amount[rls-theme] {
39
37
  color: var(--rls-theme-color-500);
40
38
  }
41
- .rls-amount__value {
39
+ .rls-amount__symbol {
40
+ display: block;
41
+ line-height: calc(var(--pvt-font-size) + 1rem);
42
+ height: calc(var(--pvt-font-size) + 1rem);
43
+ }
44
+ .rls-amount__content {
42
45
  display: flex;
46
+ justify-content: var(--rlc-amount-text-align, flex-start);
43
47
  }
44
48
  .rls-amount__decimal {
45
49
  --rlc-tabular-text-char-width: calc(var(--pvt-font-size) * 0.55);
46
50
  --rlc-tabular-text-font-size: calc(var(--pvt-font-size) * 0.75);
47
- align-items: flex-end;
51
+ align-self: flex-end;
48
52
  } /*# sourceMappingURL=Amount.css.map */
49
53
 
50
54
  .rls-avatar {
@@ -579,6 +583,10 @@
579
583
  position: relative;
580
584
  width: 100%;
581
585
  box-sizing: border-box;
586
+ }
587
+ .rls-input-money .rls-amount {
588
+ height: inherit;
589
+ align-items: center;
582
590
  } /*# sourceMappingURL=InputMoney.css.map */
583
591
 
584
592
  .rls-input-number {
package/dist/cjs/index.js CHANGED
@@ -1494,7 +1494,7 @@ function RlsAmount({ value, decimals, rlsTheme, symbol }) {
1494
1494
  decimal: currencySplit[1] || ''
1495
1495
  };
1496
1496
  }, [value, decimals]);
1497
- return (jsxRuntimeExports.jsxs("div", { className: "rls-amount", "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { children: symbol }), jsxRuntimeExports.jsxs("div", { className: "rls-amount__value", children: [jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__integer", value: integer }), decimal && (jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__decimal", value: decimal }))] })] }));
1497
+ 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 }))] })] }));
1498
1498
  }
1499
1499
 
1500
1500
  function RlsAvatar({ children, rounded, skeleton, rlsTheme }) {