@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.
@@ -52,6 +52,7 @@
52
52
  .rls-button__content {
53
53
  display: flex;
54
54
  justify-content: center;
55
+ overflow: hidden;
55
56
  line-height: var(--sizing-40);
56
57
  height: var(--sizing-40);
57
58
  padding: var(--rls-button-content-padding);
@@ -113,6 +114,9 @@
113
114
  font-weight: var(--font-weight-bold);
114
115
  letter-spacing: var(--button-letter-spacing);
115
116
  text-transform: var(--rls-button-label-text-transform);
117
+ text-overflow: ellipsis;
118
+ overflow: hidden;
119
+ white-space: nowrap;
116
120
  }
117
121
  .rls-button__label a {
118
122
  text-decoration: none;
@@ -3,6 +3,6 @@ import { renderClassStatus } from '../../../utils/css';
3
3
  import { RlsIcon } from '../Icon/Icon';
4
4
  import './Button.css';
5
5
  export function RlsButton({ type, children, disabled, prefixIcon, suffixIcon, rlsTheme, onClick }) {
6
- return (_jsx("button", { className: "rls-button", onClick: onClick, "rls-theme": rlsTheme, disabled: disabled, children: _jsxs("div", { className: renderClassStatus('rls-button__content', { type }), children: [prefixIcon && _jsx(RlsIcon, { value: prefixIcon }), children && (_jsx("div", { className: "rls-button__label truncate", children: children })), suffixIcon && _jsx(RlsIcon, { value: suffixIcon })] }) }));
6
+ return (_jsx("button", { className: "rls-button", onClick: onClick, "rls-theme": rlsTheme, disabled: disabled, children: _jsxs("div", { className: renderClassStatus('rls-button__content', { type }), children: [prefixIcon && _jsx(RlsIcon, { value: prefixIcon }), children && (_jsx("div", { className: "rls-button__label", children: children })), suffixIcon && _jsx(RlsIcon, { value: suffixIcon })] }) }));
7
7
  }
8
8
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Button/Button.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE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AAO,CACpD,EACA,UAAU,IAAI,KAAC,OAAO,IAAC,KAAK,EAAE,UAAU,GAAI,IACzC,GACC,CACV,CAAC;AACJ,CAAC"}
@@ -3,6 +3,7 @@
3
3
  position: relative;
4
4
  float: left;
5
5
  display: flex;
6
+ align-items: center;
6
7
  padding: var(--sizing-8) var(--sizing-12);
7
8
  box-sizing: border-box;
8
9
  border: var(--border-1-theme-300);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolster/react-components",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "type": "module",
5
5
  "description": "Package containing UI components for React Project.",
6
6
  "module": "dist/esm/index.js",
@@ -45,7 +45,7 @@
45
45
  "@rollup/plugin-commonjs": "^25.0.4",
46
46
  "@rollup/plugin-node-resolve": "^15.2.1",
47
47
  "@rollup/plugin-typescript": "^11.1.3",
48
- "@rolster/styles-foundations": "^1.0.9",
48
+ "@rolster/styles-foundations": "^1.0.11",
49
49
  "@rolster/typescript-types": "^4.0.0",
50
50
  "@types/node-sass": "^4.11.4",
51
51
  "@types/react": "^18.0.28",