barbican-reset 1.6.5 → 1.6.6

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.
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script>
10
10
  export default {
11
+ name: 'BrContainer',
11
12
  props: {
12
13
  splash: {
13
14
  type: Boolean,
@@ -6,7 +6,7 @@
6
6
 
7
7
  <script type="text/javascript">
8
8
  export default {
9
- name: 'FormSection',
9
+ name: 'BrFormBlock',
10
10
  }
11
11
  </script>
12
12
 
@@ -16,7 +16,7 @@
16
16
  import { BButton } from 'bootstrap-vue'
17
17
  import { EditIcon } from '../icons/account'
18
18
  export default {
19
- name: 'BrFormGroup',
19
+ name: 'BrFormRow',
20
20
  components: {
21
21
  BButton,
22
22
  EditIcon
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <div :class="$style.container">
3
3
  <div :class="$style.input" data-test="email"><slot /></div>
4
- <b-button class="btn-update" @click.prevent="$emit('update')" data-test="update">update</b-button>
4
+ <b-button @click.prevent="$emit('update')" data-test="update">update</b-button>
5
5
  </div>
6
6
  </template>
7
7
 
8
8
  <script type="text/javascript">
9
9
  export default {
10
- name: 'FormUpdate',
10
+ name: 'BrFormUpdate',
11
11
  }
12
12
  </script>
13
13
 
@@ -24,6 +24,7 @@
24
24
 
25
25
  .input {
26
26
  @include all-text-inputs;
27
+ color: $c-grey-steel;
27
28
  user-select: none;
28
29
  overflow: hidden;
29
30
  }
@@ -1,12 +1,5 @@
1
-
2
- @mixin radio-group {
3
- margin: -0.25rem;
4
- }
5
-
6
- @mixin radio-input(
7
- $state: neutral,
8
- $type: radio) {
9
- @include generic-input($state,$type);
1
+ @mixin radio-input($state: neutral, $type: radio) {
2
+ @include generic-input($state, $type);
10
3
  display: inline-block;
11
4
  margin: 0.25rem;
12
- }
5
+ }
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import Container from './components/container'
2
1
  import EventSummary from './components/event_summary'
3
2
  import AccountTitle from './components/account_title'
4
3
  import Wrap from './components/wrap'
@@ -9,9 +8,6 @@ import RelatedRow from './components/related_row'
9
8
  import TypeText from './components/type_text'
10
9
  import Placeholder from './components/placeholder'
11
10
  import CardDisplay from './components/card_display'
12
- import FormSection from './components/form_section'
13
- import FormUpdate from './components/form_update'
14
- import RadioGroup from './components/radio_group'
15
11
  import FooterUpper from './components/footer_upper'
16
12
  import FooterLogos from './components/footer_logos'
17
13
  import FooterLower from './components/footer_lower'
@@ -23,7 +19,10 @@ import SkipLink from './components/skip_link'
23
19
  import BrAlert from './components/br_alert'
24
20
  import BrButton from './components/br_button'
25
21
  import BrAnchor from './components/br_anchor'
26
- import BrFormGroup from './components/br_form_group'
22
+ import BrFormRow from './components/br_form_row'
23
+ import BrContainer from './components/br_container'
24
+ import BrFormBlock from './components/br_form_block'
25
+ import BrFormUpdate from './components/br_form_update'
27
26
 
28
27
  export {
29
28
  Loader,
@@ -32,14 +31,13 @@ export {
32
31
  RelatedCard,
33
32
  RelatedRow,
34
33
  TypeText,
35
- Container,
34
+ BrContainer,
36
35
  Wrap,
37
36
  AccountTitle,
38
37
  Placeholder,
39
- FormSection,
40
- FormUpdate,
41
- BrFormGroup,
42
- RadioGroup,
38
+ BrFormBlock,
39
+ BrFormUpdate,
40
+ BrFormRow,
43
41
  EventSummary,
44
42
  FooterUpper,
45
43
  FooterLogos,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,17 +1,16 @@
1
-
2
1
  .custom-checkbox {
3
2
  @include checkbox-input;
4
3
 
5
4
  &:not(:last-of-type) {
6
5
  margin-bottom: 0.5rem;
7
- }
6
+ }
8
7
  }
9
8
 
10
9
  @each $status, $color in $statees {
11
- @if $status != 'neutral' {
12
- [#{$status}] input[type=radio],
13
- input[type=radio][#{$status}] {
10
+ @if $status != "neutral" {
11
+ [role="group"][#{$status}] input[type="checkbox"],
12
+ input[type="checkbox"][#{$status}] {
14
13
  @include status-input($color);
15
14
  }
16
15
  }
17
- }
16
+ }
@@ -0,0 +1,16 @@
1
+ [role="radiogroup"] {
2
+ margin: -0.25rem;
3
+ }
4
+
5
+ .custom-radio {
6
+ @include radio-input;
7
+ }
8
+
9
+ @each $status, $color in $statees {
10
+ @if $status != "neutral" {
11
+ [role="radiogroup"][#{$status}] input[type="radio"],
12
+ input[type="radio"][#{$status}] {
13
+ @include status-input($color);
14
+ }
15
+ }
16
+ }
package/scss/index.scss CHANGED
@@ -21,13 +21,12 @@
21
21
  @import "btn";
22
22
  @import "card/index";
23
23
  @import "card-deck";
24
- @import "checkbox";
25
- @import "checkbox-group";
24
+ @import "custom-checkbox";
26
25
  @import "custom-select";
26
+ @import "custom-radio";
27
27
  @import "form";
28
28
  @import "list";
29
29
  @import "input";
30
- @import "radio-group";
31
30
 
32
31
  // atomic helper styles
33
32
  @import "atomic";
@@ -1,27 +0,0 @@
1
- <template>
2
- <div :class="styleGroup">
3
- <slot />
4
- </div>
5
- </template>
6
-
7
- <script type="text/javascript">
8
- export default {
9
- name: 'RadioGroup',
10
- props: {
11
- error: {
12
- type: Boolean
13
- },
14
- success: {
15
- type: Boolean
16
- }
17
- },
18
- computed: {
19
- styleGroup() {
20
- let styles = ['radio-group'];
21
- if (this.error) { styles.push('error'); }
22
- if (this.success) { styles.push('success'); }
23
- return styles;
24
- }
25
- }
26
- }
27
- </script>
@@ -1,31 +0,0 @@
1
-
2
- .checkbox {
3
- @include checkbox-input;
4
- }
5
-
6
- @each $status, $color in $statees {
7
- @if $status != 'neutral' {
8
- .checkbox.#{$status} {
9
- input[type=checkbox] {
10
- &:hover, &[data-focus-visible-added] {
11
- &:checked ~ label {
12
- @include single-box(map-get($color, base), 0.0625rem);
13
- border: 1px solid map-get($color, base);
14
- background-color: map-get($color, fade);
15
- color: map-get($color, base);
16
- }
17
- }
18
-
19
- &:checked ~ label {
20
- border: 1px solid map-get($color, base);
21
- background-color: map-get($color, fade);
22
- color: map-get($color, base);
23
- }
24
- }
25
- }
26
- }
27
- }
28
-
29
- .custom-checkbox label {
30
- font-weight: 400;
31
- }
@@ -1,17 +0,0 @@
1
-
2
- [role=radiogroup] {
3
- @include radio-group;
4
- }
5
-
6
- .custom-radio {
7
- @include radio-input;
8
- }
9
-
10
- @each $status, $color in $statees {
11
- @if $status != 'neutral' {
12
- [#{$status}] input[type=radio],
13
- input[type=radio][#{$status}] {
14
- @include status-input($color);
15
- }
16
- }
17
- }