@celar-ui/svelte 1.8.2 → 2.0.0
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/dist/buttons/BaseButton.svelte +0 -2
- package/dist/buttons/BaseButton.svelte.d.ts +0 -1
- package/dist/buttons/ElevatedButton.svelte +1 -3
- package/dist/buttons/ElevatedButton.svelte.d.ts +1 -1
- package/dist/buttons/ExpandedTextButton.svelte +2 -2
- package/dist/buttons/ExpandedTextButton.svelte.d.ts +1 -1
- package/dist/buttons/FilledButton.svelte +1 -2
- package/dist/buttons/FilledButton.svelte.d.ts +1 -1
- package/dist/buttons/IconButton.svelte +1 -1
- package/dist/buttons/IconButton.svelte.d.ts +1 -1
- package/dist/buttons/OutlinedButton.svelte +1 -3
- package/dist/buttons/OutlinedButton.svelte.d.ts +1 -1
- package/dist/buttons/TextBaseButton.svelte +15 -46
- package/dist/buttons/TextButton.svelte +1 -3
- package/dist/buttons/TextButton.svelte.d.ts +1 -1
- package/dist/buttons/styles/button_utils.css +37 -0
- package/dist/buttons/styles/elevated_button.css +19 -0
- package/dist/buttons/styles/expanded_text_button.css +23 -0
- package/dist/buttons/styles/filled_button.css +21 -0
- package/dist/buttons/styles/icon_button.css +42 -0
- package/dist/buttons/styles/outlined_button.css +21 -0
- package/dist/buttons/styles/text_button.css +22 -0
- package/dist/containment/Avatar.svelte +1 -1
- package/dist/containment/Avatar.svelte.d.ts +1 -1
- package/dist/containment/Breadcrumb.svelte +1 -23
- package/dist/containment/Breadcrumb.svelte.d.ts +1 -0
- package/dist/containment/Card.svelte +1 -1
- package/dist/containment/Card.svelte.d.ts +1 -1
- package/dist/containment/Container.svelte +1 -1
- package/dist/containment/Container.svelte.d.ts +1 -1
- package/dist/containment/Spacer.svelte +17 -11
- package/dist/containment/SurfaceContainer.svelte +1 -1
- package/dist/containment/SurfaceContainer.svelte.d.ts +1 -1
- package/dist/containment/styles/avatar.css +20 -0
- package/dist/containment/styles/breadcrumb.css +27 -0
- package/dist/containment/styles/card.css +7 -0
- package/dist/containment/styles/container.css +26 -0
- package/dist/containment/styles/surface-container.css +29 -0
- package/dist/inputs/Checkbox.svelte +43 -45
- package/dist/inputs/ColorInput.svelte +63 -51
- package/dist/inputs/FileInput.svelte +39 -30
- package/dist/inputs/RadioGroup.svelte +1 -2
- package/dist/inputs/RadioGroup.svelte.d.ts +1 -1
- package/dist/inputs/RadioItem.svelte +38 -36
- package/dist/inputs/Slider.svelte +78 -86
- package/dist/inputs/Switch.svelte +49 -54
- package/dist/inputs/TagInput.svelte +77 -67
- package/dist/inputs/TextInput.svelte +83 -76
- package/dist/inputs/styles/radio_group.css +6 -0
- package/dist/misc/Badge.svelte +48 -40
- package/dist/misc/DotSpinner.svelte +8 -4
- package/dist/misc/DuckSpinner.svelte +92 -70
- package/dist/misc/Gap.svelte +12 -6
- package/dist/misc/LinearProgressIndicator.svelte +38 -29
- package/dist/navigation/AdaptiveSidebar.svelte +64 -70
- package/dist/navigation/AdaptiveSidebar.svelte.d.ts +1 -1
- package/dist/navigation/AppBar.svelte +39 -31
- package/dist/navigation/NavigationBar.svelte +27 -35
- package/dist/navigation/NavigationBarButton.svelte +42 -33
- package/dist/navigation/NavigationDrawer.svelte +1 -81
- package/dist/navigation/NavigationDrawer.svelte.d.ts +1 -0
- package/dist/navigation/styles/navigation_drawer.css +93 -0
- package/dist/overlay/CommandDialog.svelte +1 -1
- package/dist/overlay/CommandDialog.svelte.d.ts +1 -1
- package/dist/overlay/Dialog.svelte +1 -1
- package/dist/overlay/Dialog.svelte.d.ts +1 -1
- package/dist/overlay/MinimalDialog.svelte +1 -1
- package/dist/overlay/MinimalDialog.svelte.d.ts +1 -1
- package/dist/overlay/MinimalSurfaceDialog.svelte +3 -3
- package/dist/overlay/MinimalSurfaceDialog.svelte.d.ts +3 -3
- package/dist/overlay/Popover.svelte +1 -1
- package/dist/overlay/Popover.svelte.d.ts +1 -1
- package/dist/overlay/styles/command.css +125 -0
- package/dist/overlay/styles/dialog.css +64 -0
- package/dist/overlay/styles/popover.css +9 -0
- package/dist/overlay/styles/surface-dialog.css +21 -0
- package/package.json +15 -13
- package/src/styles/index.css +6 -0
- package/src/styles/theme.css +94 -0
- package/dist/buttons/styles/base_button.scss +0 -30
- package/dist/buttons/styles/elevated_button.scss +0 -20
- package/dist/buttons/styles/expanded_text_button.scss +0 -20
- package/dist/buttons/styles/filled_button.scss +0 -17
- package/dist/buttons/styles/icon_button.scss +0 -38
- package/dist/buttons/styles/outlined_button.scss +0 -18
- package/dist/buttons/styles/text_button.scss +0 -17
- package/dist/containment/styles/avatar.scss +0 -16
- package/dist/containment/styles/card.scss +0 -3
- package/dist/containment/styles/container.scss +0 -22
- package/dist/containment/styles/surface-container.scss +0 -27
- package/dist/inputs/styles/radio_group.scss +0 -3
- package/dist/overlay/styles/command.scss +0 -121
- package/dist/overlay/styles/dialog.scss +0 -69
- package/dist/overlay/styles/popover.scss +0 -5
- package/dist/overlay/styles/surface-dialog.scss +0 -17
- package/src/styles/colors.scss +0 -43
- package/src/styles/config.scss +0 -1
- package/src/styles/misc.scss +0 -15
- package/src/styles/scheme.scss +0 -80
- package/src/styles/spacing.scss +0 -23
- package/src/styles/utils.scss +0 -27
|
@@ -7,32 +7,41 @@
|
|
|
7
7
|
<div data-linear-progress-indicator-line></div>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
<style>
|
|
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
|
-
|
|
10
|
+
<style>
|
|
11
|
+
@reference '$style/index.css';
|
|
12
|
+
|
|
13
|
+
@layer components {
|
|
14
|
+
[data-linear-progress-indicator] {
|
|
15
|
+
--line-height: --spacing(1.5);
|
|
16
|
+
--anim-duration: 1.7s;
|
|
17
|
+
|
|
18
|
+
display: block;
|
|
19
|
+
position: relative;
|
|
20
|
+
background-color: var(--color-surfaceDim);
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: var(--line-height);
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
[data-linear-progress-indicator-line] {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
animation: linear-progress-animation var(--anim-duration) linear infinite;
|
|
30
|
+
background-color: var(--color-primary);
|
|
31
|
+
width: 0;
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes linear-progress-animation {
|
|
36
|
+
0% {
|
|
37
|
+
left: -8%;
|
|
38
|
+
width: 8%;
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
left: 100%;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import '../containment/styles/surface-container.
|
|
2
|
+
import '../containment/styles/surface-container.css';
|
|
3
3
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
4
|
|
|
5
5
|
interface AdaptiveSidebarProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -46,76 +46,70 @@
|
|
|
46
46
|
</aside>
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
|
-
<style
|
|
50
|
-
|
|
51
|
-
--gap--x2: 2rem;
|
|
52
|
-
--gap: 1rem;
|
|
53
|
-
--gap--md: 0.7rem;
|
|
54
|
-
--gap--half: 0.5rem;
|
|
55
|
-
--gap--sm: 0.3rem;
|
|
56
|
-
--gap--xs: 0.1rem;
|
|
57
|
-
--break--xs: 540px;
|
|
58
|
-
--break--sm: 960px;
|
|
59
|
-
--break--md: 1320px;
|
|
60
|
-
}
|
|
49
|
+
<style>
|
|
50
|
+
@reference '$style/index.css';
|
|
61
51
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
transition-timing-function: ease-in;
|
|
75
|
-
transition-duration: var(--transition-dur);
|
|
76
|
-
}
|
|
52
|
+
@layer components {
|
|
53
|
+
[data-adaptive-sidebar-backdrop] {
|
|
54
|
+
@apply bg-onBackground/20 blur-md transition-all;
|
|
55
|
+
position: fixed;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
z-index: 100;
|
|
61
|
+
visibility: hidden;
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
77
64
|
|
|
78
|
-
[data-adaptive-sidebar] {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
65
|
+
[data-adaptive-sidebar] {
|
|
66
|
+
@apply shadow-lg transition-all;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
z-index: 100;
|
|
69
|
+
height: 100vh;
|
|
70
|
+
width: var(--expanded);
|
|
71
|
+
padding: --spacing(4);
|
|
72
|
+
border-radius: 0 --spacing(8) --spacing(8) 0;
|
|
73
|
+
max-width: 80vw;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
position: fixed;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
transform: translateX(-100%);
|
|
79
|
+
opacity: 0;
|
|
80
|
+
visibility: hidden;
|
|
92
81
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
@variant sm {
|
|
83
|
+
position: relative;
|
|
84
|
+
opacity: 1;
|
|
85
|
+
visibility: visible;
|
|
86
|
+
width: var(--width);
|
|
87
|
+
transform: initial;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
96
90
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
91
|
+
[data-adaptive-sidebar-state] {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[data-adaptive-sidebar-state]:checked {
|
|
96
|
+
~ [data-adaptive-sidebar-backdrop] {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
visibility: visible;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
~ [data-adaptive-sidebar] {
|
|
102
|
+
transform: translateX(0);
|
|
103
|
+
opacity: 1;
|
|
104
|
+
visibility: visible;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@variant sm {
|
|
108
|
+
~ [data-adaptive-sidebar-backdrop] {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
visibility: hidden;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
</style>
|
|
@@ -27,34 +27,42 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
</section>
|
|
29
29
|
|
|
30
|
-
<style>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
30
|
+
<style>
|
|
31
|
+
@reference '$style/index.css';
|
|
32
|
+
|
|
33
|
+
@layer components {
|
|
34
|
+
[data-app-bar] {
|
|
35
|
+
@apply bg-background/88 backdrop-blur;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
display: flex;
|
|
38
|
+
position: relative;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: --spacing(2);
|
|
42
|
+
padding: 0 --spacing(2);
|
|
43
|
+
min-height: --spacing(12);
|
|
44
|
+
|
|
45
|
+
[data-app-bar-left] {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--gap--half);
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
|
|
51
|
+
[data-app-bar-title] {
|
|
52
|
+
flex: 1;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
font-size: 1.1rem;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-app-bar-actions] {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: --spacing(1.5);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
</style>
|
|
@@ -8,39 +8,31 @@
|
|
|
8
8
|
{@render children?.()}
|
|
9
9
|
</section>
|
|
10
10
|
|
|
11
|
-
<style
|
|
12
|
-
|
|
13
|
-
--gap--x2: 2rem;
|
|
14
|
-
--gap: 1rem;
|
|
15
|
-
--gap--md: 0.7rem;
|
|
16
|
-
--gap--half: 0.5rem;
|
|
17
|
-
--gap--sm: 0.3rem;
|
|
18
|
-
--gap--xs: 0.1rem;
|
|
19
|
-
--break--xs: 540px;
|
|
20
|
-
--break--sm: 960px;
|
|
21
|
-
--break--md: 1320px;
|
|
22
|
-
}
|
|
11
|
+
<style>
|
|
12
|
+
@reference '$style/index.css';
|
|
23
13
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
14
|
+
@layer components {
|
|
15
|
+
[data-navigation-bar] {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
display: flex;
|
|
18
|
+
position: relative;
|
|
19
|
+
justify-content: space-evenly;
|
|
20
|
+
border-top-right-radius: var(--radius-2xl);
|
|
21
|
+
border-top-left-radius: var(--radius-2xl);
|
|
22
|
+
background-color: var(--color-surfaceContainerLow);
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: auto;
|
|
25
|
+
|
|
26
|
+
@variant sm {
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
border-top-left-radius: 0;
|
|
30
|
+
border-bottom-right-radius: var(--radius);
|
|
31
|
+
padding: 0 --spacing(2);
|
|
32
|
+
width: -moz-min-content;
|
|
33
|
+
width: min-content;
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
@@ -23,36 +23,45 @@
|
|
|
23
23
|
{@render children?.()}
|
|
24
24
|
</a>
|
|
25
25
|
|
|
26
|
-
<style>
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
26
|
+
<style>
|
|
27
|
+
@reference '$style/index.css';
|
|
28
|
+
|
|
29
|
+
@layer components {
|
|
30
|
+
[data-navigation-bar-button] {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
justify-content: flex-start;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: --spacing(1);
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
padding: --spacing(2) 0;
|
|
39
|
+
width: 100%;
|
|
40
|
+
color: var(--color-onSurface);
|
|
41
|
+
text-align: center;
|
|
42
|
+
font-size: 0.8rem;
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
-webkit-tap-highlight-color: transparent;
|
|
45
|
+
|
|
46
|
+
&:not(:disabled):active {
|
|
47
|
+
top: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
& > [data-navigation-bar-button-icon] {
|
|
52
|
+
background-color: var(--color-primaryContainer);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&[data-active='true'] {
|
|
57
|
+
& > [data-navigation-bar-button-icon] {
|
|
58
|
+
background-color: var(--color-inversePrimary);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& > [data-navigation-bar-button-icon] {
|
|
63
|
+
@apply rounded-2xl bg-transparent px-4 py-1 transition-all;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
</style>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import './styles/navigation_drawer.css';
|
|
2
3
|
import { fade, fly } from 'svelte/transition';
|
|
3
4
|
import { Dialog as BitDialog, type DialogRootProps } from 'bits-ui';
|
|
4
5
|
import type { Snippet } from 'svelte';
|
|
@@ -79,84 +80,3 @@
|
|
|
79
80
|
</BitDialog.Content>
|
|
80
81
|
</BitDialog.Portal>
|
|
81
82
|
</BitDialog.Root>
|
|
82
|
-
|
|
83
|
-
<style>:global([data-navigation-drawer-backdrop]) {
|
|
84
|
-
position: fixed;
|
|
85
|
-
top: 0;
|
|
86
|
-
left: 0;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
backdrop-filter: blur(var(--blur-length));
|
|
90
|
-
background-color: rgba(var(--color-onBackground--rgb), 0.2);
|
|
91
|
-
z-index: 100;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
:global([data-navigation-drawer]) {
|
|
95
|
-
box-sizing: border-box;
|
|
96
|
-
display: flex;
|
|
97
|
-
position: fixed;
|
|
98
|
-
top: 0;
|
|
99
|
-
z-index: 100;
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
background-color: var(--color-surface);
|
|
102
|
-
height: 100dvh;
|
|
103
|
-
overflow-y: auto;
|
|
104
|
-
box-shadow: 0 var(--gap--xs) var(--gap--half) var(--color-shadow--md);
|
|
105
|
-
max-width: 85%;
|
|
106
|
-
}
|
|
107
|
-
:global([data-navigation-drawer])[data-position=left] {
|
|
108
|
-
left: 0;
|
|
109
|
-
border-top-right-radius: var(--radius);
|
|
110
|
-
border-bottom-right-radius: var(--radius);
|
|
111
|
-
}
|
|
112
|
-
:global([data-navigation-drawer])[data-position=right] {
|
|
113
|
-
right: 0;
|
|
114
|
-
border-top-left-radius: var(--radius);
|
|
115
|
-
border-bottom-left-radius: var(--radius);
|
|
116
|
-
}
|
|
117
|
-
:global([data-navigation-drawer]) [data-navigation-drawer-header] {
|
|
118
|
-
display: flex;
|
|
119
|
-
justify-content: space-between;
|
|
120
|
-
align-items: center;
|
|
121
|
-
border-bottom: 1px solid var(--color-border);
|
|
122
|
-
padding: var(--gap);
|
|
123
|
-
flex-shrink: 0;
|
|
124
|
-
}
|
|
125
|
-
:global([data-navigation-drawer]) [data-navigation-drawer-header] [data-navigation-drawer-close] {
|
|
126
|
-
margin-left: auto;
|
|
127
|
-
}
|
|
128
|
-
:global([data-navigation-drawer]) [data-navigation-drawer-content] {
|
|
129
|
-
flex: 1;
|
|
130
|
-
overflow-y: auto;
|
|
131
|
-
padding: var(--gap--half);
|
|
132
|
-
}
|
|
133
|
-
:global([data-navigation-drawer]) [data-navigation-drawer-footer] {
|
|
134
|
-
border-top: 1px solid var(--color-border);
|
|
135
|
-
padding: var(--gap);
|
|
136
|
-
flex-shrink: 0;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* Scrollbar styling */
|
|
140
|
-
:global([data-navigation-drawer]) {
|
|
141
|
-
scrollbar-width: thin;
|
|
142
|
-
scrollbar-color: var(--color-border) transparent;
|
|
143
|
-
}
|
|
144
|
-
:global([data-navigation-drawer])::-webkit-scrollbar {
|
|
145
|
-
width: 6px;
|
|
146
|
-
}
|
|
147
|
-
:global([data-navigation-drawer])::-webkit-scrollbar-track {
|
|
148
|
-
background: transparent;
|
|
149
|
-
}
|
|
150
|
-
:global([data-navigation-drawer])::-webkit-scrollbar-thumb {
|
|
151
|
-
border-radius: 3px;
|
|
152
|
-
background-color: var(--color-border);
|
|
153
|
-
}
|
|
154
|
-
:global([data-navigation-drawer])::-webkit-scrollbar-thumb:hover {
|
|
155
|
-
background-color: var(--color-primaryContainer);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/* Focus management */
|
|
159
|
-
:global([data-navigation-drawer]:focus-visible) {
|
|
160
|
-
outline: 2px solid var(--color-primary);
|
|
161
|
-
outline-offset: -2px;
|
|
162
|
-
}</style>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@reference '$style/index.css';
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
[data-navigation-drawer-backdrop] {
|
|
5
|
+
@apply bg-onBackground/20 backdrop-blur;
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
z-index: 100;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-navigation-drawer] {
|
|
15
|
+
@apply shadow-lg;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
display: flex;
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
z-index: 100;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
background-color: var(--color-surface);
|
|
23
|
+
height: 100dvh;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
max-width: 85%;
|
|
26
|
+
|
|
27
|
+
&[data-position='left'] {
|
|
28
|
+
left: 0;
|
|
29
|
+
border-top-right-radius: var(--radius-2xl);
|
|
30
|
+
border-bottom-right-radius: var(--radius-2xl);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[data-position='right'] {
|
|
34
|
+
right: 0;
|
|
35
|
+
border-top-left-radius: var(--radius-2xl);
|
|
36
|
+
border-bottom-left-radius: var(--radius-2xl);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-navigation-drawer-header] {
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
align-items: center;
|
|
43
|
+
border-bottom: 1px solid --alpha(var(--color-onBackground) / 20%);
|
|
44
|
+
padding: --spacing(4);
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
|
|
47
|
+
[data-navigation-drawer-close] {
|
|
48
|
+
margin-left: auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-navigation-drawer-content] {
|
|
53
|
+
flex: 1;
|
|
54
|
+
overflow-y: auto;
|
|
55
|
+
padding: --spacing(2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-navigation-drawer-footer] {
|
|
59
|
+
border-top: 1px solid --alpha(var(--color-onBackground) / 20%);
|
|
60
|
+
padding: --spacing(4);
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Scrollbar styling */
|
|
66
|
+
[data-navigation-drawer] {
|
|
67
|
+
scrollbar-width: thin;
|
|
68
|
+
scrollbar-color: --alpha(var(--color-onBackground) / 20%) transparent;
|
|
69
|
+
|
|
70
|
+
&::-webkit-scrollbar {
|
|
71
|
+
width: 6px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&::-webkit-scrollbar-track {
|
|
75
|
+
background: transparent;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::-webkit-scrollbar-thumb {
|
|
79
|
+
border-radius: 3px;
|
|
80
|
+
background-color: --alpha(var(--color-onBackground) / 20%);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
84
|
+
background-color: var(--color-primaryContainer);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Focus management */
|
|
89
|
+
[data-navigation-drawer]:focus-visible {
|
|
90
|
+
outline: 2px solid var(--color-primary);
|
|
91
|
+
outline-offset: -2px;
|
|
92
|
+
}
|
|
93
|
+
}
|