@marianmeres/stuic 3.0.0 → 3.0.2
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/actions/index.d.ts +1 -0
- package/dist/actions/index.js +1 -0
- package/dist/actions/typeahead.svelte.d.ts +53 -0
- package/dist/actions/typeahead.svelte.js +328 -0
- package/dist/base.css +17 -0
- package/dist/components/AlertConfirmPrompt/AlertConfirmPrompt.svelte +4 -3
- package/dist/components/AlertConfirmPrompt/AlertConfirmPrompt.svelte.d.ts +4 -3
- package/dist/components/AlertConfirmPrompt/Current.svelte +1 -2
- package/dist/components/AlertConfirmPrompt/Current.svelte.d.ts +0 -1
- package/dist/components/AlertConfirmPrompt/index.css +47 -43
- package/dist/components/AssetsPreview/AssetsPreview.svelte +0 -1
- package/dist/components/AssetsPreview/AssetsPreview.svelte.d.ts +0 -1
- package/dist/components/AssetsPreview/index.css +31 -29
- package/dist/components/Avatar/Avatar.svelte +0 -1
- package/dist/components/Avatar/Avatar.svelte.d.ts +0 -1
- package/dist/components/Avatar/index.css +87 -85
- package/dist/components/Backdrop/Backdrop.svelte +0 -1
- package/dist/components/Backdrop/Backdrop.svelte.d.ts +0 -1
- package/dist/components/Backdrop/index.css +15 -13
- package/dist/components/Button/Button.svelte +0 -1
- package/dist/components/Button/Button.svelte.d.ts +0 -1
- package/dist/components/Button/index.css +431 -429
- package/dist/components/ButtonGroupRadio/ButtonGroupRadio.svelte +0 -1
- package/dist/components/ButtonGroupRadio/ButtonGroupRadio.svelte.d.ts +0 -1
- package/dist/components/ButtonGroupRadio/index.css +123 -117
- package/dist/components/Collapsible/index.css +17 -15
- package/dist/components/CommandMenu/CommandMenu.svelte +7 -4
- package/dist/components/CommandMenu/CommandMenu.svelte.d.ts +0 -1
- package/dist/components/CommandMenu/index.css +27 -25
- package/dist/components/DismissibleMessage/DismissibleMessage.svelte +0 -2
- package/dist/components/DismissibleMessage/DismissibleMessage.svelte.d.ts +0 -1
- package/dist/components/DismissibleMessage/index.css +116 -110
- package/dist/components/DropdownMenu/DropdownMenu.svelte +317 -74
- package/dist/components/DropdownMenu/DropdownMenu.svelte.d.ts +19 -1
- package/dist/components/DropdownMenu/index.css +236 -170
- package/dist/components/DropdownMenu/index.d.ts +1 -1
- package/dist/components/HoverExpandableWidth/HoverExpandableWidth.svelte +3 -1
- package/dist/components/HoverExpandableWidth/HoverExpandableWidth.svelte.d.ts +1 -0
- package/dist/components/Input/FieldInput.svelte +8 -0
- package/dist/components/Input/FieldInput.svelte.d.ts +2 -0
- package/dist/components/Input/FieldOptions.svelte +1 -1
- package/dist/components/Input/index.css +411 -398
- package/dist/components/KbdShortcut/KbdShortcut.svelte +4 -12
- package/dist/components/KbdShortcut/README.md +34 -0
- package/dist/components/KbdShortcut/index.css +55 -0
- package/dist/components/ListItemButton/ListItemButton.svelte +0 -1
- package/dist/components/ListItemButton/ListItemButton.svelte.d.ts +0 -1
- package/dist/components/ListItemButton/index.css +118 -116
- package/dist/components/Modal/Modal.svelte +0 -1
- package/dist/components/Modal/Modal.svelte.d.ts +0 -1
- package/dist/components/Modal/index.css +18 -16
- package/dist/components/ModalDialog/index.css +29 -27
- package/dist/components/Nav/Nav.svelte +732 -0
- package/dist/components/Nav/Nav.svelte.d.ts +110 -0
- package/dist/components/Nav/README.md +334 -0
- package/dist/components/Nav/index.css +318 -0
- package/dist/components/Nav/index.d.ts +1 -0
- package/dist/components/Nav/index.js +1 -0
- package/dist/components/Notifications/Notifications.svelte +2 -3
- package/dist/components/Notifications/Notifications.svelte.d.ts +0 -1
- package/dist/components/Notifications/index.css +158 -158
- package/dist/components/Notifications/notifications-stack.svelte.d.ts +4 -0
- package/dist/components/Notifications/notifications-stack.svelte.js +8 -0
- package/dist/components/Progress/Progress.svelte +4 -2
- package/dist/components/Progress/Progress.svelte.d.ts +1 -0
- package/dist/components/Progress/README.md +86 -15
- package/dist/components/Progress/_internal/Bar.svelte +4 -15
- package/dist/components/Progress/_internal/Bar.svelte.d.ts +1 -1
- package/dist/components/Progress/_internal/Circle.svelte +30 -2
- package/dist/components/Progress/_internal/Circle.svelte.d.ts +1 -0
- package/dist/components/Progress/index.css +47 -1
- package/dist/components/Skeleton/README.md +152 -0
- package/dist/components/Skeleton/Skeleton.svelte +6 -7
- package/dist/components/Skeleton/Skeleton.svelte.d.ts +0 -1
- package/dist/components/Skeleton/index.css +73 -43
- package/dist/components/Spinner/README.md +149 -37
- package/dist/components/Spinner/Spinner.svelte +14 -38
- package/dist/components/Spinner/Spinner.svelte.d.ts +2 -1
- package/dist/components/Spinner/SpinnerCircle.svelte +6 -34
- package/dist/components/Spinner/SpinnerCircle.svelte.d.ts +1 -0
- package/dist/components/Spinner/SpinnerCircleOscillate.svelte +10 -5
- package/dist/components/Spinner/SpinnerUnicode.svelte +3 -1
- package/dist/components/Spinner/SpinnerUnicode.svelte.d.ts +1 -0
- package/dist/components/Spinner/index.css +104 -0
- package/dist/components/Switch/README.md +34 -18
- package/dist/components/Switch/Switch.svelte +24 -46
- package/dist/components/Switch/Switch.svelte.d.ts +4 -2
- package/dist/components/Switch/index.css +120 -2
- package/dist/components/Switch/index.d.ts +1 -2
- package/dist/components/Switch/index.js +1 -2
- package/dist/components/TabbedMenu/README.md +28 -17
- package/dist/components/TabbedMenu/TabbedMenu.svelte +5 -46
- package/dist/components/TabbedMenu/TabbedMenu.svelte.d.ts +0 -1
- package/dist/components/TabbedMenu/index.css +85 -3
- package/dist/components/ThemePreview/ThemePreview.svelte +86 -33
- package/dist/components/ThemePreview/ThemePreview.svelte.d.ts +3 -1
- package/dist/components/ThemePreview/index.css +24 -8
- package/dist/components/TwCheck/README.md +32 -13
- package/dist/components/TwCheck/TwCheck.svelte +11 -9
- package/dist/components/TwCheck/TwCheck.svelte.d.ts +0 -1
- package/dist/components/TwCheck/index.css +14 -0
- package/dist/components/TypeaheadInput/TypeaheadInput.svelte +19 -187
- package/dist/components/TypeaheadInput/TypeaheadInput.svelte.d.ts +4 -2
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.css +44 -39
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/themes/blue-orange.css +246 -156
- package/dist/themes/blue-orange.js +24 -0
- package/dist/themes/cyan-red.css +246 -156
- package/dist/themes/cyan-red.js +24 -0
- package/dist/themes/cyan-slate.css +246 -156
- package/dist/themes/cyan-slate.js +25 -1
- package/dist/themes/emerald-pink.css +246 -156
- package/dist/themes/emerald-pink.js +25 -1
- package/dist/themes/fuchsia-emerald.css +246 -156
- package/dist/themes/fuchsia-emerald.js +25 -1
- package/dist/themes/gray.css +246 -156
- package/dist/themes/gray.js +24 -0
- package/dist/themes/indigo-amber.css +246 -156
- package/dist/themes/indigo-amber.js +26 -2
- package/dist/themes/neutral.css +246 -156
- package/dist/themes/neutral.js +24 -0
- package/dist/themes/pink-emerald.css +246 -156
- package/dist/themes/pink-emerald.js +25 -1
- package/dist/themes/pink-teal.css +253 -0
- package/dist/themes/pink-teal.d.ts +6 -0
- package/dist/themes/pink-teal.js +175 -0
- package/dist/themes/purple-yellow.css +246 -156
- package/dist/themes/purple-yellow.js +24 -0
- package/dist/themes/rainbow.css +246 -156
- package/dist/themes/rainbow.js +25 -1
- package/dist/themes/red-blue.css +246 -156
- package/dist/themes/red-blue.js +24 -0
- package/dist/themes/red-cyan.css +246 -156
- package/dist/themes/red-cyan.js +24 -0
- package/dist/themes/red-sky.css +253 -0
- package/dist/themes/red-sky.d.ts +6 -0
- package/dist/themes/red-sky.js +175 -0
- package/dist/themes/rose-teal.css +246 -156
- package/dist/themes/rose-teal.js +24 -0
- package/dist/themes/sky-amber.css +246 -156
- package/dist/themes/sky-amber.js +26 -2
- package/dist/themes/slate-cyan.css +246 -156
- package/dist/themes/slate-cyan.js +25 -1
- package/dist/themes/teal-rose.css +246 -156
- package/dist/themes/teal-rose.js +24 -0
- package/dist/themes/violet-lime.css +246 -156
- package/dist/themes/violet-lime.js +27 -3
- package/dist/utils/design-tokens.d.ts +1 -1
- package/dist/utils/design-tokens.js +44 -3
- package/dist/utils/storage-abstraction.js +1 -1
- package/package.json +11 -28
- package/dist/components/Switch/SwitchButton.svelte +0 -134
- package/dist/components/Switch/SwitchButton.svelte.d.ts +0 -21
|
@@ -22,7 +22,6 @@ export interface Props {
|
|
|
22
22
|
buttonProps?: (index: number, coll: ItemColl) => undefined | Record<string, any>;
|
|
23
23
|
tooltip?: TooltipConfig;
|
|
24
24
|
}
|
|
25
|
-
import "./index.css";
|
|
26
25
|
import { type TooltipConfig } from "../../actions/index.js";
|
|
27
26
|
declare const ButtonGroupRadio: import("svelte").Component<Props, {}, "value" | "activeIndex">;
|
|
28
27
|
type ButtonGroupRadio = ReturnType<typeof ButtonGroupRadio>;
|
|
@@ -36,123 +36,129 @@
|
|
|
36
36
|
--stuic-button-group-button-bg-active: var(--stuic-color-primary);
|
|
37
37
|
--stuic-button-group-button-text-active: var(--stuic-color-primary-foreground);
|
|
38
38
|
--stuic-button-group-button-bg-active-hover: var(--stuic-color-primary-hover);
|
|
39
|
-
--stuic-button-group-button-text-active-hover: var(
|
|
39
|
+
--stuic-button-group-button-text-active-hover: var(
|
|
40
|
+
--stuic-color-primary-foreground-hover
|
|
41
|
+
);
|
|
40
42
|
}
|
|
41
43
|
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
44
|
+
@layer components {
|
|
45
|
+
/* ============================================================================
|
|
46
|
+
BASE STYLES
|
|
47
|
+
============================================================================ */
|
|
48
|
+
|
|
49
|
+
.stuic-button-group {
|
|
50
|
+
/* Layout */
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
gap: var(--stuic-button-group-gap);
|
|
55
|
+
width: 100%;
|
|
56
|
+
|
|
57
|
+
/* Box model */
|
|
58
|
+
padding: var(--stuic-button-group-padding);
|
|
59
|
+
border-width: var(--stuic-button-group-border-width);
|
|
60
|
+
border-style: solid;
|
|
61
|
+
border-radius: var(--stuic-button-group-radius);
|
|
62
|
+
|
|
63
|
+
/* Colors */
|
|
64
|
+
background: var(--stuic-button-group-bg);
|
|
65
|
+
color: var(--stuic-button-group-text);
|
|
66
|
+
border-color: var(--stuic-button-group-border);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Focus-within state */
|
|
70
|
+
.stuic-button-group:focus-within {
|
|
71
|
+
outline: var(--stuic-button-group-ring-width) solid
|
|
72
|
+
var(--stuic-button-group-ring-color);
|
|
73
|
+
outline-offset: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* ============================================================================
|
|
77
|
+
SIZE VARIANTS
|
|
78
|
+
============================================================================ */
|
|
79
|
+
|
|
80
|
+
.stuic-button-group[data-size="sm"] {
|
|
81
|
+
--stuic-button-group-padding: 0.25rem;
|
|
82
|
+
--stuic-button-group-gap: 0.125rem;
|
|
83
|
+
--stuic-button-group-button-padding-x: 0.5rem;
|
|
84
|
+
--stuic-button-group-button-padding-y: 0.375rem;
|
|
85
|
+
--stuic-button-group-button-min-height: 2.25rem; /* 36px - still touch-friendly */
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.stuic-button-group[data-size="lg"] {
|
|
89
|
+
--stuic-button-group-padding: 0.5rem;
|
|
90
|
+
--stuic-button-group-gap: 0.375rem;
|
|
91
|
+
--stuic-button-group-button-padding-x: 1rem;
|
|
92
|
+
--stuic-button-group-button-padding-y: 0.625rem;
|
|
93
|
+
--stuic-button-group-button-min-height: 3rem; /* 48px */
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ============================================================================
|
|
97
|
+
BUTTON STYLES
|
|
98
|
+
============================================================================ */
|
|
99
|
+
|
|
100
|
+
.stuic-button-group-button {
|
|
101
|
+
/* Layout */
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
flex: 1;
|
|
106
|
+
|
|
107
|
+
/* Box model - mobile-friendly touch targets */
|
|
108
|
+
padding: var(--stuic-button-group-button-padding-y)
|
|
109
|
+
var(--stuic-button-group-button-padding-x);
|
|
110
|
+
min-height: var(--stuic-button-group-button-min-height);
|
|
111
|
+
border: none;
|
|
112
|
+
border-radius: var(--stuic-button-group-radius);
|
|
113
|
+
|
|
114
|
+
/* Typography */
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
line-height: 1;
|
|
117
|
+
text-align: center;
|
|
118
|
+
|
|
119
|
+
/* Colors */
|
|
120
|
+
background: var(--stuic-button-group-button-bg);
|
|
121
|
+
color: var(--stuic-button-group-button-text);
|
|
122
|
+
|
|
123
|
+
/* Interaction - mobile-friendly */
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
user-select: none;
|
|
126
|
+
-webkit-tap-highlight-color: transparent;
|
|
127
|
+
touch-action: manipulation;
|
|
128
|
+
|
|
129
|
+
/* Transition */
|
|
130
|
+
transition:
|
|
131
|
+
background var(--stuic-button-group-transition),
|
|
132
|
+
color var(--stuic-button-group-transition);
|
|
133
|
+
|
|
134
|
+
/* Focus */
|
|
135
|
+
outline: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.stuic-button-group-button:hover:not(:disabled):not([aria-checked="true"]) {
|
|
139
|
+
background: var(--stuic-button-group-button-bg-hover);
|
|
140
|
+
color: var(--stuic-button-group-button-text-hover);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.stuic-button-group-button:focus-visible {
|
|
144
|
+
outline: none; /* Focus handled by container */
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Active/selected button */
|
|
148
|
+
.stuic-button-group-button[aria-checked="true"] {
|
|
149
|
+
background: var(--stuic-button-group-button-bg-active);
|
|
150
|
+
color: var(--stuic-button-group-button-text-active);
|
|
151
|
+
box-shadow: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.stuic-button-group-button[aria-checked="true"]:hover:not(:disabled) {
|
|
155
|
+
background: var(--stuic-button-group-button-bg-active-hover);
|
|
156
|
+
color: var(--stuic-button-group-button-text-active-hover);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Disabled state */
|
|
160
|
+
.stuic-button-group-button:disabled {
|
|
161
|
+
opacity: 0.5;
|
|
162
|
+
cursor: not-allowed;
|
|
163
|
+
}
|
|
158
164
|
}
|
|
@@ -17,22 +17,24 @@
|
|
|
17
17
|
--stuic-collapsible-ring-color: var(--stuic-color-ring);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
@layer components {
|
|
21
|
+
/* ============================================================================
|
|
22
|
+
TOGGLE BUTTON STYLES
|
|
23
|
+
============================================================================ */
|
|
23
24
|
|
|
24
|
-
.stuic-collapsible-toggle {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
25
|
+
.stuic-collapsible-toggle {
|
|
26
|
+
opacity: var(--stuic-collapsible-toggle-opacity);
|
|
27
|
+
padding: var(--stuic-collapsible-toggle-padding-y)
|
|
28
|
+
var(--stuic-collapsible-toggle-padding-x);
|
|
29
|
+
transition: opacity var(--stuic-collapsible-transition);
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
.stuic-collapsible-toggle:hover {
|
|
32
|
-
|
|
33
|
-
}
|
|
32
|
+
.stuic-collapsible-toggle:hover {
|
|
33
|
+
opacity: var(--stuic-collapsible-toggle-opacity-hover);
|
|
34
|
+
}
|
|
34
35
|
|
|
35
|
-
.stuic-collapsible-toggle:focus-visible {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
.stuic-collapsible-toggle:focus-visible {
|
|
37
|
+
outline: var(--stuic-collapsible-ring-width) solid var(--stuic-collapsible-ring-color);
|
|
38
|
+
outline-offset: 2px;
|
|
39
|
+
}
|
|
38
40
|
}
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
|
|
64
64
|
<script lang="ts">
|
|
65
65
|
import Button from "../Button/Button.svelte";
|
|
66
|
-
import "./index.css";
|
|
67
66
|
|
|
68
67
|
const clog = createClog("CommandMenu");
|
|
69
68
|
|
|
@@ -224,7 +223,7 @@
|
|
|
224
223
|
<ModalDialog
|
|
225
224
|
bind:this={modalDialog}
|
|
226
225
|
classDialog="items-start"
|
|
227
|
-
class="w-full max-w-3xl bg-transparent pointer-events-none"
|
|
226
|
+
class="w-full max-w-3xl bg-transparent! shadow-none! pointer-events-none"
|
|
228
227
|
{noScrollLock}
|
|
229
228
|
>
|
|
230
229
|
<div class="pt-0 md:pt-[20vh] w-full">
|
|
@@ -263,12 +262,16 @@
|
|
|
263
262
|
}}
|
|
264
263
|
>
|
|
265
264
|
{#snippet inputBefore()}
|
|
266
|
-
<div
|
|
265
|
+
<div
|
|
266
|
+
class="flex flex-col items-center justify-center pl-3 stuic-command-menu-muted"
|
|
267
|
+
>
|
|
267
268
|
{@html iconSearch({ size: 19, strokeWidth: 3 })}
|
|
268
269
|
</div>
|
|
269
270
|
{/snippet}
|
|
270
271
|
{#snippet inputAfter()}
|
|
271
|
-
<div
|
|
272
|
+
<div
|
|
273
|
+
class="flex pl-2 items-center justify-center stuic-command-menu-placeholder"
|
|
274
|
+
>
|
|
272
275
|
{#if isFetching}
|
|
273
276
|
<Spinner class="w-4" />
|
|
274
277
|
{/if}
|
|
@@ -17,7 +17,6 @@ export interface Props {
|
|
|
17
17
|
classOptionActive?: string;
|
|
18
18
|
showAllOnEmptyQ?: boolean;
|
|
19
19
|
}
|
|
20
|
-
import "./index.css";
|
|
21
20
|
declare const CommandMenu: import("svelte").Component<Props, {
|
|
22
21
|
close: () => void;
|
|
23
22
|
open: (openerOrEvent?: null | HTMLElement | MouseEvent) => void;
|
|
@@ -18,29 +18,31 @@
|
|
|
18
18
|
--stuic-command-menu-muted-text: var(--stuic-color-muted-foreground);
|
|
19
19
|
}
|
|
20
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
|
-
|
|
21
|
+
@layer components {
|
|
22
|
+
/* =============================================================================
|
|
23
|
+
BASE STYLES
|
|
24
|
+
============================================================================= */
|
|
25
|
+
|
|
26
|
+
/* Options container */
|
|
27
|
+
.stuic-command-menu-options {
|
|
28
|
+
scrollbar-width: thin;
|
|
29
|
+
max-height: var(--stuic-command-menu-options-max-height);
|
|
30
|
+
border-top-color: var(--stuic-command-menu-divider-color);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Option group header */
|
|
34
|
+
.stuic-command-menu-group-header {
|
|
35
|
+
color: var(--stuic-command-menu-group-header-color);
|
|
36
|
+
font-size: var(--stuic-command-menu-group-header-font-size);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Muted elements (search icon) */
|
|
40
|
+
.stuic-command-menu-muted {
|
|
41
|
+
color: var(--stuic-command-menu-muted-text);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Placeholder/loading states (spinner) */
|
|
45
|
+
.stuic-command-menu-placeholder {
|
|
46
|
+
color: var(--stuic-command-menu-muted-text);
|
|
47
|
+
}
|
|
46
48
|
}
|
|
@@ -12,7 +12,6 @@ export interface Props {
|
|
|
12
12
|
withIcon?: boolean;
|
|
13
13
|
iconFn?: (() => string) | false;
|
|
14
14
|
}
|
|
15
|
-
import "./index.css";
|
|
16
15
|
declare const DismissibleMessage: import("svelte").Component<Props, {}, "">;
|
|
17
16
|
type DismissibleMessage = ReturnType<typeof DismissibleMessage>;
|
|
18
17
|
export default DismissibleMessage;
|