@hashicorp/design-system-components 0.4.0 → 0.5.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#127](https://github.com/hashicorp/design-system/pull/127) [`fa13190f`](https://github.com/hashicorp/design-system/commit/fa13190f1058f172898221aa1e1913965bfa53e9) Thanks [@didoo](https://github.com/didoo)! - removed the “isDisabled“ prop from the “Button” component; added instructions for developers to manually add it themselves if needed.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#125](https://github.com/hashicorp/design-system/pull/125) [`b0ff180c`](https://github.com/hashicorp/design-system/commit/b0ff180c85ff920e704d46c9b823b3fa261b1b1e) Thanks [@didoo](https://github.com/didoo)! - updated border radius of “Badge” from 4px to 5px
12
+
13
+ * [#126](https://github.com/hashicorp/design-system/pull/126) [`7b639915`](https://github.com/hashicorp/design-system/commit/7b63991586b242973bad45c6108c447453772d0a) Thanks [@didoo](https://github.com/didoo)! - updated the internal padding of the “Button” component to match design specifications
14
+
3
15
  ## 0.4.0
4
16
 
5
17
  ### Minor Changes
@@ -1,10 +1,4 @@
1
- <button
2
- class={{this.classNames}}
3
- ...attributes
4
- aria-label={{if this.isIconOnly this.text null}}
5
- type={{this.type}}
6
- disabled={{if this.isDisabled "disabled" null}}
7
- >
1
+ <button class={{this.classNames}} ...attributes aria-label={{if this.isIconOnly this.text null}} type={{this.type}}>
8
2
  {{#if this.isIconOnly}}
9
3
  <div class="hds-button__icon">
10
4
  <FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
@@ -155,16 +155,6 @@ export default class HdsButtonIndexComponent extends Component {
155
155
  return this.args.isFullWidth ?? false;
156
156
  }
157
157
 
158
- /**
159
- * @param isDisabled
160
- * @type {boolean}
161
- * @default null
162
- * @description Sets the native HTML attribute `disabled` on the button element. Default is null (doesn't render the attribute).
163
- */
164
- get isDisabled() {
165
- return this.args.isDisabled ?? null;
166
- }
167
-
168
158
  /**
169
159
  * Get the class names to apply to the component.
170
160
  * @method Button#classNames
@@ -14,7 +14,7 @@
14
14
 
15
15
  .hds-badge {
16
16
  align-items: center;
17
- border-radius: 4px;
17
+ border-radius: 5px;
18
18
  border: $hds-badge-border-width solid transparent;
19
19
  box-sizing: border-box;
20
20
  display: inline-flex;
@@ -99,23 +99,23 @@ $hds-button-focus-border-width: 3px;
99
99
  $size-props: (
100
100
  "small": (
101
101
  "font-size": 0.8125rem, // 13px;
102
- "line-height": 1,
102
+ "line-height": 0.875rem, // 14px - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants)
103
103
  "min-height": 1.75rem, // 28px
104
- "padding": 0 1rem, // 0 16px
104
+ "padding": 0.375rem 0.6875rem, // 6px 11px - here we're taking into account the 1px border
105
105
  "icon-size": 0.75rem, // 12px
106
106
  ),
107
107
  "medium": (
108
108
  "font-size": 0.875rem, // 14px
109
109
  "line-height": 1rem,// 16px
110
110
  "min-height": 2.25rem, // 36px
111
- "padding": 0.625rem 1rem, // 10px 16px
111
+ "padding": 0.5625rem 0.9375rem, // 9px 15px - here we're taking into account the 1px border
112
112
  "icon-size": 1rem, // 16px
113
113
  ),
114
114
  "large": (
115
115
  "font-size": 1rem, //16px
116
116
  "line-height": 1.5rem, // 24px
117
117
  "min-height": 3rem, // 48px
118
- "padding": 0.75rem 1.25rem, // 12px 20px
118
+ "padding": 0.6875rem 1.1875rem, // 11px 19px - here we're taking into account the 1px border
119
119
  "icon-size": 1.5rem, // 24px
120
120
  )
121
121
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "HashiCorp Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",