@bodynarf/react.components 1.7.5 → 1.7.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.
- package/common.scss +3 -0
- package/components/anchor/component/style.scss +15 -0
- package/components/button/component/style.scss +12 -0
- package/components/dropdown/component/style.scss +120 -0
- package/components/icon/component/style.scss +21 -0
- package/components/primitives/checkbox/component/style.scss +10 -0
- package/components/primitives/password/component/style.scss +16 -0
- package/components/search/component/style.scss +24 -0
- package/components/tabs/component/style.scss +12 -0
- package/components/tag/component/style.scss +27 -0
- package/package.json +1 -1
package/common.scss
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
.bbr-dropdown {
|
|
2
|
+
min-width: 7.5rem;
|
|
3
|
+
|
|
4
|
+
&:not(.bbr-dropdown--compact) {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:not(.bbr-dropdown--compact) {
|
|
9
|
+
& .dropdown-menu {
|
|
10
|
+
min-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& .dropdown-menu {
|
|
15
|
+
& .dropdown-content {
|
|
16
|
+
overflow: auto;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__label {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
user-select: none;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: flex-start;
|
|
25
|
+
|
|
26
|
+
span {
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
overflow-x: hidden;
|
|
30
|
+
max-width: 15rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--default span {
|
|
34
|
+
color: gray;
|
|
35
|
+
font-style: italic;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.bbr-icon {
|
|
39
|
+
&:hover {
|
|
40
|
+
color: #0d6efd;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.bi-arrow-down {
|
|
44
|
+
margin-left: auto;
|
|
45
|
+
&::before {
|
|
46
|
+
transition: 0.25s ease-in-out transform;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.bi-plus-lg::before {
|
|
51
|
+
transform: rotate(45deg);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.is-success--md {
|
|
56
|
+
border-color: #48c78e;
|
|
57
|
+
}
|
|
58
|
+
&.is-danger--md {
|
|
59
|
+
border-color: #f14668;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-item {
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
user-select: none;
|
|
66
|
+
white-space: normal;
|
|
67
|
+
|
|
68
|
+
transition: 0.25s ease-in-out;
|
|
69
|
+
transition-property: color, background-color;
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
72
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
73
|
+
color: #0a0a0a;
|
|
74
|
+
}
|
|
75
|
+
&:active {
|
|
76
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
77
|
+
color: #0a0a0a;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.is-active {
|
|
81
|
+
background-color: #485fc7;
|
|
82
|
+
color: #fff;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.is-active {
|
|
87
|
+
.bbr-dropdown__label .bbr-icon.bi-arrow-down::before {
|
|
88
|
+
transform: rotate(180deg);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&--height-default {
|
|
93
|
+
.dropdown-menu .dropdown-content {
|
|
94
|
+
max-height: 15vw;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&--compact {
|
|
99
|
+
width: fit-content;
|
|
100
|
+
|
|
101
|
+
& .dropdown-menu {
|
|
102
|
+
min-width: 11.75rem;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&--disabled {
|
|
107
|
+
.bbr-dropdown__label {
|
|
108
|
+
background-color: hsl(0deg, 0%, 96%);
|
|
109
|
+
border-color: hsl(0deg, 0%, 96%);
|
|
110
|
+
box-shadow: none;
|
|
111
|
+
color: hsl(0deg, 0%, 48%);
|
|
112
|
+
|
|
113
|
+
cursor: not-allowed;
|
|
114
|
+
|
|
115
|
+
.bbr-icon {
|
|
116
|
+
pointer-events: none;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.bbr-icon {
|
|
2
|
+
transition: 0.15s ease-in-out color;
|
|
3
|
+
font-size: 1rem;
|
|
4
|
+
|
|
5
|
+
&--size-small {
|
|
6
|
+
font-size: 0.85rem;
|
|
7
|
+
}
|
|
8
|
+
&--size-medium {
|
|
9
|
+
font-size: 1.25rem;
|
|
10
|
+
}
|
|
11
|
+
&--size-large {
|
|
12
|
+
font-size: 2rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&--right {
|
|
16
|
+
margin-left: 0.5rem;
|
|
17
|
+
}
|
|
18
|
+
&--left {
|
|
19
|
+
margin-right: 0.5rem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.is-checkradio.m-check-radio[type="checkbox"] {
|
|
2
|
+
&.has-background-color.m-has-background-color:not(:checked) + label::before {
|
|
3
|
+
border-color: #dbdbdb !important;
|
|
4
|
+
background-color: transparent !important;
|
|
5
|
+
}
|
|
6
|
+
& + label::before,
|
|
7
|
+
& + label:before {
|
|
8
|
+
top: 0.125rem;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.bbr-search {
|
|
2
|
+
input[type="search"] {
|
|
3
|
+
transition: 0.15s ease-out;
|
|
4
|
+
transition-property: border-color, color, background-color;
|
|
5
|
+
|
|
6
|
+
&::placeholder {
|
|
7
|
+
user-select: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&::-webkit-input-placeholder {
|
|
11
|
+
transition: 0.15s ease-out color;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&::-webkit-search-cancel-button {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
font-size: 1.25rem;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.is-loading::after {
|
|
21
|
+
right: 1rem;
|
|
22
|
+
top: 0.725rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.bbr-tag {
|
|
2
|
+
border: 1px solid transparent;
|
|
3
|
+
transition: border-color 0.15s ease-in-out;
|
|
4
|
+
|
|
5
|
+
&--clickable {
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
|
|
8
|
+
&.is-light {
|
|
9
|
+
&:hover {
|
|
10
|
+
border-color: rgba(0, 0, 0, 0.25);
|
|
11
|
+
}
|
|
12
|
+
&:focus,
|
|
13
|
+
&:active {
|
|
14
|
+
border-color: rgba(0, 0, 0, 0.5);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
&:not(.is-light) {
|
|
18
|
+
&:hover {
|
|
19
|
+
border-color: rgba(0, 0, 0, 0.35);
|
|
20
|
+
}
|
|
21
|
+
&:focus,
|
|
22
|
+
&:active {
|
|
23
|
+
border-color: rgba(0, 0, 0, 0.75);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|