orcs-design-system 2.1.11 → 2.1.13

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.
@@ -294,7 +294,6 @@ export var textButtonActionsMenu = function textButtonActionsMenu() {
294
294
  }, /*#__PURE__*/React.createElement(ActionsMenuBody, {
295
295
  toggleState: toggleState,
296
296
  onToggle: onToggle,
297
- direction: "right",
298
297
  menuTopPosition: "30px",
299
298
  menuLeftPosition: "0",
300
299
  menuWidth: "120px",
@@ -326,7 +325,6 @@ export var keepInViewExample = function keepInViewExample() {
326
325
  width: "100%",
327
326
  flexDirection: "column"
328
327
  }, /*#__PURE__*/React.createElement(ActionsMenu, {
329
- direction: "right",
330
328
  mb: "r"
331
329
  }, /*#__PURE__*/React.createElement(ActionsMenuItem, {
332
330
  href: "https://orchestrated.io/"
@@ -336,7 +334,6 @@ export var keepInViewExample = function keepInViewExample() {
336
334
  }, "Edit")), /*#__PURE__*/React.createElement(ActionsMenuItem, {
337
335
  onClick: action("clicked")
338
336
  }, "Remove")), /*#__PURE__*/React.createElement(ActionsMenu, {
339
- direction: "right",
340
337
  menuTopPosition: "30px",
341
338
  menuLeftPosition: "0",
342
339
  menuWidth: "220px",
@@ -46,7 +46,7 @@ var Icon = styled.div.withConfig({
46
46
  var Menu = styled.div.withConfig({
47
47
  displayName: "ActionsMenu__Menu",
48
48
  componentId: "yvbni2-3"
49
- })(["display:inline-block;position:absolute;left:", ";right:", ";top:", ";width:", ";z-index:5;background-color:", ";border-radius:", ";transform:scale(0);opacity:0;pointer-events:none;transform-origin:", ";transition:all 300ms;transition-timing-function:cubic-bezier(0,1.4,1,1);", ";"], function (props) {
49
+ })(["display:block;position:absolute;left:", ";right:", ";top:", ";width:", ";z-index:5;background-color:", ";border-radius:", ";transform:scale(0);opacity:0;pointer-events:none;transform-origin:", ";transition:all 300ms;transition-timing-function:cubic-bezier(0,1.4,1,1);", ";"], function (props) {
50
50
  return props.menuLeftPosition ? props.menuLeftPosition : props.direction == "left" ? "auto" : "34px";
51
51
  }, function (props) {
52
52
  return props.menuRightPosition ? props.menuRightPosition : props.direction == "left" ? "34px" : "auto";
@@ -94,7 +94,7 @@ export var ActionsMenuItem = styled(function (props) {
94
94
  }).withConfig({
95
95
  displayName: "ActionsMenu__ActionsMenuItem",
96
96
  componentId: "yvbni2-5"
97
- })(["white-space:nowrap;display:block;width:100%;text-align:left;cursor:pointer;margin:0;padding:8px;appearance:none;background-color:", ";border:none;border-bottom:solid 1px ", ";border-radius:0;color:", ";font-size:", ";line-height:", ";font-family:", ";font-weight:", ";text-decoration:none;transition:", ";&:hover,&:focus{outline:0;background-color:", ";}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border:0;border-radius:0 0 ", " ", ";}"], function (props) {
97
+ })(["white-space:nowrap;display:block;width:100%;text-align:left;cursor:pointer;margin:0;padding:8px;appearance:none;background-color:", ";border:none;border-bottom:solid 1px ", ";border-radius:0;color:", ";font-size:", ";line-height:", ";font-family:", ";font-weight:", ";text-decoration:none;transition:", ";&:hover,&:focus{outline:0;background-color:", ";}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border:0;border-radius:0 0 ", " ", ";}&:only-child{border-radius:", ";}"], function (props) {
98
98
  return props.selected ? themeGet("colors.successDark")(props) : "transparent";
99
99
  }, function (props) {
100
100
  return themeGet("colors.greyDarkest")(props);
@@ -120,6 +120,8 @@ export var ActionsMenuItem = styled(function (props) {
120
120
  return themeGet("radii.2")(props);
121
121
  }, function (props) {
122
122
  return themeGet("radii.2")(props);
123
+ }, function (props) {
124
+ return themeGet("radii.2")(props);
123
125
  });
124
126
  export var ActionsMenuBody = function ActionsMenuBody(_ref) {
125
127
  var theme = _ref.theme,
@@ -56,7 +56,7 @@ var StyledButton = styled("button").withConfig({
56
56
  },
57
57
  "&:focus": {
58
58
  outline: "0",
59
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props)
59
+ boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primaryDarker")(props)
60
60
  }
61
61
  });
62
62
  }, function (props) {
@@ -73,7 +73,7 @@ var StyledButton = styled("button").withConfig({
73
73
  },
74
74
  "&:focus": {
75
75
  outline: "0",
76
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.success30")(props)
76
+ boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.successDarker")(props)
77
77
  }
78
78
  },
79
79
  successAlternate: {
@@ -86,7 +86,7 @@ var StyledButton = styled("button").withConfig({
86
86
  },
87
87
  "&:focus": {
88
88
  outline: "0",
89
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.success30")(props)
89
+ boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.successLight")(props)
90
90
  }
91
91
  },
92
92
  danger: {
@@ -99,7 +99,7 @@ var StyledButton = styled("button").withConfig({
99
99
  },
100
100
  "&:focus": {
101
101
  outline: "0",
102
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.danger30")(props)
102
+ boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.dangerDarker")(props)
103
103
  }
104
104
  },
105
105
  dangerAlternate: {
@@ -112,7 +112,7 @@ var StyledButton = styled("button").withConfig({
112
112
  },
113
113
  "&:focus": {
114
114
  outline: "0",
115
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.danger30")(props)
115
+ boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.dangerLight")(props)
116
116
  }
117
117
  },
118
118
  disabled: {
@@ -136,7 +136,7 @@ var StyledButton = styled("button").withConfig({
136
136
  },
137
137
  "&:focus": {
138
138
  outline: "0",
139
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary20")(props)
139
+ boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primaryLight")(props)
140
140
  }
141
141
  }
142
142
  }
@@ -31,7 +31,7 @@ var Control = styled.input.attrs({
31
31
  displayName: "Checkbox__Control",
32
32
  componentId: "p4d19b-2"
33
33
  })(["opacity:0;position:absolute;margin:0;z-index:-1;width:0;height:0;overflow:hidden;pointer-events:none;&:focus{+ div{border-radius:2px;box-shadow:", ";}}+ div{transition:", ";&:before{background-color:", ";}> div{color:", ";}}:focus + div div:after{opacity:0.2;}:checked{+ div div:before{box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0px 0 20px,0px 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px;.animate&{animation:", " 300ms forwards ease-out;}}}&:not(:checked) + div div:before{.animate&{animation:", " 300ms forwards ease-out;}}"], function (props) {
34
- return props.colour ? themeGet("shadows.thinOutline")(props) + " " + themeGet("colors." + props.colour + "30")(props) : themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.black20")(props);
34
+ return props.colour ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors." + props.colour + "30")(props) : themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.black20")(props);
35
35
  }, themeGet("transition.transitionDefault"), function (props) {
36
36
  return props.colour ? themeGet("colors.".concat(props.colour))(props) : themeGet("colors.greyDarker")(props);
37
37
  }, function (props) {
@@ -57,7 +57,7 @@ var RadioButtonControl = styled.input.attrs({
57
57
  transform: "scale(1)"
58
58
  },
59
59
  "&:focus + div": {
60
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.black30")(props)
60
+ boxShadow: themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.black30")(props)
61
61
  }
62
62
  });
63
63
  }, function (props) {
@@ -66,27 +66,27 @@ var RadioButtonControl = styled.input.attrs({
66
66
  "default": {},
67
67
  white: {
68
68
  "&:focus + div": {
69
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.white30")(props)
69
+ boxShadow: themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.white30")(props)
70
70
  }
71
71
  },
72
72
  primary: {
73
73
  "&:focus + div": {
74
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props)
74
+ boxShadow: themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.primary30")(props)
75
75
  }
76
76
  },
77
77
  success: {
78
78
  "&:focus + div": {
79
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.success30")(props)
79
+ boxShadow: themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.success30")(props)
80
80
  }
81
81
  },
82
82
  warning: {
83
83
  "&:focus + div": {
84
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.warning30")(props)
84
+ boxShadow: themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.warning30")(props)
85
85
  }
86
86
  },
87
87
  danger: {
88
88
  "&:focus + div": {
89
- boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.danger30")(props)
89
+ boxShadow: themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.danger30")(props)
90
90
  }
91
91
  }
92
92
  }
@@ -38,24 +38,19 @@ export var TabItem = styled("div").withConfig({
38
38
  textDecoration: "none",
39
39
  textAlign: "center",
40
40
  textTransform: "uppercase",
41
- button: {
42
- marginLeft: 2
43
- }
44
- },
45
- "&:hover": {
46
- a: {
47
- cursor: "pointer",
41
+ cursor: "pointer",
42
+ "&:hover": {
48
43
  bg: themeGet("colors.greyLight")(props),
49
44
  color: themeGet("colors.greyDarker")(props),
50
45
  outline: "0"
51
- }
52
- },
53
- "&:focus": {
54
- a: {
55
- cursor: "pointer",
56
- bg: themeGet("colors.greyLight")(props),
46
+ },
47
+ "&:focus": {
57
48
  color: themeGet("colors.greyDarker")(props),
58
- outline: "0"
49
+ outline: "0",
50
+ boxShadow: themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.grey")(props)
51
+ },
52
+ button: {
53
+ marginLeft: 2
59
54
  }
60
55
  },
61
56
  "&.active": {
@@ -12,7 +12,7 @@ var TagWrapper = styled.div.withConfig({
12
12
  var TagValue = styled.button.withConfig({
13
13
  displayName: "Tag__TagValue",
14
14
  componentId: "sc-1dh2aa8-1"
15
- })(["-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;display:flex;align-items:center;flex-wrap:nowrap;font-size:", ";font-weight:", ";white-space:nowrap;position:relative;z-index:1;transition:", ";cursor:", ";border-radius:", ";border:solid 1px ", ";padding:", ";background-color:", ";color:", ";", " &:focus{outline:0;z-index:2;box-shadow:", ";}"], function (props) {
15
+ })(["-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;display:flex;align-items:center;flex-wrap:nowrap;font-size:", ";font-weight:", ";white-space:nowrap;position:relative;z-index:1;transition:", ";cursor:", ";border-radius:", ";border:solid 1px ", ";padding:", ";background-color:", ";color:", ";", ""], function (props) {
16
16
  return themeGet("fontSizes.1")(props);
17
17
  }, function (props) {
18
18
  return themeGet("fontWeights.2")(props);
@@ -31,15 +31,15 @@ var TagValue = styled.button.withConfig({
31
31
  }, function (props) {
32
32
  return props.selected ? themeGet("colors.white")(props) : props.disabled ? themeGet("colors.greyDarker")(props) : themeGet("colors.primary")(props);
33
33
  }, function (props) {
34
- return props.disabled ? css([""]) : css(["&:hover{border:solid 1px ", ";color:", ";background-color:", ";div{color:", ";}}"], themeGet("colors.primaryDark")(props), function (props) {
34
+ return props.disabled ? css([""]) : css(["&:hover,&:focus{outline:0;border:solid 1px ", ";color:", ";background-color:", ";div{color:", ";}div[class*=\"TagType\"]{background-color:", ";}}"], themeGet("colors.primaryDark")(props), function (props) {
35
35
  return props.selected ? themeGet("colors.white")(props) : themeGet("colors.primaryDark")(props);
36
36
  }, function (props) {
37
- return props.selected ? themeGet("colors.primaryDark")(props) : themeGet("colors.white")(props);
37
+ return props.selected ? themeGet("colors.primaryDark")(props) : themeGet("colors.primaryLightest")(props);
38
38
  }, function (props) {
39
39
  return props.selected ? themeGet("colors.white")(props) : themeGet("colors.primaryDark")(props);
40
+ }, function (props) {
41
+ return props.selected ? themeGet("colors.primaryDarker")(props) : themeGet("colors.primaryLighter")(props);
40
42
  });
41
- }, function (props) {
42
- return themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props);
43
43
  });
44
44
  var TagValueText = styled.div.withConfig({
45
45
  displayName: "Tag__TagValueText",
@@ -48,24 +48,18 @@ var TagValueText = styled.div.withConfig({
48
48
  var TagEdit = styled(TagValue).withConfig({
49
49
  displayName: "Tag__TagEdit",
50
50
  componentId: "sc-1dh2aa8-3"
51
- })(["border-radius:", ";padding:", ";&:focus{z-index:2;box-shadow:-0.5px 0 0 3.5px ", ";}", ""], function (props) {
51
+ })(["border-radius:", ";padding:", ";&:focus{z-index:2;}", ""], function (props) {
52
52
  return props.showRemove ? "0" : "0 15px 15px 0";
53
53
  }, function (props) {
54
54
  return props.showRemove ? "2px 7px 5px 7px" : "2px 8px 5px 8px";
55
55
  }, function (props) {
56
- return themeGet("colors.primary30")(props);
57
- }, function (props) {
58
- return props.selected ? css(["border-left:solid 1px ", ";&:hover{border-left:solid 1px ", ";}&:focus{box-shadow:", ";}"], themeGet("colors.primaryDark")(props), themeGet("colors.primaryDark")(props), function (props) {
59
- return themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props);
60
- }) : css(["border-left:0;&:hover{border-left:0;}"]);
56
+ return props.selected ? css(["border-left:solid 1px ", ";&:hover{border-left:solid 1px ", ";}"], themeGet("colors.primaryDark")(props), themeGet("colors.primaryDark")(props)) : css(["border-left:0;&:hover,&:focus{background-color:", ";border-left:0;}"], themeGet("colors.primaryLightest")(props));
61
57
  });
62
58
  var TagRemove = styled(TagValue).withConfig({
63
59
  displayName: "Tag__TagRemove",
64
60
  componentId: "sc-1dh2aa8-4"
65
- })(["border-radius:0 15px 15px 0;padding:2px 10px 5px 9px;&:focus{z-index:2;box-shadow:-0.5px 0 0 3.5px ", ";}", ""], function (props) {
66
- return themeGet("colors.primary30")(props);
67
- }, function (props) {
68
- return props.selected ? css(["border-left:solid 1px ", ";&:hover{border-left:solid 1px ", ";}&:focus{box-shadow:", ";}"], themeGet("colors.primaryDark")(props), themeGet("colors.primaryDark")(props), themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props)) : css(["border-left:0;&:hover{border-left:0;}"]);
61
+ })(["border-radius:0 15px 15px 0;padding:2px 10px 5px 9px;&:focus{z-index:2;}", ""], function (props) {
62
+ return props.selected ? css(["border-left:solid 1px ", ";&:hover{border-left:solid 1px ", ";}"], themeGet("colors.primaryDark")(props), themeGet("colors.primaryDark")(props)) : css(["border-left:0;&:hover,&:focus{background-color:", ";border-left:0;}"], themeGet("colors.primaryLightest")(props));
69
63
  });
70
64
  var TagType = styled.div.withConfig({
71
65
  displayName: "Tag__TagType",
@@ -49,7 +49,7 @@ var Input = styled("textarea").withConfig({
49
49
  },
50
50
  "&:focus": {
51
51
  outline: "0",
52
- boxShadow: props.invalid ? themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.danger30")(props) : props.valid ? themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.success30")(props) : themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props),
52
+ boxShadow: props.invalid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.danger30")(props) : props.valid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.success30")(props) : themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.primary30")(props),
53
53
  borderColor: props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.primary")(props)
54
54
  }
55
55
  });
@@ -65,7 +65,7 @@ var InputStyle = css(["display:block;cursor:text;-moz-appearance:none;-webkit-ap
65
65
  }, function (props) {
66
66
  return props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.primary")(props);
67
67
  }, function (props) {
68
- return props.invalid ? themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.danger30")(props) : props.valid ? themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.success30")(props) : themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props);
68
+ return props.invalid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.danger30")(props) : props.valid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.success30")(props) : themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.primary30")(props);
69
69
  }, function (props) {
70
70
  return props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.primary")(props);
71
71
  }, function (props) {
@@ -201,7 +201,8 @@ export var borderWidths = [0, "1px", "2px", "3px"]; // SHADOWS
201
201
 
202
202
  export var shadows = {
203
203
  boxDefault: "0 2px 5px 0 ".concat(colors.black10),
204
- thinOutline: "0 0 0 3px"
204
+ thinOutline: "0 0 0 1px",
205
+ thickOutline: "0 0 0 3px"
205
206
  }; // ANIMATION
206
207
 
207
208
  export var transition = {
package/es/systemtheme.js CHANGED
@@ -200,7 +200,8 @@ export var borderWidths = [0, "1px", "2px", "3px"]; // SHADOWS
200
200
 
201
201
  export var shadows = {
202
202
  boxDefault: "0 2px 5px 0 ".concat(colors.black10),
203
- thinOutline: "0 0 0 3px"
203
+ thinOutline: "0 0 0 1px",
204
+ thickOutline: "0 0 0 3px"
204
205
  }; // ANIMATION
205
206
 
206
207
  export var transition = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "description": "Orchestrated's Design System, aka: ORCS",
5
5
  "keywords": [
6
6
  "design",