@hyvnt/hyvui 0.2.0 → 0.3.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/README.md +264 -253
- package/dist/components/ambient/CornerBrackets.svelte +83 -87
- package/dist/components/ambient/DataStream.svelte +111 -94
- package/dist/components/ambient/GlyphMark.svelte +69 -69
- package/dist/components/ambient/GridOverlay.svelte +26 -28
- package/dist/components/ambient/ParallaxLayer.svelte +37 -41
- package/dist/components/ambient/ScanBand.svelte +95 -91
- package/dist/components/ambient/SignalRing.svelte +100 -100
- package/dist/components/ambient/ThreadLine.svelte +71 -78
- package/dist/components/ambient/Vignette.svelte +24 -26
- package/dist/components/depth/DepthLayer.svelte +22 -27
- package/dist/components/depth/DepthStage.svelte +63 -62
- package/dist/components/depth/FloatCard.svelte +113 -104
- package/dist/components/depth/HorizonGrid.svelte +216 -160
- package/dist/components/depth/Plinth.svelte +52 -57
- package/dist/components/display/Avatar.svelte +64 -69
- package/dist/components/display/Badge.svelte +59 -63
- package/dist/components/display/Blockquote.svelte +31 -34
- package/dist/components/display/CodeBlock.svelte +71 -76
- package/dist/components/display/MetricCard.svelte +77 -83
- package/dist/components/display/Table.svelte +99 -104
- package/dist/components/feedback/Alert.svelte +71 -76
- package/dist/components/feedback/EmptyState.svelte +68 -68
- package/dist/components/feedback/ErrorState.svelte +73 -73
- package/dist/components/feedback/Skeleton.svelte +52 -52
- package/dist/components/feedback/StatusDot.svelte +49 -54
- package/dist/components/feedback/StatusLine.svelte +122 -122
- package/dist/components/feedback/Toast.svelte +130 -136
- package/dist/components/inputs/Button.svelte +240 -237
- package/dist/components/inputs/Checkbox.svelte +104 -105
- package/dist/components/inputs/FileUpload.svelte +165 -163
- package/dist/components/inputs/Input.svelte +145 -147
- package/dist/components/inputs/Select.svelte +156 -150
- package/dist/components/inputs/Textarea.svelte +153 -154
- package/dist/components/inputs/Toggle.svelte +120 -120
- package/dist/components/layout/Card.svelte +70 -76
- package/dist/components/layout/Drawer.svelte +133 -109
- package/dist/components/layout/Grid.svelte +118 -43
- package/dist/components/layout/Grid.svelte.d.ts +8 -2
- package/dist/components/layout/Modal.svelte +176 -159
- package/dist/components/layout/Panel.svelte +49 -54
- package/dist/components/layout/Popover.svelte +178 -67
- package/dist/components/layout/Popover.svelte.d.ts +10 -1
- package/dist/components/layout/Stack.svelte +53 -53
- package/dist/components/navigation/Breadcrumb.svelte +70 -73
- package/dist/components/navigation/DropdownMenu.svelte +167 -124
- package/dist/components/navigation/DropdownMenu.svelte.d.ts +12 -2
- package/dist/components/navigation/SidebarNav.svelte +86 -90
- package/dist/components/navigation/Tabs.svelte +81 -86
- package/dist/components/navigation/Topbar.svelte +85 -85
- package/dist/components/patterns/ActionBar.svelte +71 -76
- package/dist/components/patterns/ConfirmDialog.svelte +63 -64
- package/dist/components/patterns/PageHeader.svelte +109 -114
- package/dist/components/patterns/SearchBar.svelte +54 -59
- package/dist/components/patterns/TerminalBoot.svelte +104 -104
- package/dist/components/primitives/Divider.svelte +26 -29
- package/dist/components/primitives/Icon.svelte +44 -49
- package/dist/components/primitives/Label.svelte +39 -44
- package/dist/components/primitives/Surface.svelte +89 -87
- package/dist/components/primitives/Text.svelte +98 -98
- package/dist/components/scenes/ArchiveScene.svelte +92 -95
- package/dist/components/scenes/ArchiveScene.svelte.d.ts +7 -1
- package/dist/components/scenes/LogScene.svelte +72 -77
- package/dist/components/scenes/NarrativeScene.svelte +91 -92
- package/dist/components/scenes/ReadoutScene.svelte +120 -107
- package/dist/components/scenes/ReadoutScene.svelte.d.ts +3 -1
- package/dist/components/scenes/StageScene.svelte +97 -104
- package/dist/examples/FieldReport.svelte +226 -223
- package/dist/examples/ObservationDeck.svelte +333 -317
- package/dist/examples/SignalLost.svelte +191 -191
- package/dist/styles.css +113 -0
- package/dist/system/actions/echo.js +9 -9
- package/dist/system/actions/resolve.js +9 -9
- package/dist/system/actions/reveal.js +1 -1
- package/dist/system/actions/surface.js +13 -1
- package/dist/system/depth/depth.css +49 -49
- package/dist/system/depth/depth.js +1 -1
- package/dist/system/expressions.css +80 -80
- package/dist/system/override-template.css +72 -72
- package/dist/system/register.css +74 -74
- package/dist/system/scroll-lock.d.ts +6 -0
- package/dist/system/scroll-lock.js +23 -0
- package/dist/tokens/tokens.css +100 -86
- package/dist/tokens/tokens.js +4 -4
- package/dist/utils/motion.js +1 -1
- package/package.json +67 -60
|
@@ -1,147 +1,145 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<div class={cn('hyvui-input-wrap', className)}>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<style>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
</style>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '../../utils/cn.js';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
/** Input type. */
|
|
6
|
+
type?: 'text' | 'number' | 'password' | 'email' | 'search';
|
|
7
|
+
/** Current value (bindable). */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** Placeholder text. */
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
/** Disables the input. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Error message. Displays below the input and activates error styling. */
|
|
14
|
+
error?: string;
|
|
15
|
+
/** Hint text displayed below the input. */
|
|
16
|
+
hint?: string;
|
|
17
|
+
/** Label text displayed above the input. */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Additional CSS classes. */
|
|
20
|
+
class?: string;
|
|
21
|
+
/** Input handler. */
|
|
22
|
+
oninput?: (e: Event) => void;
|
|
23
|
+
/** Change handler. */
|
|
24
|
+
onchange?: (e: Event) => void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let {
|
|
28
|
+
type = 'text',
|
|
29
|
+
value = $bindable(''),
|
|
30
|
+
placeholder = '',
|
|
31
|
+
disabled = false,
|
|
32
|
+
error = '',
|
|
33
|
+
hint = '',
|
|
34
|
+
label = '',
|
|
35
|
+
class: className = '',
|
|
36
|
+
oninput,
|
|
37
|
+
onchange
|
|
38
|
+
}: Props = $props();
|
|
39
|
+
|
|
40
|
+
const inputId = `hyvui-input-${Math.random().toString(36).slice(2, 8)}`;
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<div class={cn('hyvui-input-wrap', className)}>
|
|
44
|
+
{#if label}
|
|
45
|
+
<label class="hyvui-input-label" for={inputId}>{label}</label>
|
|
46
|
+
{/if}
|
|
47
|
+
<input
|
|
48
|
+
id={inputId}
|
|
49
|
+
{type}
|
|
50
|
+
bind:value
|
|
51
|
+
{placeholder}
|
|
52
|
+
{disabled}
|
|
53
|
+
class={cn('hyvui-input', error && 'hyvui-input-error')}
|
|
54
|
+
{oninput}
|
|
55
|
+
{onchange}
|
|
56
|
+
/>
|
|
57
|
+
{#if error}
|
|
58
|
+
<span class="hyvui-input-message hyvui-input-message-error">{error}</span>
|
|
59
|
+
{:else if hint}
|
|
60
|
+
<span class="hyvui-input-message">{hint}</span>
|
|
61
|
+
{/if}
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<style>
|
|
65
|
+
.hyvui-input-wrap {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
gap: var(--space-xs);
|
|
69
|
+
min-width: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.hyvui-input-label {
|
|
73
|
+
font-family: var(--font-mono);
|
|
74
|
+
font-size: 0.7rem;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
letter-spacing: 0.16em;
|
|
77
|
+
text-transform: uppercase;
|
|
78
|
+
color: var(--muted-strong);
|
|
79
|
+
line-height: 1.2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.hyvui-input {
|
|
83
|
+
font-family: var(--font-mono);
|
|
84
|
+
font-size: 0.82rem;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
color: var(--text);
|
|
87
|
+
min-height: var(--control-height-md);
|
|
88
|
+
background:
|
|
89
|
+
linear-gradient(180deg, rgba(240, 232, 218, 0.018), transparent 46%),
|
|
90
|
+
linear-gradient(135deg, rgba(199, 156, 87, 0.045), transparent 44%), var(--bg-elev);
|
|
91
|
+
border: 1px solid var(--line);
|
|
92
|
+
border-radius: var(--radius-md);
|
|
93
|
+
padding: var(--control-pad-y) var(--control-pad-x);
|
|
94
|
+
outline: none;
|
|
95
|
+
transition:
|
|
96
|
+
border-color var(--transition-fast),
|
|
97
|
+
background var(--transition-fast),
|
|
98
|
+
box-shadow var(--transition-fast);
|
|
99
|
+
width: 100%;
|
|
100
|
+
box-shadow: inset 0 1px 0 rgba(240, 232, 218, 0.03);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.hyvui-input::placeholder {
|
|
104
|
+
color: var(--muted);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.hyvui-input:hover:not(:disabled) {
|
|
108
|
+
border-color: color-mix(in srgb, var(--line-strong) 82%, transparent);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.hyvui-input:focus {
|
|
112
|
+
border-color: var(--line-strong);
|
|
113
|
+
background:
|
|
114
|
+
linear-gradient(180deg, rgba(240, 232, 218, 0.022), transparent 46%),
|
|
115
|
+
linear-gradient(135deg, rgba(199, 156, 87, 0.06), transparent 44%), var(--bg-elev);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.hyvui-input:disabled {
|
|
119
|
+
opacity: 0.4;
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.hyvui-input-error {
|
|
124
|
+
border-color: var(--status-fail);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.hyvui-input-message {
|
|
128
|
+
font-family: var(--font-mono);
|
|
129
|
+
font-size: 0.66rem;
|
|
130
|
+
letter-spacing: 0.14em;
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
color: var(--muted-strong);
|
|
133
|
+
line-height: 1.3;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.hyvui-input-message-error {
|
|
137
|
+
color: var(--status-fail);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (prefers-reduced-motion: reduce) {
|
|
141
|
+
.hyvui-input {
|
|
142
|
+
transition: none;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
</style>
|
|
@@ -1,150 +1,156 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
</script>
|
|
38
|
-
|
|
39
|
-
<div class={cn('hyvui-select-wrap', className)}>
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '../../utils/cn.js';
|
|
3
|
+
|
|
4
|
+
interface SelectOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Props {
|
|
10
|
+
/** Available options. */
|
|
11
|
+
options?: SelectOption[];
|
|
12
|
+
/** Current selected value (bindable). */
|
|
13
|
+
value?: string;
|
|
14
|
+
/** Label text displayed above the select. */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** Error message. */
|
|
17
|
+
error?: string;
|
|
18
|
+
/** Disables the select. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Additional CSS classes. */
|
|
21
|
+
class?: string;
|
|
22
|
+
/** Change handler. */
|
|
23
|
+
onchange?: (e: Event) => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let {
|
|
27
|
+
options = [],
|
|
28
|
+
value = $bindable(''),
|
|
29
|
+
label = '',
|
|
30
|
+
error = '',
|
|
31
|
+
disabled = false,
|
|
32
|
+
class: className = '',
|
|
33
|
+
onchange
|
|
34
|
+
}: Props = $props();
|
|
35
|
+
|
|
36
|
+
const selectId = `hyvui-select-${Math.random().toString(36).slice(2, 8)}`;
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<div class={cn('hyvui-select-wrap', className)}>
|
|
40
|
+
{#if label}
|
|
41
|
+
<label class="hyvui-select-label" for={selectId}>{label}</label>
|
|
42
|
+
{/if}
|
|
43
|
+
<div class="hyvui-select-container">
|
|
44
|
+
<select
|
|
45
|
+
id={selectId}
|
|
46
|
+
bind:value
|
|
47
|
+
{disabled}
|
|
48
|
+
class={cn('hyvui-select', error && 'hyvui-select-error')}
|
|
49
|
+
{onchange}
|
|
50
|
+
>
|
|
51
|
+
{#each options as opt}
|
|
52
|
+
<option value={opt.value}>{opt.label}</option>
|
|
53
|
+
{/each}
|
|
54
|
+
</select>
|
|
55
|
+
<svg class="hyvui-select-chevron" width="12" height="12" viewBox="0 0 12 12" aria-hidden="true">
|
|
56
|
+
<path
|
|
57
|
+
d="M2.5 4.5L6 8L9.5 4.5"
|
|
58
|
+
stroke="var(--accent)"
|
|
59
|
+
stroke-width="1.5"
|
|
60
|
+
fill="none"
|
|
61
|
+
stroke-linecap="round"
|
|
62
|
+
stroke-linejoin="round"
|
|
63
|
+
/>
|
|
64
|
+
</svg>
|
|
65
|
+
</div>
|
|
66
|
+
{#if error}
|
|
67
|
+
<span class="hyvui-select-message">{error}</span>
|
|
68
|
+
{/if}
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<style>
|
|
72
|
+
.hyvui-select-wrap {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
gap: var(--space-xs);
|
|
76
|
+
min-width: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.hyvui-select-label {
|
|
80
|
+
font-family: var(--font-mono);
|
|
81
|
+
font-size: 0.7rem;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
letter-spacing: 0.16em;
|
|
84
|
+
text-transform: uppercase;
|
|
85
|
+
color: var(--muted-strong);
|
|
86
|
+
line-height: 1.2;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.hyvui-select-container {
|
|
90
|
+
position: relative;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.hyvui-select {
|
|
96
|
+
font-family: var(--font-mono);
|
|
97
|
+
font-size: 0.82rem;
|
|
98
|
+
font-weight: 400;
|
|
99
|
+
color: var(--text);
|
|
100
|
+
min-height: var(--control-height-md);
|
|
101
|
+
background:
|
|
102
|
+
linear-gradient(180deg, rgba(240, 232, 218, 0.018), transparent 46%),
|
|
103
|
+
linear-gradient(135deg, rgba(199, 156, 87, 0.045), transparent 44%), var(--bg-elev);
|
|
104
|
+
border: 1px solid var(--line);
|
|
105
|
+
border-radius: var(--radius-md);
|
|
106
|
+
padding: var(--control-pad-y) 2.3rem var(--control-pad-y) var(--control-pad-x);
|
|
107
|
+
outline: none;
|
|
108
|
+
appearance: none;
|
|
109
|
+
width: 100%;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
transition:
|
|
112
|
+
border-color var(--transition-fast),
|
|
113
|
+
background var(--transition-fast),
|
|
114
|
+
box-shadow var(--transition-fast);
|
|
115
|
+
box-shadow: inset 0 1px 0 rgba(240, 232, 218, 0.03);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.hyvui-select:hover:not(:disabled) {
|
|
119
|
+
border-color: color-mix(in srgb, var(--line-strong) 82%, transparent);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.hyvui-select:focus {
|
|
123
|
+
border-color: var(--line-strong);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.hyvui-select:disabled {
|
|
127
|
+
opacity: 0.4;
|
|
128
|
+
cursor: not-allowed;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.hyvui-select-error {
|
|
132
|
+
border-color: var(--status-fail);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.hyvui-select-chevron {
|
|
136
|
+
position: absolute;
|
|
137
|
+
right: 0.85rem;
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
opacity: 0.8;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.hyvui-select-message {
|
|
143
|
+
font-family: var(--font-mono);
|
|
144
|
+
font-size: 0.66rem;
|
|
145
|
+
letter-spacing: 0.14em;
|
|
146
|
+
text-transform: uppercase;
|
|
147
|
+
color: var(--status-fail);
|
|
148
|
+
line-height: 1.3;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (prefers-reduced-motion: reduce) {
|
|
152
|
+
.hyvui-select {
|
|
153
|
+
transition: none;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</style>
|