@basis-ng/styles 0.0.1-alpha.74 → 0.0.1-alpha.75
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 +1 -1
- package/src/components/alert.component.css +71 -71
- package/src/components/attached-box.component.css +84 -84
- package/src/components/badge.component.css +58 -58
- package/src/components/button-group.component.css +20 -20
- package/src/components/button.component.css +180 -180
- package/src/components/card.component.css +37 -37
- package/src/components/checkbox.component.css +41 -41
- package/src/components/color-picker.component.css +34 -34
- package/src/components/combobox-options.component.css +21 -21
- package/src/components/combobox.component.css +62 -62
- package/src/components/command-options.component.css +13 -13
- package/src/components/command.component.css +25 -25
- package/src/components/dialog.component.css +41 -41
- package/src/components/drawer.component.css +49 -49
- package/src/components/icon.component.css +5 -5
- package/src/components/input-group.component.css +80 -80
- package/src/components/input.component.css +73 -73
- package/src/components/label.component.css +74 -74
- package/src/components/menu-group.component.css +18 -18
- package/src/components/menu-item-checkbox.component.css +44 -44
- package/src/components/menu-item-radio.component.css +45 -45
- package/src/components/menu-item.component.css +45 -44
- package/src/components/menu-label.component.css +4 -4
- package/src/components/menu.component.css +22 -22
- package/src/components/option.component.css +26 -26
- package/src/components/range.component.css +39 -39
- package/src/components/row-item.component.css +14 -14
- package/src/components/row.component.css +56 -56
- package/src/components/select-options.component.css +70 -70
- package/src/components/select.component.css +11 -11
- package/src/components/sheet.component.css +59 -59
- package/src/components/spinner.component.css +13 -13
- package/src/components/switch.component.css +68 -68
- package/src/components/tab.component.css +32 -32
- package/src/components/table.component.css +34 -34
- package/src/components/tabs.component.css +12 -12
- package/src/components/textarea.component.css +59 -59
- package/src/components/tooltip.component.css +72 -72
- package/src/components/tree-node.component.css +77 -77
- package/src/components/tree.component.css +7 -7
- package/src/index.css +41 -41
package/package.json
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
b-alert {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 1rem;
|
|
5
|
-
padding: 1rem;
|
|
6
|
-
border-radius: 0.5rem;
|
|
7
|
-
position: relative;
|
|
8
|
-
font-family: 'Geist', sans-serif;
|
|
9
|
-
max-width: var(--max-width, none);
|
|
10
|
-
width: 100%;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
|
|
13
|
-
.icon {
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
align-self: flex-start;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.content {
|
|
19
|
-
flex-grow: 1;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
gap: 0.5rem;
|
|
23
|
-
|
|
24
|
-
.title {
|
|
25
|
-
font-weight: bold;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.body {
|
|
29
|
-
font-size: 0.875rem;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
gap: 0.2rem;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.success {
|
|
37
|
-
background-color: var(--success);
|
|
38
|
-
color: var(--success-foreground);
|
|
39
|
-
border: 1px solid var(--success-border-color);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.error {
|
|
43
|
-
background-color: var(--error);
|
|
44
|
-
color: var(--error-foreground);
|
|
45
|
-
border: 1px solid var(--error-border-color);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.warning {
|
|
49
|
-
background-color: var(--warning);
|
|
50
|
-
color: var(--warning-foreground);
|
|
51
|
-
border: 1px solid var(--warning-border-color);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.info {
|
|
55
|
-
background-color: var(--secondary);
|
|
56
|
-
color: var(--secondary-foreground);
|
|
57
|
-
border: 1px solid var(--secondary-border-color);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.close-btn {
|
|
61
|
-
align-self: flex-start;
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
background: none;
|
|
64
|
-
border: none;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
color: inherit;
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: start;
|
|
69
|
-
padding: 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
b-alert {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
padding: 1rem;
|
|
6
|
+
border-radius: 0.5rem;
|
|
7
|
+
position: relative;
|
|
8
|
+
font-family: 'Geist', sans-serif;
|
|
9
|
+
max-width: var(--max-width, none);
|
|
10
|
+
width: 100%;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
|
|
13
|
+
.icon {
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
align-self: flex-start;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.content {
|
|
19
|
+
flex-grow: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 0.5rem;
|
|
23
|
+
|
|
24
|
+
.title {
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.body {
|
|
29
|
+
font-size: 0.875rem;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 0.2rem;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.success {
|
|
37
|
+
background-color: var(--success);
|
|
38
|
+
color: var(--success-foreground);
|
|
39
|
+
border: 1px solid var(--success-border-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.error {
|
|
43
|
+
background-color: var(--error);
|
|
44
|
+
color: var(--error-foreground);
|
|
45
|
+
border: 1px solid var(--error-border-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.warning {
|
|
49
|
+
background-color: var(--warning);
|
|
50
|
+
color: var(--warning-foreground);
|
|
51
|
+
border: 1px solid var(--warning-border-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.info {
|
|
55
|
+
background-color: var(--secondary);
|
|
56
|
+
color: var(--secondary-foreground);
|
|
57
|
+
border: 1px solid var(--secondary-border-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.close-btn {
|
|
61
|
+
align-self: flex-start;
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
background: none;
|
|
64
|
+
border: none;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
color: inherit;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: start;
|
|
69
|
+
padding: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
b-attached-box {
|
|
2
|
-
position: relative;
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
|
|
5
|
-
.b-attached-box-content {
|
|
6
|
-
position: absolute;
|
|
7
|
-
display: flex;
|
|
8
|
-
z-index: 1000;
|
|
9
|
-
opacity: 0;
|
|
10
|
-
transform: scale(var(--scale-from, 0.99))
|
|
11
|
-
var(--translate-from, translateX(-10px));
|
|
12
|
-
transition:
|
|
13
|
-
opacity var(--duration, 0.15s) var(--enter-delay, 0s),
|
|
14
|
-
transform var(--duration, 0.15s) var(--enter-delay, 0s);
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
|
|
17
|
-
&.visible {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
transform: scale(var(--scale-to, 1)) var(--translate-to, translateX(0));
|
|
20
|
-
pointer-events: all;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Positioning classes */
|
|
24
|
-
&.top-left {
|
|
25
|
-
bottom: calc(100% + var(--gap, 0.5rem));
|
|
26
|
-
left: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.top-center {
|
|
30
|
-
bottom: calc(100% + var(--gap, 0.5rem));
|
|
31
|
-
left: 50%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&.top-right {
|
|
35
|
-
bottom: calc(100% + var(--gap, 0.5rem));
|
|
36
|
-
right: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.bottom-left {
|
|
40
|
-
top: calc(100% + var(--gap, 0.5rem));
|
|
41
|
-
left: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.bottom-center {
|
|
45
|
-
top: calc(100% + var(--gap, 0.5rem));
|
|
46
|
-
left: 50%;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.bottom-right {
|
|
50
|
-
top: calc(100% + var(--gap, 0.5rem));
|
|
51
|
-
right: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.left-top {
|
|
55
|
-
right: calc(100% + var(--gap, 0.5rem));
|
|
56
|
-
top: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.left-center {
|
|
60
|
-
right: calc(100% + var(--gap, 0.5rem));
|
|
61
|
-
top: 50%;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.left-bottom {
|
|
65
|
-
right: calc(100% + var(--gap, 0.5rem));
|
|
66
|
-
bottom: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.right-top {
|
|
70
|
-
left: calc(100% + var(--gap, 0.5rem));
|
|
71
|
-
top: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.right-center {
|
|
75
|
-
left: calc(100% + var(--gap, 0.5rem));
|
|
76
|
-
top: 50%;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&.right-bottom {
|
|
80
|
-
left: calc(100% + var(--gap, 0.5rem));
|
|
81
|
-
bottom: 0;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
b-attached-box {
|
|
2
|
+
position: relative;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
|
|
5
|
+
.b-attached-box-content {
|
|
6
|
+
position: absolute;
|
|
7
|
+
display: flex;
|
|
8
|
+
z-index: 1000;
|
|
9
|
+
opacity: 0;
|
|
10
|
+
transform: scale(var(--scale-from, 0.99))
|
|
11
|
+
var(--translate-from, translateX(-10px));
|
|
12
|
+
transition:
|
|
13
|
+
opacity var(--duration, 0.15s) var(--enter-delay, 0s),
|
|
14
|
+
transform var(--duration, 0.15s) var(--enter-delay, 0s);
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
|
|
17
|
+
&.visible {
|
|
18
|
+
opacity: 1;
|
|
19
|
+
transform: scale(var(--scale-to, 1)) var(--translate-to, translateX(0));
|
|
20
|
+
pointer-events: all;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Positioning classes */
|
|
24
|
+
&.top-left {
|
|
25
|
+
bottom: calc(100% + var(--gap, 0.5rem));
|
|
26
|
+
left: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.top-center {
|
|
30
|
+
bottom: calc(100% + var(--gap, 0.5rem));
|
|
31
|
+
left: 50%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.top-right {
|
|
35
|
+
bottom: calc(100% + var(--gap, 0.5rem));
|
|
36
|
+
right: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.bottom-left {
|
|
40
|
+
top: calc(100% + var(--gap, 0.5rem));
|
|
41
|
+
left: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.bottom-center {
|
|
45
|
+
top: calc(100% + var(--gap, 0.5rem));
|
|
46
|
+
left: 50%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.bottom-right {
|
|
50
|
+
top: calc(100% + var(--gap, 0.5rem));
|
|
51
|
+
right: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.left-top {
|
|
55
|
+
right: calc(100% + var(--gap, 0.5rem));
|
|
56
|
+
top: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.left-center {
|
|
60
|
+
right: calc(100% + var(--gap, 0.5rem));
|
|
61
|
+
top: 50%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.left-bottom {
|
|
65
|
+
right: calc(100% + var(--gap, 0.5rem));
|
|
66
|
+
bottom: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.right-top {
|
|
70
|
+
left: calc(100% + var(--gap, 0.5rem));
|
|
71
|
+
top: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.right-center {
|
|
75
|
+
left: calc(100% + var(--gap, 0.5rem));
|
|
76
|
+
top: 50%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.right-bottom {
|
|
80
|
+
left: calc(100% + var(--gap, 0.5rem));
|
|
81
|
+
bottom: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
span[b-badge] {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
justify-content: center;
|
|
4
|
-
align-items: center;
|
|
5
|
-
font-size: 0.875rem;
|
|
6
|
-
font-weight: 500;
|
|
7
|
-
border-radius: 9999px;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
transition:
|
|
10
|
-
background-color 0.2s,
|
|
11
|
-
opacity 0.2s;
|
|
12
|
-
|
|
13
|
-
&.primary {
|
|
14
|
-
background-color: var(--primary, #0a0a0a);
|
|
15
|
-
color: var(--primary-foreground, #ffffff);
|
|
16
|
-
border: var(--border-px, 0px) solid var(--primary-border-color, #0a0a0a);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.secondary {
|
|
20
|
-
background-color: color-mix(
|
|
21
|
-
in srgb,
|
|
22
|
-
var(--secondary-foreground, #0a0a0a) 5%,
|
|
23
|
-
var(--secondary, transparent)
|
|
24
|
-
);
|
|
25
|
-
color: var(--secondary-foreground, #0a0a0a);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.ghost {
|
|
29
|
-
background-color: transparent;
|
|
30
|
-
color: var(--secondary-foreground, #0a0a0a);
|
|
31
|
-
|
|
32
|
-
@media (width > 768px) {
|
|
33
|
-
&:hover {
|
|
34
|
-
background-color: color-mix(
|
|
35
|
-
in srgb,
|
|
36
|
-
var(--secondary-foreground, #0a0a0a) 5%,
|
|
37
|
-
var(--secondary, transparent)
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.outlined {
|
|
44
|
-
background-color: var(--background, #ffffff);
|
|
45
|
-
border: 1px solid var(--border-color, #ececec);
|
|
46
|
-
color: var(--secondary-foreground, #0a0a0a);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.size-small {
|
|
50
|
-
font-size: 0.75rem;
|
|
51
|
-
padding: 0.2rem 0.6rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.size-default {
|
|
55
|
-
font-size: 0.875rem;
|
|
56
|
-
padding: 0.25rem 0.8rem;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
span[b-badge] {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
font-size: 0.875rem;
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
border-radius: 9999px;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
transition:
|
|
10
|
+
background-color 0.2s,
|
|
11
|
+
opacity 0.2s;
|
|
12
|
+
|
|
13
|
+
&.primary {
|
|
14
|
+
background-color: var(--primary, #0a0a0a);
|
|
15
|
+
color: var(--primary-foreground, #ffffff);
|
|
16
|
+
border: var(--border-px, 0px) solid var(--primary-border-color, #0a0a0a);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.secondary {
|
|
20
|
+
background-color: color-mix(
|
|
21
|
+
in srgb,
|
|
22
|
+
var(--secondary-foreground, #0a0a0a) 5%,
|
|
23
|
+
var(--secondary, transparent)
|
|
24
|
+
);
|
|
25
|
+
color: var(--secondary-foreground, #0a0a0a);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.ghost {
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
color: var(--secondary-foreground, #0a0a0a);
|
|
31
|
+
|
|
32
|
+
@media (width > 768px) {
|
|
33
|
+
&:hover {
|
|
34
|
+
background-color: color-mix(
|
|
35
|
+
in srgb,
|
|
36
|
+
var(--secondary-foreground, #0a0a0a) 5%,
|
|
37
|
+
var(--secondary, transparent)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.outlined {
|
|
44
|
+
background-color: var(--background, #ffffff);
|
|
45
|
+
border: 1px solid var(--border-color, #ececec);
|
|
46
|
+
color: var(--secondary-foreground, #0a0a0a);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.size-small {
|
|
50
|
+
font-size: 0.75rem;
|
|
51
|
+
padding: 0.2rem 0.6rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.size-default {
|
|
55
|
+
font-size: 0.875rem;
|
|
56
|
+
padding: 0.25rem 0.8rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
b-button-group {
|
|
2
|
-
display: flex;
|
|
3
|
-
|
|
4
|
-
&:not(.spaced) {
|
|
5
|
-
button:not(:last-child) {
|
|
6
|
-
border-right: none !important;
|
|
7
|
-
border-top-right-radius: 0 !important;
|
|
8
|
-
border-bottom-right-radius: 0 !important;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
button:not(:first-child) {
|
|
12
|
-
border-top-left-radius: 0 !important;
|
|
13
|
-
border-bottom-left-radius: 0 !important;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.spaced {
|
|
18
|
-
gap: 0.5rem;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
b-button-group {
|
|
2
|
+
display: flex;
|
|
3
|
+
|
|
4
|
+
&:not(.spaced) {
|
|
5
|
+
button:not(:last-child) {
|
|
6
|
+
border-right: none !important;
|
|
7
|
+
border-top-right-radius: 0 !important;
|
|
8
|
+
border-bottom-right-radius: 0 !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
button:not(:first-child) {
|
|
12
|
+
border-top-left-radius: 0 !important;
|
|
13
|
+
border-bottom-left-radius: 0 !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.spaced {
|
|
18
|
+
gap: 0.5rem;
|
|
19
|
+
}
|
|
20
|
+
}
|