orcs-design-system 3.2.1 → 3.2.2

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.
@@ -154,18 +154,25 @@ var StyledButton = styled("button").withConfig({
154
154
  displayName: "Button__StyledButton",
155
155
  componentId: "sc-10uojnk-0"
156
156
  })(["", ""], buttonStyles);
157
+ var linkStyles = css(["width:", ";display:", ";align-items:", ";"], function (props) {
158
+ return props.width || "fit-content";
159
+ }, function (props) {
160
+ return props.height || props.width ? "flex" : props.display || "inline-block";
161
+ }, function (props) {
162
+ return props.alignItems || "center";
163
+ });
157
164
  var StyledButtonLink = styled.a.withConfig({
158
165
  shouldForwardProp: shouldForwardProp
159
166
  }).attrs(attrs).withConfig({
160
167
  displayName: "Button__StyledButtonLink",
161
168
  componentId: "sc-10uojnk-1"
162
- })(["", " width:fit-content;display:inline-block;"], buttonStyles);
169
+ })(["", " ", ""], buttonStyles, linkStyles);
163
170
  var StyledReactButtonLink = styled(Link).withConfig({
164
171
  shouldForwardProp: shouldForwardProp
165
172
  }).attrs(attrs).withConfig({
166
173
  displayName: "Button__StyledReactButtonLink",
167
174
  componentId: "sc-10uojnk-2"
168
- })(["", " width:fit-content;display:inline-block;"], buttonStyles);
175
+ })(["", " ", ""], buttonStyles, linkStyles);
169
176
  var buttonPropTypes = {
170
177
  /** Large button */
171
178
  large: PropTypes.bool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "engines": {
5
5
  "node": "20.12.2"
6
6
  },