@decisiv/ui-components 2.0.1-alpha.154 → 2.0.1-alpha.156

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.commonUIColors = exports.commonUIColorKeys = exports.statusColors = exports.viColors = exports.statusColorKeys = exports.viColorKeys = void 0;
6
+ exports.commonUIThreeShadeColors = exports.commonUIColors = exports.commonUIColorKeys = exports.statusColors = exports.viColors = exports.statusColorKeys = exports.viColorKeys = void 0;
7
7
 
8
8
  var _color = _interopRequireDefault(require("@decisiv/design-tokens/lib/color"));
9
9
 
@@ -42,4 +42,8 @@ exports.commonUIColorKeys = commonUIColorKeys;
42
42
 
43
43
  var commonUIColors = _objectSpread({}, statusColors, {}, viColors);
44
44
 
45
- exports.commonUIColors = commonUIColors;
45
+ exports.commonUIColors = commonUIColors;
46
+
47
+ var commonUIThreeShadeColors = _objectSpread({}, status, {}, visualInterest);
48
+
49
+ exports.commonUIThreeShadeColors = commonUIThreeShadeColors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decisiv/ui-components",
3
- "version": "2.0.1-alpha.154+a36b70f",
3
+ "version": "2.0.1-alpha.156+054b3cf",
4
4
  "description": "Decisiv's design system React components",
5
5
  "author": "Decisiv UI Development Team",
6
6
  "license": "MIT",
@@ -71,5 +71,5 @@
71
71
  "access": "public"
72
72
  },
73
73
  "private": false,
74
- "gitHead": "a36b70fc214170234472e5d06f14a8824d21317c"
74
+ "gitHead": "054b3cf7e77d0f7d667b90edcaaabe7640195b62"
75
75
  }
@@ -1,5 +0,0 @@
1
- import { ActionButtonContainerProps, ActionButtonExtraProps } from './types';
2
- declare const ActionButton: import("styled-components").StyledComponent<"button", any, ActionButtonExtraProps, never>;
3
- export declare const ActionButtonContainer: import("styled-components").StyledComponent<"div", any, ActionButtonContainerProps, never>;
4
- export default ActionButton;
5
- //# sourceMappingURL=ActionButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/ActionButton.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAwB7E,QAAA,MAAM,YAAY,2FAkBjB,CAAC;AAEF,eAAO,MAAM,qBAAqB,4FAiBjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.ActionButtonContainer = void 0;
7
-
8
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
-
10
- var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
11
-
12
- var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
13
-
14
- var _designTokens = _interopRequireDefault(require("@decisiv/design-tokens"));
15
-
16
- var _BaseButton = _interopRequireDefault(require("../../atoms/BaseButton"));
17
-
18
- var _focusRingWithColor = _interopRequireDefault(require("../../utils/focusRingWithColor"));
19
-
20
- var _styleModifiers = require("../../utils/styleModifiers");
21
-
22
- var _constants = require("./constants");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
26
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
27
-
28
- var _designTokens$color = _designTokens.default.color,
29
- baseColors = _designTokens$color.base,
30
- interactionColors = _designTokens$color.interaction,
31
- statusColors = _designTokens$color.status,
32
- opacityColors = _designTokens$color.opacity;
33
- var actionButtonColors = {
34
- normal: (0, _toColorString.default)(interactionColors.indianOcean),
35
- danger: (0, _toColorString.default)(statusColors.danger.medium)
36
- };
37
- var borderRadius = (0, _styledComponents.css)(["border-radius:0 ", " ", " 0;"], (0, _rem.default)(10), (0, _rem.default)(10));
38
-
39
- var actionButtonColor = function actionButtonColor(_ref) {
40
- var actionIntent = _ref.actionIntent;
41
- return actionButtonColors[actionIntent !== 'danger' ? 'normal' : 'danger'];
42
- };
43
-
44
- var ActionButton = (0, _styledComponents.default)(_BaseButton.default).withConfig({
45
- displayName: "ActionButton",
46
- componentId: "jxjmgf-0"
47
- })(["align-items:center;appearance:none;background-color:", ";border:0;color:", ";display:flex;height:", ";justify-content:flex-start;padding:0 0 0 ", ";width:", ";outline:none;", " &:hover:not(:active){color:", ";}"], (0, _toColorString.default)(baseColors.snowWhite), (0, _toColorString.default)(interactionColors.pacificOcean), (0, _rem.default)(18), (0, _rem.default)(4), (0, _rem.default)(_constants.ACTION_BUTTON_WIDTH), borderRadius, actionButtonColor);
48
-
49
- var ActionButtonContainer = _styledComponents.default.div.withConfig({
50
- displayName: "ActionButton__ActionButtonContainer",
51
- componentId: "jxjmgf-1"
52
- })(["border:1px solid ", ";margin-right:-1px;", ";", ";"], (0, _toColorString.default)(opacityColors.charcoal15), borderRadius, (0, _styleModifiers.when)('isFocused', (0, _styledComponents.css)(["border-color:", ";", "{", "}"], (0, _toColorString.default)(interactionColors.pacificOcean), ActionButton, (0, _focusRingWithColor.default)(interactionColors.pacificOcean40))));
53
-
54
- exports.ActionButtonContainer = ActionButtonContainer;
55
- var _default = ActionButton;
56
- exports.default = _default;