@rolster/react-components 1.5.4 → 1.5.6

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.
@@ -109,9 +109,9 @@
109
109
  line-height: initial;
110
110
  width: auto;
111
111
  margin: auto 0rem;
112
- font-size: 0.825rem;
112
+ font-size: var(--button-font-size);
113
113
  font-weight: var(--font-weight-bold);
114
- letter-spacing: 0.825px;
114
+ letter-spacing: var(--button-letter-spacing);
115
115
  text-transform: var(--rls-button-label-text-transform);
116
116
  }
117
117
  .rls-button__label a {
@@ -11,7 +11,7 @@
11
11
  user-select: none;
12
12
  cursor: default;
13
13
  background: transparent;
14
- color: var(--rls-buttonaction-color);
14
+ color: var(--rls-action-color);
15
15
  }
16
16
  .rls-button-action::before {
17
17
  position: absolute;
@@ -23,7 +23,7 @@
23
23
  visibility: hidden;
24
24
  border-radius: 50%;
25
25
  transform: scale(0);
26
- background: var(--rls-buttonaction-ripple-color);
26
+ background: var(--rls-action-ripple-color);
27
27
  padding-top: calc(120% - var(--sizing-8));
28
28
  padding-left: calc(120% - var(--sizing-8));
29
29
  margin-top: calc(-60% + var(--sizing-4));
@@ -41,12 +41,12 @@
41
41
  top: 50%;
42
42
  left: 50%;
43
43
  opacity: 0.24;
44
- width: var(--rls-buttonaction-ripple-dimension);
45
- height: var(--rls-buttonaction-ripple-dimension);
46
- margin-top: var(--rls-buttonaction-ripple-position);
47
- margin-left: var(--rls-buttonaction-ripple-position);
44
+ width: var(--rls-action-ripple-dimension);
45
+ height: var(--rls-action-ripple-dimension);
46
+ margin-top: var(--rls-action-ripple-position);
47
+ margin-left: var(--rls-action-ripple-position);
48
48
  border-radius: 50%;
49
- background: var(--rls-buttonaction-ripple-color);
49
+ background: var(--rls-action-ripple-color);
50
50
  transform: scale(0);
51
51
  transition: transform 160ms 0ms var(--sharp-curve);
52
52
  }
@@ -1,7 +1,7 @@
1
1
  .rls-password-field {
2
2
  --rls-input-parent-padding: var(--sizing-6) var(--sizing-8);
3
- --rls-buttonaction-ripple-dimension: var(--sizing-32);
4
- --rls-buttonaction-ripple-position: -1rem;
3
+ --rls-action-ripple-dimension: var(--sizing-32);
4
+ --rls-action-ripple-position: -1rem;
5
5
  position: relative;
6
6
  float: left;
7
7
  width: 100%;
@@ -1,7 +1,11 @@
1
1
  .rls-card {
2
2
  background: var(--background-theme-500);
3
3
  border-radius: var(--sizing-8);
4
+ box-shadow: var(--shadow-center-light-8);
5
+ }
6
+ .rls-card--outline {
4
7
  border: var(--border-1-theme-100);
8
+ box-shadow: none;
5
9
  }
6
10
  .rls-card__content {
7
11
  display: flex;
@@ -1,3 +1,7 @@
1
1
  import { RlsComponent } from '../../definitions';
2
2
  import './Card.css';
3
- export declare function RlsCard({ children, rlsTheme }: RlsComponent): import("react/jsx-runtime").JSX.Element;
3
+ interface Card extends RlsComponent {
4
+ outline?: boolean;
5
+ }
6
+ export declare function RlsCard({ children, outline, rlsTheme }: Card): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { renderClassStatus } from '../../../utils/css';
2
3
  import './Card.css';
3
- export function RlsCard({ children, rlsTheme }) {
4
- return (_jsx("div", { className: "rls-card", "rls-theme": rlsTheme, children: _jsx("div", { className: "rls-card__content", children: children }) }));
4
+ export function RlsCard({ children, outline, rlsTheme }) {
5
+ return (_jsx("div", { className: renderClassStatus('rls-card', { outline }), "rls-theme": rlsTheme, children: _jsx("div", { className: "rls-card__content", children: children }) }));
5
6
  }
6
7
  //# sourceMappingURL=Card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../../src/components/organisms/Card/Card.tsx"],"names":[],"mappings":";AACA,OAAO,YAAY,CAAC;AAEpB,MAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAgB;IAC1D,OAAO,CACL,cAAK,SAAS,EAAC,UAAU,eAAY,QAAQ,YAC3C,cAAK,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAO,GAC/C,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../../src/components/organisms/Card/Card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,YAAY,CAAC;AAMpB,MAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAQ;IAC3D,OAAO,CACL,cACE,SAAS,EAAE,iBAAiB,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,eAC1C,QAAQ,YAEnB,cAAK,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAO,GAC/C,CACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolster/react-components",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
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.1",
48
+ "@rolster/styles-foundations": "^1.0.9",
49
49
  "@rolster/typescript-types": "^4.0.0",
50
50
  "@types/node-sass": "^4.11.4",
51
51
  "@types/react": "^18.0.28",