barbican-reset 1.6.4 → 1.6.7
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/components/br_button/remove_ticket.vue +1 -1
- package/components/{container.vue → br_container.vue} +1 -0
- package/components/{form_section.vue → br_form_block.vue} +1 -1
- package/components/{br_form_group.vue → br_form_row.vue} +1 -1
- package/components/{form_update.vue → br_form_update.vue} +3 -2
- package/dist/.DS_Store +0 -0
- package/dist/css/barbican-reset.css +1951 -181
- package/helpers/mixins/input/_generic.scss +4 -0
- package/helpers/mixins/input/_radio.scss +3 -10
- package/index.js +8 -10
- package/package.json +2 -2
- package/scss/{_checkbox-group.scss → _custom-checkbox.scss} +5 -6
- package/scss/_custom-radio.scss +16 -0
- package/scss/index.scss +2 -3
- package/components/radio_group.vue +0 -27
- package/scss/_checkbox.scss +0 -31
- package/scss/_radio-group.scss +0 -17
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
@
|
|
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
|
|
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
|
-
|
|
34
|
+
BrContainer,
|
|
36
35
|
Wrap,
|
|
37
36
|
AccountTitle,
|
|
38
37
|
Placeholder,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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.
|
|
3
|
+
"version": "1.6.7",
|
|
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": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Paul Heading",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"bootstrap": "^5.1.
|
|
28
|
+
"bootstrap": "^5.1.3",
|
|
29
29
|
"bootstrap-vue": "^2.21.2",
|
|
30
30
|
"bourbon": "^7.0.0",
|
|
31
31
|
"focus-visible": "^5.2.0",
|
|
@@ -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 !=
|
|
12
|
-
[#{$status}] input[type=
|
|
13
|
-
input[type=
|
|
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>
|
package/scss/_checkbox.scss
DELETED
|
@@ -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
|
-
}
|
package/scss/_radio-group.scss
DELETED
|
@@ -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
|
-
}
|