linear-react-components-ui 1.0.10-beta.26 → 1.0.10-beta.27

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.
@@ -0,0 +1,59 @@
1
+ @import "colors.scss";
2
+ @import "commons.scss";
3
+
4
+ p.shortcut-description {
5
+ margin-bottom: .3rem;
6
+ color: $font-color-default;
7
+ font-family: 'Roboto', sans-serif;
8
+ font-size: 14px;
9
+ font-weight: 400;
10
+ overflow-wrap: break-word;
11
+ }
12
+
13
+ .shortcut-component {
14
+ user-select: none;
15
+ display: inline-block;
16
+ padding: 0.1rem 0.3rem;
17
+ color: $font-color-default;
18
+ vertical-align: middle;
19
+ background-color: $default-color;
20
+ border: solid 1px $default-border-color;
21
+ border-radius: 3px;
22
+ box-shadow: inset 0 -1px 0 $default-border-color;
23
+ font-size: .9rem;
24
+
25
+ &.-danger {
26
+ background-color: $danger-color;
27
+ color: $font-color-second;
28
+ box-shadow: inset 0 -1px 0 $danger-actived-color;
29
+ border-color: $danger-color;
30
+ }
31
+
32
+ &.-primary {
33
+ background-color: $primary-color;
34
+ color: $font-color-second;
35
+ box-shadow: inset 0 -1px 0 $primary-actived-color;
36
+ border-color: $primary-border-color;
37
+ }
38
+
39
+ &.-warning {
40
+ background-color: $warning-color;
41
+ color: $font-color-second;
42
+ box-shadow: inset 0 -1px 0 $warning-actived-color;
43
+ border-color: $warning-color;
44
+ }
45
+
46
+ &.-success {
47
+ background-color: $success-color;
48
+ color: $font-color-second;
49
+ box-shadow: inset 0 -1px 0 $success-actived-color;
50
+ border-color: $success-color;
51
+ }
52
+
53
+ &.-info {
54
+ background-color: $info-color;
55
+ color: $font-color-second;
56
+ box-shadow: inset 0 -1px 0 $info-actived-color;
57
+ border-color: $info-color;
58
+ }
59
+ }
@@ -0,0 +1,7 @@
1
+ import { IShortcutsProps } from './types.js';
2
+ import 'react';
3
+ import '../@types/ColorStyles.js';
4
+
5
+ declare const Shortcuts: ({ type, style, styleShortcut, shortcut, description }: IShortcutsProps) => JSX.Element;
6
+
7
+ export { Shortcuts as default };
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ require("../assets/styles/shortcuts.scss");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ var Shortcuts = function Shortcuts(_ref) {
11
+ var type = _ref.type,
12
+ style = _ref.style,
13
+ styleShortcut = _ref.styleShortcut,
14
+ shortcut = _ref.shortcut,
15
+ description = _ref.description;
16
+ return /*#__PURE__*/_react.default.createElement("p", {
17
+ "data-testid": "description",
18
+ className: "shortcut-description",
19
+ style: style
20
+ }, /*#__PURE__*/_react.default.createElement("kbd", {
21
+ "data-testid": "shortcut",
22
+ className: "shortcut-component ".concat(type && "-".concat(type)),
23
+ style: styleShortcut
24
+ }, shortcut), ":\xA0", description);
25
+ };
26
+ var _default = Shortcuts;
27
+ exports.default = _default;
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from 'react';
2
+ import { ColorStyles } from '../@types/ColorStyles.js';
3
+
4
+ interface IShortcutsProps {
5
+ type?: ColorStyles;
6
+ style?: CSSProperties;
7
+ styleShortcut?: CSSProperties;
8
+ shortcut: string;
9
+ description: string;
10
+ }
11
+
12
+ export { IShortcutsProps };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.0.10-beta.26",
3
+ "version": "1.0.10-beta.27",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",