@rolster/react-components 1.5.6 → 1.5.7

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.
@@ -187,6 +187,7 @@
187
187
  .rls-button__content {
188
188
  display: flex;
189
189
  justify-content: center;
190
+ overflow: hidden;
190
191
  line-height: var(--sizing-40);
191
192
  height: var(--sizing-40);
192
193
  padding: var(--rls-button-content-padding);
@@ -248,6 +249,9 @@
248
249
  font-weight: var(--font-weight-bold);
249
250
  letter-spacing: var(--button-letter-spacing);
250
251
  text-transform: var(--rls-button-label-text-transform);
252
+ text-overflow: ellipsis;
253
+ overflow: hidden;
254
+ white-space: nowrap;
251
255
  }
252
256
  .rls-button__label a {
253
257
  text-decoration: none;
@@ -643,6 +647,7 @@
643
647
  position: relative;
644
648
  float: left;
645
649
  display: flex;
650
+ align-items: center;
646
651
  padding: var(--sizing-8) var(--sizing-12);
647
652
  box-sizing: border-box;
648
653
  border: var(--border-1-theme-300);
@@ -1398,7 +1398,7 @@ function RlsIcon({ value, skeleton }) {
1398
1398
  }
1399
1399
 
1400
1400
  function RlsButton({ type, children, disabled, prefixIcon, suffixIcon, rlsTheme, onClick }) {
1401
- return (jsxRuntimeExports.jsx("button", { className: "rls-button", onClick: onClick, "rls-theme": rlsTheme, disabled: disabled, children: jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-button__content', { type }), children: [prefixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: prefixIcon }), children && (jsxRuntimeExports.jsx("div", { className: "rls-button__label truncate", children: children })), suffixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: suffixIcon })] }) }));
1401
+ return (jsxRuntimeExports.jsx("button", { className: "rls-button", onClick: onClick, "rls-theme": rlsTheme, disabled: disabled, children: jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-button__content', { type }), children: [prefixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: prefixIcon }), children && (jsxRuntimeExports.jsx("div", { className: "rls-button__label", children: children })), suffixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: suffixIcon })] }) }));
1402
1402
  }
1403
1403
 
1404
1404
  function RlsButtonAction({ icon, disabled, tooltip, onClick }) {