@hashicorp/design-system-components 1.0.4 → 1.2.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/.stylelintignore +26 -0
- package/CHANGELOG.md +31 -0
- package/addon/components/hds/badge/index.hbs +1 -1
- package/addon/components/hds/badge/index.js +3 -3
- package/addon/components/hds/badge-count/index.js +3 -3
- package/addon/components/hds/breadcrumb/item.js +1 -1
- package/addon/components/hds/card/container.js +5 -5
- package/addon/components/hds/dropdown/toggle/button.hbs +1 -0
- package/addon/components/hds/form/field/index.js +1 -1
- package/addon/components/hds/form/radio-card/description.hbs +1 -0
- package/addon/components/hds/form/radio-card/group.hbs +26 -0
- package/addon/components/hds/form/radio-card/index.hbs +20 -0
- package/addon/components/hds/form/radio-card/index.js +90 -0
- package/addon/components/hds/form/radio-card/label.hbs +1 -0
- package/addon/components/hds/form/text-input/base.js +1 -1
- package/addon/components/hds/icon-tile/index.hbs +3 -3
- package/addon/components/hds/icon-tile/index.js +3 -3
- package/addon/components/hds/stepper/step/indicator.js +1 -1
- package/addon/components/hds/stepper/task/indicator.js +1 -1
- package/app/components/hds/form/radio-card/description.js +1 -0
- package/app/components/hds/form/radio-card/group.js +1 -0
- package/app/components/hds/form/radio-card/index.js +1 -0
- package/app/components/hds/form/radio-card/label.js +1 -0
- package/app/styles/@hashicorp/design-system-components.scss +12 -12
- package/app/styles/@hashicorp/design-system-power-select-overrides.scss +225 -0
- package/app/styles/components/alert.scss +39 -37
- package/app/styles/components/avatar.scss +6 -6
- package/app/styles/components/badge-count.scss +19 -20
- package/app/styles/components/badge.scss +21 -22
- package/app/styles/components/breadcrumb.scss +123 -123
- package/app/styles/components/button-set.scss +5 -5
- package/app/styles/components/button.scss +56 -49
- package/app/styles/components/card/container.scss +5 -4
- package/app/styles/components/card/index.scss +1 -1
- package/app/styles/components/dropdown.scss +76 -66
- package/app/styles/components/empty-state.scss +8 -5
- package/app/styles/components/form/checkbox.scss +11 -8
- package/app/styles/components/form/error.scss +3 -3
- package/app/styles/components/form/field.scss +5 -4
- package/app/styles/components/form/group.scss +3 -2
- package/app/styles/components/form/helper-text.scss +1 -1
- package/app/styles/components/form/index.scss +1 -1
- package/app/styles/components/form/label.scss +2 -2
- package/app/styles/components/form/legend.scss +1 -1
- package/app/styles/components/form/radio-card.scss +146 -0
- package/app/styles/components/form/radio.scss +11 -8
- package/app/styles/components/form/select.scss +14 -12
- package/app/styles/components/form/text-input.scss +14 -13
- package/app/styles/components/form/textarea.scss +7 -7
- package/app/styles/components/form/toggle.scss +38 -36
- package/app/styles/components/icon-tile.scss +35 -37
- package/app/styles/components/link/inline.scss +3 -3
- package/app/styles/components/link/standalone.scss +13 -15
- package/app/styles/components/stepper/index.scss +2 -2
- package/app/styles/components/stepper/step-indicator.scss +23 -18
- package/app/styles/components/stepper/task-indicator.scss +45 -45
- package/app/styles/components/tag.scss +15 -15
- package/app/styles/components/toast.scss +3 -3
- package/app/styles/mixins/_focus-ring.scss +8 -8
- package/package.json +14 -8
package/.stylelintignore
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# unconventional js
|
|
2
|
+
/blueprints/*/files/
|
|
3
|
+
/vendor/
|
|
4
|
+
|
|
5
|
+
# compiled output
|
|
6
|
+
/dist/
|
|
7
|
+
/tmp/
|
|
8
|
+
|
|
9
|
+
# dependencies
|
|
10
|
+
/bower_components/
|
|
11
|
+
/node_modules/
|
|
12
|
+
|
|
13
|
+
# misc
|
|
14
|
+
/coverage/
|
|
15
|
+
!.*
|
|
16
|
+
.*/
|
|
17
|
+
.eslintcache
|
|
18
|
+
.lint-todo/
|
|
19
|
+
|
|
20
|
+
# ember-try
|
|
21
|
+
/.node_modules.ember-try/
|
|
22
|
+
/bower.json.ember-try
|
|
23
|
+
/npm-shrinkwrap.json.ember-try
|
|
24
|
+
/package.json.ember-try
|
|
25
|
+
/package-lock.json.ember-try
|
|
26
|
+
/yarn.lock.ember-try
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @hashicorp/design-system-components
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#576](https://github.com/hashicorp/design-system/pull/576) [`ab821911`](https://github.com/hashicorp/design-system/commit/ab821911e8d7f99b2b70e41e06f3fe8f681f9c8f) Thanks [@alex-ju](https://github.com/alex-ju)! - Add `RadioCard` component
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#586](https://github.com/hashicorp/design-system/pull/586) [`55ec4246`](https://github.com/hashicorp/design-system/commit/55ec424615505733159ac420284c47758f0667a3) Thanks [@Dhaulagiri](https://github.com/Dhaulagiri)! - make ember-truth-helpers a dependency
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`55f38cb3`](https://github.com/hashicorp/design-system/commit/55f38cb3a30a6edf8854e53ce3642270fe00efdc), [`258c06d9`](https://github.com/hashicorp/design-system/commit/258c06d952d41696bb8c5b4bab19eb46e4612cdc)]:
|
|
14
|
+
- @hashicorp/ember-flight-icons@3.0.0
|
|
15
|
+
- @hashicorp/design-system-tokens@1.1.0
|
|
16
|
+
|
|
17
|
+
## 1.1.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#539](https://github.com/hashicorp/design-system/pull/539) [`5b548865`](https://github.com/hashicorp/design-system/commit/5b548865ed1000e5f51c22365a81c858576bd2bd) Thanks [@alex-ju](https://github.com/alex-ju)! - Add custom styles for `ember-power-select` add-on
|
|
22
|
+
|
|
23
|
+
* [#577](https://github.com/hashicorp/design-system/pull/577) [`2f5a2c21`](https://github.com/hashicorp/design-system/commit/2f5a2c214c25be7fd91c2e73c88fb436f72dbd6f) Thanks [@alex-ju](https://github.com/alex-ju)! - Add small variant to `Hds::Dropdown::ToggleButton`
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#545](https://github.com/hashicorp/design-system/pull/545) [`6d2a6298`](https://github.com/hashicorp/design-system/commit/6d2a6298c407a74a14a11b3426fd60d673d10954) Thanks [@didoo](https://github.com/didoo)! - Small cleanup (reformatting, linting) of the Sass files. Should have zero visual impact on the components.
|
|
28
|
+
|
|
29
|
+
* [#565](https://github.com/hashicorp/design-system/pull/565) [`0f5247f0`](https://github.com/hashicorp/design-system/commit/0f5247f0f088ad35f877294089d0c69caaffdb37) Thanks [@didoo](https://github.com/didoo)! - added stylelint to the codebase and re-organized CSS declarations
|
|
30
|
+
|
|
31
|
+
* Updated dependencies [[`0b245333`](https://github.com/hashicorp/design-system/commit/0b24533369ccc2d02aa5c6c8b8ba4f722e07d236)]:
|
|
32
|
+
- @hashicorp/design-system-tokens@1.0.1
|
|
33
|
+
|
|
3
34
|
## 1.0.4
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class={{this.classNames}} ...attributes>
|
|
2
2
|
{{#if @icon}}
|
|
3
3
|
<div class="hds-badge__icon">
|
|
4
|
-
<FlightIcon @name={{this.icon}} @size="16" @stretched=
|
|
4
|
+
<FlightIcon @name={{this.icon}} @size="16" @stretched={{true}} />
|
|
5
5
|
</div>
|
|
6
6
|
{{/if}}
|
|
7
7
|
{{#if this.isIconOnly}}
|
|
@@ -30,7 +30,7 @@ export default class HdsBadgeIndexComponent extends Component {
|
|
|
30
30
|
assert(
|
|
31
31
|
`@size for "Hds::Badge" must be one of the following: ${SIZES.join(
|
|
32
32
|
', '
|
|
33
|
-
)}
|
|
33
|
+
)}; received: ${size}`,
|
|
34
34
|
SIZES.includes(size)
|
|
35
35
|
);
|
|
36
36
|
|
|
@@ -51,7 +51,7 @@ export default class HdsBadgeIndexComponent extends Component {
|
|
|
51
51
|
assert(
|
|
52
52
|
`@type for "Hds::Badge" must be one of the following: ${TYPES.join(
|
|
53
53
|
', '
|
|
54
|
-
)}
|
|
54
|
+
)}; received: ${type}`,
|
|
55
55
|
TYPES.includes(type)
|
|
56
56
|
);
|
|
57
57
|
|
|
@@ -72,7 +72,7 @@ export default class HdsBadgeIndexComponent extends Component {
|
|
|
72
72
|
assert(
|
|
73
73
|
`@color for "Hds::Badge" must be one of the following: ${COLORS.join(
|
|
74
74
|
', '
|
|
75
|
-
)}
|
|
75
|
+
)}; received: ${color}`,
|
|
76
76
|
COLORS.includes(color)
|
|
77
77
|
);
|
|
78
78
|
|
|
@@ -23,7 +23,7 @@ export default class HdsBadgeCountIndexComponent extends Component {
|
|
|
23
23
|
assert(
|
|
24
24
|
`@size for "Hds::BadgeCount" must be one of the following: ${SIZES.join(
|
|
25
25
|
', '
|
|
26
|
-
)}
|
|
26
|
+
)}; received: ${size}`,
|
|
27
27
|
SIZES.includes(size)
|
|
28
28
|
);
|
|
29
29
|
|
|
@@ -44,7 +44,7 @@ export default class HdsBadgeCountIndexComponent extends Component {
|
|
|
44
44
|
assert(
|
|
45
45
|
`@type for "Hds::BadgeCount" must be one of the following: ${TYPES.join(
|
|
46
46
|
', '
|
|
47
|
-
)}
|
|
47
|
+
)}; received: ${type}`,
|
|
48
48
|
TYPES.includes(type)
|
|
49
49
|
);
|
|
50
50
|
|
|
@@ -65,7 +65,7 @@ export default class HdsBadgeCountIndexComponent extends Component {
|
|
|
65
65
|
assert(
|
|
66
66
|
`@color for "Hds::BadgeCount" must be one of the following: ${COLORS.join(
|
|
67
67
|
', '
|
|
68
|
-
)}
|
|
68
|
+
)}; received: ${color}`,
|
|
69
69
|
COLORS.includes(color)
|
|
70
70
|
);
|
|
71
71
|
|
|
@@ -14,7 +14,7 @@ export default class HdsBreadcrumbItemComponent extends Component {
|
|
|
14
14
|
|
|
15
15
|
if (maxWidth) {
|
|
16
16
|
assert(
|
|
17
|
-
`@maxWidth for "Hds::Breadcrumb::Item" must be a size as number in 'px' or in 'em' (eg. '200px' or '24em')
|
|
17
|
+
`@maxWidth for "Hds::Breadcrumb::Item" must be a size as number in 'px' or in 'em' (eg. '200px' or '24em'); received: ${maxWidth}`,
|
|
18
18
|
maxWidth.match(/^\d+(px|em)$/)
|
|
19
19
|
);
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ export default class HdsCardContainerComponent extends Component {
|
|
|
23
23
|
assert(
|
|
24
24
|
`@level for "Hds::Card::Container" must be one of the following: ${LEVELS.join(
|
|
25
25
|
', '
|
|
26
|
-
)}
|
|
26
|
+
)}; received: ${level}`,
|
|
27
27
|
LEVELS.includes(level)
|
|
28
28
|
);
|
|
29
29
|
|
|
@@ -44,7 +44,7 @@ export default class HdsCardContainerComponent extends Component {
|
|
|
44
44
|
assert(
|
|
45
45
|
`@levelHover for "Hds::Card::Container" must be one of the following: ${LEVELS.join(
|
|
46
46
|
', '
|
|
47
|
-
)}
|
|
47
|
+
)}; received: ${levelHover}`,
|
|
48
48
|
LEVELS.includes(levelHover)
|
|
49
49
|
);
|
|
50
50
|
}
|
|
@@ -66,7 +66,7 @@ export default class HdsCardContainerComponent extends Component {
|
|
|
66
66
|
assert(
|
|
67
67
|
`@levelActive for "Hds::Card::Container" must be one of the following: ${LEVELS.join(
|
|
68
68
|
', '
|
|
69
|
-
)}
|
|
69
|
+
)}; received: ${levelActive}`,
|
|
70
70
|
LEVELS.includes(levelActive)
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -88,7 +88,7 @@ export default class HdsCardContainerComponent extends Component {
|
|
|
88
88
|
assert(
|
|
89
89
|
`@background for "Hds::Card::Container" must be one of the following: ${BACKGROUNDS.join(
|
|
90
90
|
', '
|
|
91
|
-
)}
|
|
91
|
+
)}; received: ${background}`,
|
|
92
92
|
BACKGROUNDS.includes(background)
|
|
93
93
|
);
|
|
94
94
|
|
|
@@ -109,7 +109,7 @@ export default class HdsCardContainerComponent extends Component {
|
|
|
109
109
|
assert(
|
|
110
110
|
`@overflow for "Hds::Card::Container" must be one of the following: ${OVERFLOWS.join(
|
|
111
111
|
', '
|
|
112
|
-
)}
|
|
112
|
+
)}; received: ${overflow}`,
|
|
113
113
|
OVERFLOWS.includes(overflow)
|
|
114
114
|
);
|
|
115
115
|
|
|
@@ -37,7 +37,7 @@ export default class HdsFormFieldIndexComponent extends Component {
|
|
|
37
37
|
assert(
|
|
38
38
|
`@type for "Hds::Form::Field" must be one of the following: ${LAYOUT_TYPES.join(
|
|
39
39
|
', '
|
|
40
|
-
)}
|
|
40
|
+
)}; received: ${layout}`,
|
|
41
41
|
LAYOUT_TYPES.includes(layout)
|
|
42
42
|
);
|
|
43
43
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<span class="hds-form-radio-card__description hds-typography-body-100" ...attributes>{{yield}}</span>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<Hds::Form::Fieldset
|
|
2
|
+
class="hds-form-group--radio-cards"
|
|
3
|
+
@layout="horizontal"
|
|
4
|
+
@name={{@name}}
|
|
5
|
+
@isRequired={{@isRequired}}
|
|
6
|
+
@isOptional={{@isOptional}}
|
|
7
|
+
...attributes
|
|
8
|
+
as |F|
|
|
9
|
+
>
|
|
10
|
+
{{! Notice: the order of the elements is not relevant here, because it's controlled at "Hds::Form::Fieldset" component level }}
|
|
11
|
+
{{yield (hash Legend=F.Legend isRequired=F.isRequired isOptional=F.isOptional)}}
|
|
12
|
+
{{yield (hash HelperText=F.HelperText Error=F.Error)}}
|
|
13
|
+
<F.Control>
|
|
14
|
+
{{yield
|
|
15
|
+
(hash
|
|
16
|
+
RadioCard=(component
|
|
17
|
+
"hds/form/radio-card"
|
|
18
|
+
name=@name
|
|
19
|
+
alignment=@alignment
|
|
20
|
+
controlPosition=@controlPosition
|
|
21
|
+
extraAriaDescribedBy=F.ariaDescribedBy
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
}}
|
|
25
|
+
</F.Control>
|
|
26
|
+
</Hds::Form::Fieldset>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<label class={{this.classNames}} {{did-insert this.setAriaDescribedBy}} {{style maxWidth=@maxWidth}}>
|
|
2
|
+
<span class="hds-form-radio-card__content">
|
|
3
|
+
{{yield (hash Icon=(component "flight-icon" size="24" isInlineBlock=false))}}
|
|
4
|
+
{{yield (hash Label=(component "hds/form/radio-card/label"))}}
|
|
5
|
+
{{yield (hash Badge=(component "hds/badge"))}}
|
|
6
|
+
{{yield (hash Description=(component "hds/form/radio-card/description"))}}
|
|
7
|
+
{{yield (hash Generic=(component "hds/yield"))}}
|
|
8
|
+
</span>
|
|
9
|
+
<span class="hds-form-radio-card__control-wrapper">
|
|
10
|
+
<Hds::Form::Radio::Base
|
|
11
|
+
class="hds-form-radio-card__control"
|
|
12
|
+
@value={{@value}}
|
|
13
|
+
name={{@name}}
|
|
14
|
+
checked={{@checked}}
|
|
15
|
+
disabled={{@disabled}}
|
|
16
|
+
aria-describedby={{this.ariaDescribedBy}}
|
|
17
|
+
...attributes
|
|
18
|
+
/>
|
|
19
|
+
</span>
|
|
20
|
+
</label>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { tracked } from '@glimmer/tracking';
|
|
3
|
+
import { action } from '@ember/object';
|
|
4
|
+
import { assert } from '@ember/debug';
|
|
5
|
+
import { setAriaDescribedBy } from '../utils/setAriaDescribedBy';
|
|
6
|
+
import { schedule } from '@ember/runloop';
|
|
7
|
+
|
|
8
|
+
export const DEFAULT_CONTROL_POSITION = 'bottom';
|
|
9
|
+
export const DEFAULT_ALIGNMENT = 'left';
|
|
10
|
+
export const CONTROL_POSITIONS = ['bottom', 'left'];
|
|
11
|
+
export const ALIGNMENTS = ['left', 'center'];
|
|
12
|
+
|
|
13
|
+
export default class HdsFormRadioCardIndexComponent extends Component {
|
|
14
|
+
@tracked ariaDescribedBy = this.args.extraAriaDescribedBy;
|
|
15
|
+
@tracked descriptors = [];
|
|
16
|
+
|
|
17
|
+
@action
|
|
18
|
+
setAriaDescribedBy() {
|
|
19
|
+
// we schedule this afterRender to capture all descriptors registered onInsert
|
|
20
|
+
schedule('afterRender', () => {
|
|
21
|
+
setAriaDescribedBy(this);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Sets the position of the control
|
|
27
|
+
* Accepted values: buttom, left
|
|
28
|
+
*
|
|
29
|
+
* @param type
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @default 'bottom'
|
|
32
|
+
*/
|
|
33
|
+
get controlPosition() {
|
|
34
|
+
let { controlPosition = DEFAULT_CONTROL_POSITION } = this.args;
|
|
35
|
+
|
|
36
|
+
assert(
|
|
37
|
+
`@controlPosition for "Hds::Form::RadioCard" must be one of the following: ${CONTROL_POSITIONS.join(
|
|
38
|
+
', '
|
|
39
|
+
)}; received: ${controlPosition}`,
|
|
40
|
+
CONTROL_POSITIONS.includes(controlPosition)
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
return controlPosition;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Sets the alignment of the content
|
|
48
|
+
* Accepted values: left, center
|
|
49
|
+
*
|
|
50
|
+
* @param alignnment
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @default 'left'
|
|
53
|
+
*/
|
|
54
|
+
get alignment() {
|
|
55
|
+
let { alignment = DEFAULT_ALIGNMENT } = this.args;
|
|
56
|
+
|
|
57
|
+
assert(
|
|
58
|
+
`@alignment for "Hds::Form::RadioCard" must be one of the following: ${ALIGNMENTS.join(
|
|
59
|
+
', '
|
|
60
|
+
)}; received: ${alignment}`,
|
|
61
|
+
ALIGNMENTS.includes(alignment)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
return alignment;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Get the class names to apply to the component.
|
|
69
|
+
* @method classNames
|
|
70
|
+
* @return {string} The "class" attribute to apply to the component.
|
|
71
|
+
*/
|
|
72
|
+
get classNames() {
|
|
73
|
+
let classes = ['hds-form-radio-card'];
|
|
74
|
+
|
|
75
|
+
if (this.args.checked) {
|
|
76
|
+
classes.push('hds-form-radio-card--checked');
|
|
77
|
+
}
|
|
78
|
+
if (this.args.disabled) {
|
|
79
|
+
classes.push('hds-form-radio-card--disabled');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// add a class based on the @controlPosition argument
|
|
83
|
+
classes.push(`hds-form-radio-card--control-${this.controlPosition}`);
|
|
84
|
+
|
|
85
|
+
// add a class based on the @alignment argument
|
|
86
|
+
classes.push(`hds-form-radio-card--align-${this.alignment}`);
|
|
87
|
+
|
|
88
|
+
return classes.join(' ');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<span class="hds-form-radio-card__label hds-typography-display-300 hds-font-weight-bold" ...attributes>{{yield}}</span>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<div class={{this.classNames}} aria-hidden="true" ...attributes>
|
|
2
2
|
{{#if @icon}}
|
|
3
3
|
<div class="hds-icon-tile__icon">
|
|
4
|
-
<FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched=
|
|
4
|
+
<FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
|
|
5
5
|
</div>
|
|
6
6
|
{{/if}}
|
|
7
7
|
{{#if @logo}}
|
|
8
8
|
<div class="hds-icon-tile__logo">
|
|
9
|
-
<FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched=
|
|
9
|
+
<FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
|
|
10
10
|
</div>
|
|
11
11
|
{{/if}}
|
|
12
12
|
{{#if this.iconSecondary}}
|
|
13
13
|
<div class="hds-icon-tile__extra">
|
|
14
14
|
<div class="hds-icon-tile__extra-icon">
|
|
15
|
-
<FlightIcon @name={{this.iconSecondary}} @size="16" @stretched=
|
|
15
|
+
<FlightIcon @name={{this.iconSecondary}} @size="16" @stretched={{true}} />
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
{{/if}}
|
|
@@ -32,7 +32,7 @@ export default class HdsIconTileIndexComponent extends Component {
|
|
|
32
32
|
assert(
|
|
33
33
|
`@size for "Hds::IconTile" must be one of the following: ${SIZES.join(
|
|
34
34
|
', '
|
|
35
|
-
)}
|
|
35
|
+
)}; received: ${size}`,
|
|
36
36
|
SIZES.includes(size)
|
|
37
37
|
);
|
|
38
38
|
|
|
@@ -59,7 +59,7 @@ export default class HdsIconTileIndexComponent extends Component {
|
|
|
59
59
|
assert(
|
|
60
60
|
`@color for "Hds::IconTile" must be one of the following: ${COLORS.join(
|
|
61
61
|
', '
|
|
62
|
-
)}
|
|
62
|
+
)}; received: ${color}`,
|
|
63
63
|
COLORS.includes(color)
|
|
64
64
|
);
|
|
65
65
|
|
|
@@ -112,7 +112,7 @@ export default class HdsIconTileIndexComponent extends Component {
|
|
|
112
112
|
assert(
|
|
113
113
|
`@logo for "Hds::IconTile" must be one of the following: ${PRODUCTS.join(
|
|
114
114
|
', '
|
|
115
|
-
)}
|
|
115
|
+
)}; received: ${logo}`,
|
|
116
116
|
PRODUCTS.includes(logo)
|
|
117
117
|
);
|
|
118
118
|
}
|
|
@@ -17,7 +17,7 @@ export default class HdsStepperIndicatorStepIndexComponent extends Component {
|
|
|
17
17
|
assert(
|
|
18
18
|
`@status for "Hds::Stepper::Step::Indicator" must be one of the following: ${STATUSES.join(
|
|
19
19
|
', '
|
|
20
|
-
)}
|
|
20
|
+
)}; received: ${status}`,
|
|
21
21
|
STATUSES.includes(status)
|
|
22
22
|
);
|
|
23
23
|
|
|
@@ -23,7 +23,7 @@ export default class HdsStepperIndicatorTaskIndexComponent extends Component {
|
|
|
23
23
|
assert(
|
|
24
24
|
`@status for "Hds::Stepper::Task::Indicator" must be one of the following: ${STATUSES.join(
|
|
25
25
|
', '
|
|
26
|
-
)}
|
|
26
|
+
)}; received: ${status}`,
|
|
27
27
|
STATUSES.includes(status)
|
|
28
28
|
);
|
|
29
29
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@hashicorp/design-system-components/components/hds/form/radio-card/description';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@hashicorp/design-system-components/components/hds/form/radio-card/group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@hashicorp/design-system-components/components/hds/form/radio-card/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@hashicorp/design-system-components/components/hds/form/radio-card/label';
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
@use "../components/toast";
|
|
28
28
|
// END COMPONENT CSS FILES IMPORTS
|
|
29
29
|
|
|
30
|
+
// stylelint-disable-next-line selector-class-pattern
|
|
30
31
|
.sr-only {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
32
|
+
position: absolute !important;
|
|
33
|
+
width: 1px !important;
|
|
34
|
+
height: 1px !important;
|
|
35
|
+
margin: -1px !important;
|
|
36
|
+
padding: 0 !important;
|
|
37
|
+
overflow: hidden !important;
|
|
38
|
+
white-space: nowrap !important; /* 3 */
|
|
39
|
+
border: 0 !important;
|
|
40
|
+
clip: rect(1px, 1px, 1px, 1px) !important; /* 1 */
|
|
41
|
+
clip-path: inset(50%) !important; /* 2 */
|
|
42
|
+
}
|