@basis-ng/styles 0.0.1-alpha.13 → 0.0.1-alpha.130
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/package.json +26 -36
- package/src/components/alert.css +58 -0
- package/src/components/badge.css +37 -0
- package/src/components/button-group.css +16 -0
- package/src/components/button.css +73 -0
- package/src/components/card.css +24 -0
- package/src/components/checkbox.css +66 -0
- package/src/components/command-options.css +17 -0
- package/src/components/command.css +20 -0
- package/src/components/dialog.css +41 -0
- package/src/components/drawer.css +21 -0
- package/src/components/input-group.css +92 -0
- package/src/components/input.css +49 -0
- package/src/components/{label.component.css → label.css} +70 -74
- package/src/components/menu.css +159 -0
- package/src/components/option.css +37 -0
- package/src/components/otp.css +72 -0
- package/src/components/popover.css +63 -0
- package/src/components/range.css +29 -0
- package/src/components/{row-item.component.css → row-item.css} +14 -14
- package/src/components/{row.component.css → row.css} +48 -56
- package/src/components/select-options.css +56 -0
- package/src/components/select.css +211 -0
- package/src/components/sheet.css +34 -0
- package/src/components/spinner.css +3 -0
- package/src/components/switch.css +48 -0
- package/src/components/tabs.css +52 -0
- package/src/components/textarea-group.css +65 -0
- package/src/components/textarea.css +39 -0
- package/src/components/tooltip.css +37 -0
- package/src/components/tree.css +50 -0
- package/src/index.css +80 -39
- package/src/utilities/general.css +7 -0
- package/src/utilities/index.css +2 -0
- package/src/utilities/sizes.css +7 -0
- package/src/components/alert.component.css +0 -71
- package/src/components/attached-box.component.css +0 -84
- package/src/components/badge.component.css +0 -58
- package/src/components/bottom-sheet.component.css +0 -49
- package/src/components/button-group.component.css +0 -20
- package/src/components/button.component.css +0 -165
- package/src/components/checkbox.component.css +0 -41
- package/src/components/color-picker.component.css +0 -34
- package/src/components/combobox-options.component.css +0 -41
- package/src/components/combobox.component.css +0 -10
- package/src/components/command-options.component.css +0 -33
- package/src/components/command.component.css +0 -45
- package/src/components/icon.component.css +0 -5
- package/src/components/input-group.component.css +0 -110
- package/src/components/input.component.css +0 -70
- package/src/components/menu-group.component.css +0 -18
- package/src/components/menu-item-checkbox.component.css +0 -32
- package/src/components/menu-item-radio.component.css +0 -32
- package/src/components/menu-item.component.css +0 -32
- package/src/components/menu-label.component.css +0 -4
- package/src/components/menu.component.css +0 -32
- package/src/components/option.component.css +0 -26
- package/src/components/range.component.css +0 -39
- package/src/components/select-options.component.css +0 -41
- package/src/components/select.component.css +0 -10
- package/src/components/side-sheet.component.css +0 -59
- package/src/components/spinner.component.css +0 -13
- package/src/components/switch.component.css +0 -68
- package/src/components/tab.component.css +0 -41
- package/src/components/table.component.css +0 -34
- package/src/components/tabs.component.css +0 -18
- package/src/components/textarea.component.css +0 -40
- package/src/components/tooltip.component.css +0 -45
- package/src/components/tree-node.component.css +0 -77
- package/src/components/tree.component.css +0 -7
|
@@ -1,74 +1,70 @@
|
|
|
1
|
-
b-label {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
--horizontal-padding: clamp(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
padding-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
b-label {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
--horizontal-padding: clamp(1rem, calc(0.75rem + var(--radius, 0.5rem) / 2), 1.5rem);
|
|
5
|
+
|
|
6
|
+
label {
|
|
7
|
+
color: var(--text-color);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&:not(.is-switch):not(.is-checkbox) {
|
|
11
|
+
width: 100%;
|
|
12
|
+
|
|
13
|
+
label {
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
top: 50%;
|
|
17
|
+
left: var(--horizontal-padding);
|
|
18
|
+
transform: translateY(-50%);
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
transition:
|
|
21
|
+
top 0.2s,
|
|
22
|
+
font-size 0.2s,
|
|
23
|
+
transform 0.2s;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.up {
|
|
27
|
+
label {
|
|
28
|
+
top: 0.45rem;
|
|
29
|
+
font-size: 0.7rem;
|
|
30
|
+
transform: translateY(0);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input,
|
|
34
|
+
select {
|
|
35
|
+
--vertical-padding: calc(0.9rem - 2px);
|
|
36
|
+
padding-top: calc(var(--vertical-padding) + 0.5rem);
|
|
37
|
+
padding-bottom: calc(var(--vertical-padding) - 0.5rem);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
textarea {
|
|
41
|
+
padding-top: 1.5rem;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.is-textarea {
|
|
47
|
+
label {
|
|
48
|
+
top: 0.8rem;
|
|
49
|
+
transform: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.up {
|
|
53
|
+
label {
|
|
54
|
+
top: 0.45rem;
|
|
55
|
+
font-size: 0.7rem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.is-switch,
|
|
62
|
+
&.is-checkbox {
|
|
63
|
+
gap: 0.5rem;
|
|
64
|
+
align-items: center;
|
|
65
|
+
|
|
66
|
+
label {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
b-menu {
|
|
2
|
+
@apply flex flex-col;
|
|
3
|
+
|
|
4
|
+
/* Base */
|
|
5
|
+
@apply text-base rounded-size-md;
|
|
6
|
+
|
|
7
|
+
&:not(:has(b-menu-group)) {
|
|
8
|
+
@apply p-1 gap-1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
b-menu-group {
|
|
12
|
+
@apply p-1 gap-1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
b-menu-label {
|
|
16
|
+
@apply px-3 py-0 text-sm h-8 gap-1.5 flex items-center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
button[b-menu-item],
|
|
20
|
+
button[b-menu-item-radio],
|
|
21
|
+
button[b-menu-item-checkbox] {
|
|
22
|
+
@apply px-3 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
23
|
+
|
|
24
|
+
&.b-squared {
|
|
25
|
+
aspect-ratio: 1 / 1;
|
|
26
|
+
@apply w-10 min-w-10 h-10 min-h-10 !p-0 flex items-center justify-center text-center;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.b-size-sm {
|
|
31
|
+
@apply text-sm rounded-size-sm box-border;
|
|
32
|
+
|
|
33
|
+
&:not(:has(b-menu-group)) {
|
|
34
|
+
@apply p-0.5 gap-0.5;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
b-menu-group {
|
|
38
|
+
@apply p-0.5 gap-0.5;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
b-menu-label {
|
|
42
|
+
@apply px-2 py-0 text-xs h-6 gap-1 flex items-center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
button[b-menu-item],
|
|
46
|
+
button[b-menu-item-radio],
|
|
47
|
+
button[b-menu-item-checkbox] {
|
|
48
|
+
@apply px-2 py-0 text-xs h-6 rounded-size-xs gap-1;
|
|
49
|
+
|
|
50
|
+
&.b-squared {
|
|
51
|
+
aspect-ratio: 1 / 1;
|
|
52
|
+
@apply w-8 min-w-8 h-8 min-h-8 !p-0 flex items-center justify-center text-center;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.b-size-md {
|
|
58
|
+
@apply text-base rounded-size-md;
|
|
59
|
+
|
|
60
|
+
&:not(:has(b-menu-group)) {
|
|
61
|
+
@apply p-1 gap-1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
b-menu-group {
|
|
65
|
+
@apply p-1 gap-1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
b-menu-label {
|
|
69
|
+
@apply px-3 py-0 text-sm h-8 gap-1.5 flex items-center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
button[b-menu-item],
|
|
73
|
+
button[b-menu-item-radio],
|
|
74
|
+
button[b-menu-item-checkbox] {
|
|
75
|
+
@apply px-3 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
76
|
+
|
|
77
|
+
&.b-squared {
|
|
78
|
+
aspect-ratio: 1 / 1;
|
|
79
|
+
@apply w-10 min-w-10 h-10 min-h-10 !p-0 flex items-center justify-center text-center;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.b-size-lg {
|
|
85
|
+
@apply text-lg rounded-size-lg;
|
|
86
|
+
|
|
87
|
+
&:not(:has(b-menu-group)) {
|
|
88
|
+
@apply p-1.5 gap-1.5;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
b-menu-group {
|
|
92
|
+
@apply p-1.5 gap-1.5;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
b-menu-label {
|
|
96
|
+
@apply px-4 py-0 text-base h-10 gap-2 flex items-center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
button[b-menu-item],
|
|
100
|
+
button[b-menu-item-radio],
|
|
101
|
+
button[b-menu-item-checkbox] {
|
|
102
|
+
@apply px-4 py-0 text-base h-10 rounded-size-md gap-2;
|
|
103
|
+
|
|
104
|
+
&.b-squared {
|
|
105
|
+
aspect-ratio: 1 / 1;
|
|
106
|
+
@apply w-12 min-w-12 h-12 min-h-12 !p-0 flex items-center justify-center text-center;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
button[b-menu-item],
|
|
112
|
+
button[b-menu-item-radio],
|
|
113
|
+
button[b-menu-item-checkbox] {
|
|
114
|
+
@apply flex items-center gap-2 cursor-pointer;
|
|
115
|
+
@apply hover:bg-secondary/50;
|
|
116
|
+
@apply dark:hover:bg-secondary-dark/50;
|
|
117
|
+
|
|
118
|
+
&.b-destructive {
|
|
119
|
+
@apply bg-destructive/10 text-destructive;
|
|
120
|
+
@apply dark:bg-destructive-dark/10 dark:text-destructive-dark;
|
|
121
|
+
@apply hover:bg-destructive/20;
|
|
122
|
+
@apply dark:hover:bg-destructive-dark/20;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:focus-visible {
|
|
126
|
+
@apply outline-2 outline-offset-4 outline-primary;
|
|
127
|
+
@apply dark:outline-primary-dark;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&[aria-selected='true'],
|
|
131
|
+
&.b-active {
|
|
132
|
+
@apply bg-secondary text-secondary-foreground;
|
|
133
|
+
@apply dark:bg-secondary-dark dark:text-secondary-foreground-dark;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&[aria-disabled='true'] {
|
|
137
|
+
@apply opacity-60 pointer-events-none bg-none cursor-auto;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
b-menu-group {
|
|
142
|
+
@apply flex flex-col;
|
|
143
|
+
|
|
144
|
+
&:not(:first-child) {
|
|
145
|
+
@apply border-t-1 border-secondary;
|
|
146
|
+
@apply dark:border-secondary-dark;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&:not(:last-child) {
|
|
150
|
+
@apply border-b-1 border-secondary;
|
|
151
|
+
@apply dark:border-secondary-dark;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.cdk-overlay-container b-menu {
|
|
157
|
+
@apply inset-ring-1 inset-ring-ring bg-background shadow-xs;
|
|
158
|
+
@apply dark:inset-ring-ring-dark/60 dark:bg-background-dark;
|
|
159
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
li[b-option] {
|
|
2
|
+
@apply flex gap-2 py-1.5 px-3 text-sm box-border cursor-pointer min-w-full items-center rounded-sm;
|
|
3
|
+
@apply hover:bg-secondary/30;
|
|
4
|
+
@apply dark:hover:bg-secondary-dark/30;
|
|
5
|
+
|
|
6
|
+
/* Default */
|
|
7
|
+
@apply px-3 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
8
|
+
|
|
9
|
+
&.cdk-option-active {
|
|
10
|
+
@apply bg-secondary/30;
|
|
11
|
+
@apply dark:bg-secondary-dark/30;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.cdk-option-highlighted {
|
|
15
|
+
@apply bg-secondary/10;
|
|
16
|
+
@apply dark:bg-secondary-dark/10;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&[aria-selected='true'] {
|
|
20
|
+
@apply bg-secondary text-secondary-foreground;
|
|
21
|
+
@apply dark:bg-secondary-dark dark:text-secondary-foreground-dark;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[aria-disabled='true'] {
|
|
25
|
+
@apply opacity-60 pointer-events-none bg-none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.b-size-sm li[b-option] {
|
|
30
|
+
@apply px-2 py-0 text-xs h-6 rounded-size-xs gap-1;
|
|
31
|
+
}
|
|
32
|
+
.b-size-md li[b-option] {
|
|
33
|
+
@apply px-3 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
34
|
+
}
|
|
35
|
+
.b-size-lg li[b-option] {
|
|
36
|
+
@apply px-4 py-0 text-base h-10 rounded-size-md gap-2;
|
|
37
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
b-otp {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 0.5rem;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
|
|
6
|
+
input[b-otp-digit] {
|
|
7
|
+
@apply w-8 h-8 py-0 text-sm rounded-size-md p-0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
input[b-otp-digit] {
|
|
12
|
+
@apply box-border text-center font-sans text-base transition-opacity bg-background text-font inset-ring-1 inset-ring-ring;
|
|
13
|
+
@apply dark:bg-background-dark dark:text-font-dark dark:inset-ring-ring-dark;
|
|
14
|
+
|
|
15
|
+
&:read-only:not(:disabled) {
|
|
16
|
+
@apply border-0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&::-webkit-outer-spin-button,
|
|
20
|
+
&::-webkit-inner-spin-button {
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[type='text'],
|
|
26
|
+
&[type='number'] {
|
|
27
|
+
appearance: textfield;
|
|
28
|
+
-moz-appearance: textfield;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:focus-visible:not(:read-only) {
|
|
32
|
+
@apply outline-2 outline-offset-2 outline-primary;
|
|
33
|
+
@apply dark:outline-primary-dark;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::placeholder {
|
|
37
|
+
@apply opacity-50;
|
|
38
|
+
@apply dark:opacity-70 dark:text-font-dark;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:disabled {
|
|
42
|
+
@apply opacity-60 pointer-events-none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
b-otp.b-size-sm input[b-otp-digit] {
|
|
47
|
+
@apply w-6 h-6 text-xs rounded-size-sm p-0;
|
|
48
|
+
}
|
|
49
|
+
b-otp.b-size-md input[b-otp-digit] {
|
|
50
|
+
@apply w-8 h-8 py-0 text-sm rounded-size-md p-0;
|
|
51
|
+
}
|
|
52
|
+
b-otp.b-size-lg input[b-otp-digit] {
|
|
53
|
+
@apply w-10 h-10 text-base rounded-size-lg p-0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
b-otp.ng-invalid.ng-touched input[b-otp-digit],
|
|
57
|
+
b-otp.ng-invalid.ng-dirty input[b-otp-digit] {
|
|
58
|
+
@apply text-destructive placeholder:text-destructive bg-destructive/20 inset-ring-1 inset-ring-destructive/20;
|
|
59
|
+
@apply dark:text-destructive-dark dark:placeholder:text-destructive-dark dark:bg-destructive-dark/20 dark:inset-ring-destructive-dark/20;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
b-otp.ng-invalid.ng-touched input[b-otp-digit]:focus-visible,
|
|
63
|
+
b-otp.ng-invalid.ng-dirty input[b-otp-digit]:focus-visible {
|
|
64
|
+
@apply outline-2 outline-offset-2 outline-destructive;
|
|
65
|
+
@apply dark:outline-destructive-dark;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
b-otp.ng-invalid.ng-touched input[b-otp-digit]::placeholder,
|
|
69
|
+
b-otp.ng-invalid.ng-dirty input[b-otp-digit]::placeholder {
|
|
70
|
+
@apply text-destructive;
|
|
71
|
+
@apply dark:text-destructive-foreground;
|
|
72
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
b-popover-content {
|
|
2
|
+
padding: 0.5rem;
|
|
3
|
+
z-index: 1000;
|
|
4
|
+
|
|
5
|
+
&.b-popover-entering {
|
|
6
|
+
animation: b-popover-entering 0.1s ease-out forwards;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&.b-popover-leaving {
|
|
10
|
+
animation: b-popover-leaving 0.1s ease-in forwards;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.b-popover-backdrop {
|
|
15
|
+
position: fixed;
|
|
16
|
+
inset: 0;
|
|
17
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
18
|
+
z-index: 999;
|
|
19
|
+
animation: b-backdrop-entering 0.15s ease-out forwards;
|
|
20
|
+
|
|
21
|
+
&.b-backdrop-light {
|
|
22
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.b-backdrop-dark {
|
|
26
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.b-backdrop-blur {
|
|
30
|
+
backdrop-filter: blur(4px);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes b-popover-entering {
|
|
35
|
+
from {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: scale(0.98);
|
|
38
|
+
}
|
|
39
|
+
to {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transform: scale(1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@keyframes b-popover-leaving {
|
|
46
|
+
from {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transform: scale(1);
|
|
49
|
+
}
|
|
50
|
+
to {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transform: scale(0.98);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes b-backdrop-entering {
|
|
57
|
+
from {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
to {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
input[b-range] {
|
|
2
|
+
@apply appearance-none w-full bg-secondary dark:bg-secondary-dark rounded-full cursor-pointer m-0 outline-none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
input[b-range]::-webkit-slider-thumb {
|
|
6
|
+
@apply appearance-none rounded-full cursor-pointer transition-colors inset-ring-1 inset-ring-ring border-0;
|
|
7
|
+
@apply bg-primary dark:bg-primary-dark dark:inset-ring-ring-dark;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
input[b-range] {
|
|
11
|
+
@apply h-2;
|
|
12
|
+
}
|
|
13
|
+
input[b-range]::-webkit-slider-thumb {
|
|
14
|
+
@apply w-5 h-5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
input[b-range].b-size-sm {
|
|
18
|
+
@apply h-1;
|
|
19
|
+
}
|
|
20
|
+
input[b-range].b-size-sm::-webkit-slider-thumb {
|
|
21
|
+
@apply w-3 h-3;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
input[b-range].b-size-lg {
|
|
25
|
+
@apply h-3;
|
|
26
|
+
}
|
|
27
|
+
input[b-range].b-size-lg::-webkit-slider-thumb {
|
|
28
|
+
@apply w-6 h-6;
|
|
29
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
b-row-item {
|
|
2
|
-
&:not(&:last-child) {
|
|
3
|
-
.row-item-container {
|
|
4
|
-
border-right: 1px solid var(--border-color, transparent);
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
.row-item-container {
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
height: 100%;
|
|
12
|
-
padding-inline: 10px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
b-row-item {
|
|
2
|
+
&:not(&:last-child) {
|
|
3
|
+
.row-item-container {
|
|
4
|
+
border-right: 1px solid var(--border-color, transparent);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
.row-item-container {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
height: 100%;
|
|
12
|
+
padding-inline: 10px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,56 +1,48 @@
|
|
|
1
|
-
b-row {
|
|
2
|
-
.row-container {
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
display: flex;
|
|
5
|
-
border-top: 1px solid var(--border-color, transparent);
|
|
6
|
-
height: 30px;
|
|
7
|
-
background: var(--background, #ffffff);
|
|
8
|
-
color: var(--foreground, #798194);
|
|
9
|
-
|
|
10
|
-
&.header {
|
|
11
|
-
background: color-mix(
|
|
12
|
-
in srgb,
|
|
13
|
-
var(--background, #ffffff) 50%,
|
|
14
|
-
color-mix(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.highlighted {
|
|
53
|
-
background: color-mix(in srgb, white 95%, var(--primary, #0a0a0a));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
b-row {
|
|
2
|
+
.row-container {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
border-top: 1px solid var(--border-color, transparent);
|
|
6
|
+
height: 30px;
|
|
7
|
+
background: var(--background, #ffffff);
|
|
8
|
+
color: var(--foreground, #798194);
|
|
9
|
+
|
|
10
|
+
&.header {
|
|
11
|
+
background: color-mix(
|
|
12
|
+
in srgb,
|
|
13
|
+
var(--background, #ffffff) 50%,
|
|
14
|
+
color-mix(in srgb, var(--foreground, #798194) 5%, var(--background, #ffffff))
|
|
15
|
+
);
|
|
16
|
+
color: var(--primary-foreground, #ffffff);
|
|
17
|
+
min-height: 30px;
|
|
18
|
+
border-top: 0;
|
|
19
|
+
border-bottom: 1px solid var(--border-color, transparent);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.subheader {
|
|
23
|
+
background: var(--background, #ffffff);
|
|
24
|
+
color: var(--primary-foreground, #ffffff);
|
|
25
|
+
min-height: 30px;
|
|
26
|
+
height: auto;
|
|
27
|
+
border-top: 0;
|
|
28
|
+
border-bottom: 1px solid var(--border-color, transparent);
|
|
29
|
+
|
|
30
|
+
.row-item-container {
|
|
31
|
+
padding: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
&.clickable {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
&:not(.header) {
|
|
39
|
+
background: color-mix(in srgb, var(--foreground, #798194) 5%, var(--background, #ffffff));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.highlighted {
|
|
45
|
+
background: color-mix(in srgb, white 95%, var(--primary, #0a0a0a));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
ul[b-select-options] {
|
|
2
|
+
@apply list-none p-1 box-border m-0 relative bg-background shadow-xs rounded-lg inset-ring-1 inset-ring-ring flex flex-col gap-1 w-full overflow-y-auto;
|
|
3
|
+
|
|
4
|
+
.no-options-message {
|
|
5
|
+
@apply py-1 px-2 text-sm;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Overlay Animations */
|
|
9
|
+
opacity: 0;
|
|
10
|
+
|
|
11
|
+
&.b-overlay-bottom,
|
|
12
|
+
&.b-overlay-top,
|
|
13
|
+
&.b-overlay-left,
|
|
14
|
+
&.b-overlay-right {
|
|
15
|
+
transition:
|
|
16
|
+
transform 150ms ease-in-out,
|
|
17
|
+
opacity 150ms ease-in-out;
|
|
18
|
+
opacity: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.b-overlay-bottom {
|
|
22
|
+
transform: translateY(5px);
|
|
23
|
+
|
|
24
|
+
&.b-overlay-leave {
|
|
25
|
+
transform: translateY(0);
|
|
26
|
+
opacity: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.b-overlay-top {
|
|
31
|
+
transform: translateY(-5px);
|
|
32
|
+
|
|
33
|
+
&.b-overlay-leave {
|
|
34
|
+
transform: translateY(0);
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.b-overlay-left {
|
|
40
|
+
transform: translateX(-5px);
|
|
41
|
+
|
|
42
|
+
&.b-overlay-leave {
|
|
43
|
+
transform: translateX(0);
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.b-overlay-right {
|
|
49
|
+
transform: translateX(5px);
|
|
50
|
+
|
|
51
|
+
&.b-overlay-leave {
|
|
52
|
+
transform: translateX(0);
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|