@likable-hair/svelte 2.0.9 → 3.0.1
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/components/composed/search/GlobalSearchTextField.css +11 -0
- package/dist/components/composed/search/GlobalSearchTextField.svelte +53 -30
- package/dist/components/composed/search/GlobalSearchTextField.svelte.d.ts +7 -9
- package/dist/components/composed/search/SearchBar.css +10 -0
- package/dist/components/composed/search/SearchBar.svelte +44 -20
- package/dist/components/composed/search/SearchBar.svelte.d.ts +7 -9
- package/dist/components/composed/search/SearchResults.css +5 -0
- package/dist/components/composed/search/SearchResults.svelte +46 -23
- package/dist/components/composed/search/SearchResults.svelte.d.ts +8 -8
- package/dist/components/layouts/CollapsibleSideBarLayout.css +5 -0
- package/dist/components/layouts/CollapsibleSideBarLayout.svelte +107 -299
- package/dist/components/layouts/CollapsibleSideBarLayout.svelte.d.ts +11 -50
- package/dist/components/layouts/StableDividedSideBarLayout.css +16 -0
- package/dist/components/layouts/StableDividedSideBarLayout.svelte +82 -31
- package/dist/components/layouts/StableDividedSideBarLayout.svelte.d.ts +8 -10
- package/dist/components/simple/buttons/Button.css +18 -0
- package/dist/components/simple/buttons/Button.svelte +144 -48
- package/dist/components/simple/buttons/Button.svelte.d.ts +4 -24
- package/dist/components/simple/buttons/LinkButton.css +13 -0
- package/dist/components/simple/buttons/LinkButton.svelte +54 -30
- package/dist/components/simple/buttons/LinkButton.svelte.d.ts +3 -14
- package/dist/components/simple/common/CollapsibleDivider.css +14 -0
- package/dist/components/simple/common/CollapsibleDivider.svelte +82 -25
- package/dist/components/simple/common/CollapsibleDivider.svelte.d.ts +2 -11
- package/dist/components/simple/common/Menu.svelte +32 -2
- package/dist/components/simple/common/Menu.svelte.d.ts +1 -0
- package/dist/components/simple/dates/Calendar.css +10 -0
- package/dist/components/simple/dates/Calendar.svelte +53 -17
- package/dist/components/simple/dates/Calendar.svelte.d.ts +8 -10
- package/dist/components/simple/dates/DatePicker.css +9 -0
- package/dist/components/simple/dates/DatePicker.svelte +75 -55
- package/dist/components/simple/dates/DatePicker.svelte.d.ts +16 -11
- package/dist/components/simple/dates/DatePickerTextField.svelte +148 -0
- package/dist/components/simple/dates/DatePickerTextField.svelte.d.ts +28 -0
- package/dist/components/simple/dates/MonthSelector.css +4 -0
- package/dist/components/simple/dates/MonthSelector.svelte +21 -9
- package/dist/components/simple/dates/MonthSelector.svelte.d.ts +6 -4
- package/dist/components/simple/dates/YearSelector.css +4 -0
- package/dist/components/simple/dates/YearSelector.svelte +24 -10
- package/dist/components/simple/dates/YearSelector.svelte.d.ts +4 -2
- package/dist/components/simple/forms/Autocomplete.css +12 -0
- package/dist/components/simple/forms/Autocomplete.svelte +102 -50
- package/dist/components/simple/forms/Autocomplete.svelte.d.ts +8 -29
- package/dist/components/simple/forms/SimpleTextField.css +17 -0
- package/dist/components/simple/forms/SimpleTextField.svelte +111 -44
- package/dist/components/simple/forms/SimpleTextField.svelte.d.ts +14 -22
- package/dist/components/simple/lists/SelectableMenuList.css +7 -0
- package/dist/components/simple/lists/SelectableMenuList.svelte +108 -0
- package/dist/components/simple/lists/SelectableMenuList.svelte.d.ts +39 -0
- package/dist/components/simple/lists/SelectableVerticalList.svelte +1 -1
- package/dist/components/simple/lists/SidebarMenuList.css +7 -0
- package/dist/components/simple/lists/SidebarMenuList.svelte +44 -15
- package/dist/components/simple/lists/SidebarMenuList.svelte.d.ts +2 -0
- package/dist/components/simple/loaders/CircularLoader.css +5 -0
- package/dist/components/simple/loaders/CircularLoader.svelte +21 -4
- package/dist/components/simple/loaders/CircularLoader.svelte.d.ts +3 -3
- package/dist/components/simple/media/Icon.svelte +18 -7
- package/dist/components/simple/media/Icon.svelte.d.ts +0 -2
- package/dist/components/simple/navigation/Chip.css +14 -0
- package/dist/components/simple/navigation/Chip.svelte +75 -15
- package/dist/components/simple/navigation/Chip.svelte.d.ts +3 -3
- package/dist/components/simple/navigation/Drawer.css +9 -0
- package/dist/components/simple/navigation/Drawer.svelte +82 -74
- package/dist/components/simple/navigation/Drawer.svelte.d.ts +2 -8
- package/dist/components/simple/navigation/HeaderMenu.css +3 -0
- package/dist/components/simple/navigation/HeaderMenu.svelte +40 -63
- package/dist/components/simple/navigation/HeaderMenu.svelte.d.ts +6 -9
- package/dist/components/simple/notifiers/AlertBanner.css +9 -0
- package/dist/components/simple/notifiers/AlertBanner.svelte +22 -22
- package/dist/components/simple/notifiers/AlertBanner.svelte.d.ts +7 -9
- package/dist/components/simple/timeline/SimpleTimeLine.svelte.d.ts +1 -1
- package/dist/components/simple/typography/Code.svelte.d.ts +1 -1
- package/dist/css/main.css +261 -0
- package/dist/stores/theme.d.ts +30 -0
- package/dist/stores/theme.js +85 -0
- package/package.json +6 -3
- package/dist/components/simple/buttons/DefaultButton.svelte +0 -93
- package/dist/components/simple/buttons/DefaultButton.svelte.d.ts +0 -50
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--global-search-text-field-default-ring-color: rgb(var(--global-color-contrast-100)); /* rgba(24, 24, 27, .1) */
|
|
3
|
+
--global-search-text-field-default-hover-ring-color: rgb(var(--global-color-contrast-300)); /* rgba(24, 24, 27, .2) */
|
|
4
|
+
--global-search-text-field-default-color: rgb(var(--global-color-contrast-600)); /* rgb(113 113 122) */
|
|
5
|
+
--global-search-text-field-default-width: 100%;
|
|
6
|
+
--global-search-text-field-default-max-width: 28rem;
|
|
7
|
+
--global-search-text-field-default-height: 2rem;
|
|
8
|
+
--global-search-text-field-default-background-color: rgb(var(--global-color-background-100));
|
|
9
|
+
--global-search-text-field-default-padding: 0rem 0.75rem 0rem 0.5rem;
|
|
10
|
+
--global-search-text-field-default-font-size: .875rem;
|
|
11
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import "$lib/css/main.css";
|
|
2
|
+
import "./GlobalSearchTextField.css";
|
|
3
|
+
import Dialog from "../../simple/dialogs/Dialog.svelte";
|
|
2
4
|
import { createEventDispatcher, onMount } from "svelte";
|
|
3
5
|
import SearchBar from "./SearchBar.svelte";
|
|
4
6
|
import Keyboarder, {} from "../../../utils/keyboarder";
|
|
5
7
|
import SearchResults, {} from "./SearchResults.svelte";
|
|
6
|
-
|
|
8
|
+
let clazz = {};
|
|
9
|
+
export { clazz as class };
|
|
10
|
+
export let searchButtonText = "Search", searchDialogOpened = false, transitionDuration = ".8s", searcher = () => Promise.resolve([]);
|
|
7
11
|
let searchBarInput, searchText = void 0, searchResults = void 0, searchLoading = false;
|
|
8
12
|
let dispatch = createEventDispatcher();
|
|
9
13
|
onMount(() => {
|
|
@@ -38,24 +42,14 @@ async function search() {
|
|
|
38
42
|
}
|
|
39
43
|
</script>
|
|
40
44
|
|
|
41
|
-
<div
|
|
42
|
-
style:--global-search-text-field-ring-color={searchButtonRingColor}
|
|
43
|
-
style:--global-search-text-field-hover-ring-color={searchButtonHoverRingColor}
|
|
44
|
-
style:--global-search-text-field-color={color}
|
|
45
|
-
style:--global-search-text-field-width={searchButtonWidth}
|
|
46
|
-
style:--global-search-text-field-max-width={searchButtonMaxWidth}
|
|
47
|
-
style:--global-search-text-field-height={searchButtonHeight}
|
|
48
|
-
style:--global-search-text-field-background-color={searchButtonBackgroundColor}
|
|
49
|
-
style:--global-search-text-field-padding={searchButtonPadding}
|
|
50
|
-
style:--global-search-text-field-font-size={searchButtonFontSize}
|
|
51
|
-
>
|
|
45
|
+
<div class={clazz.container || ''}>
|
|
52
46
|
<slot
|
|
53
47
|
name="search-button"
|
|
54
48
|
{toggleSearchDialog}
|
|
55
49
|
>
|
|
56
50
|
<button
|
|
57
51
|
on:click={toggleSearchDialog}
|
|
58
|
-
class="search-like-button"
|
|
52
|
+
class="search-like-button {clazz.button || ''}"
|
|
59
53
|
>
|
|
60
54
|
<slot name="search-button-icon">
|
|
61
55
|
<svg
|
|
@@ -74,15 +68,15 @@ async function search() {
|
|
|
74
68
|
{searchButtonText}
|
|
75
69
|
</slot>
|
|
76
70
|
<slot name="search-button-shortcut">
|
|
77
|
-
<kbd class="shortcut"><kbd class="shortcut">⌘</kbd><kbd class="shortcut">K</kbd></kbd>
|
|
71
|
+
<kbd class="shortcut {clazz.shortcut || ''}"><kbd class="shortcut">⌘</kbd><kbd class="shortcut">K</kbd></kbd>
|
|
78
72
|
</slot>
|
|
79
73
|
</button>
|
|
80
74
|
</slot>
|
|
81
75
|
<Dialog
|
|
82
76
|
bind:open={searchDialogOpened}
|
|
83
77
|
transition="scale"
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
_overlayBackdropFilter="blur(2px)"
|
|
79
|
+
_transitionDuration={transitionDuration}
|
|
86
80
|
>
|
|
87
81
|
<div
|
|
88
82
|
style:max-width="90vw"
|
|
@@ -119,8 +113,8 @@ async function search() {
|
|
|
119
113
|
searchResults
|
|
120
114
|
>
|
|
121
115
|
<SearchResults
|
|
122
|
-
margin="-.5rem 0 0 0"
|
|
123
|
-
|
|
116
|
+
--search-results-margin="-.5rem 0 0 0"
|
|
117
|
+
--search-results-border-radius="0 0 .5rem .5rem"
|
|
124
118
|
loading={searchLoading}
|
|
125
119
|
results={searchResults}
|
|
126
120
|
activeKeyboard
|
|
@@ -135,20 +129,43 @@ async function search() {
|
|
|
135
129
|
|
|
136
130
|
<style>
|
|
137
131
|
.search-like-button {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
132
|
+
box-shadow: inset 0 0 0 1px var(
|
|
133
|
+
--global-search-text-field-ring-color,
|
|
134
|
+
var(--global-search-text-field-default-ring-color)
|
|
135
|
+
);
|
|
136
|
+
color: var(
|
|
137
|
+
--global-search-text-field-color,
|
|
138
|
+
var(--global-search-text-field-default-color)
|
|
139
|
+
);
|
|
141
140
|
display: flex;
|
|
142
141
|
align-items: center;
|
|
143
142
|
gap: 0.5rem;
|
|
144
|
-
width: var(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
width: var(
|
|
144
|
+
--global-search-text-field-width,
|
|
145
|
+
var(--global-search-text-field-default-width)
|
|
146
|
+
);
|
|
147
|
+
max-width: var(
|
|
148
|
+
--global-search-text-field-max-width,
|
|
149
|
+
var(--global-search-text-field-default-max-width)
|
|
150
|
+
);
|
|
151
|
+
height: var(
|
|
152
|
+
--global-search-text-field-height,
|
|
153
|
+
var(--global-search-text-field-default-height)
|
|
154
|
+
);
|
|
155
|
+
font-size: var(
|
|
156
|
+
--global-search-text-field-font-size,
|
|
157
|
+
var(--global-search-text-field-default-font-size)
|
|
158
|
+
);
|
|
148
159
|
line-height: 1.5rem;
|
|
149
|
-
background-color: var(
|
|
160
|
+
background-color: var(
|
|
161
|
+
--global-search-text-field-background-color,
|
|
162
|
+
var(--global-search-text-field-default-background-color)
|
|
163
|
+
);
|
|
150
164
|
border-radius: 9999px;
|
|
151
|
-
padding: var(
|
|
165
|
+
padding: var(
|
|
166
|
+
--global-search-text-field-padding,
|
|
167
|
+
var(--global-search-text-field-default-padding)
|
|
168
|
+
);
|
|
152
169
|
border: 0 solid #e5e7eb;
|
|
153
170
|
cursor: pointer;
|
|
154
171
|
transition-property: box-shadow;
|
|
@@ -157,7 +174,10 @@ async function search() {
|
|
|
157
174
|
}
|
|
158
175
|
|
|
159
176
|
.search-like-button:hover {
|
|
160
|
-
box-shadow: inset 0 0 0 1px var(
|
|
177
|
+
box-shadow: inset 0 0 0 1px var(
|
|
178
|
+
--global-search-text-field-hover-ring-color,
|
|
179
|
+
var(--global-search-text-field-default-hover-ring-color)
|
|
180
|
+
);
|
|
161
181
|
}
|
|
162
182
|
|
|
163
183
|
.search-icon {
|
|
@@ -169,7 +189,10 @@ async function search() {
|
|
|
169
189
|
.shortcut {
|
|
170
190
|
margin-left: auto;
|
|
171
191
|
font-size: 1rem;
|
|
172
|
-
color: var(
|
|
192
|
+
color: var(
|
|
193
|
+
--global-search-text-field-color,
|
|
194
|
+
var(--global-search-text-field-default-color)
|
|
195
|
+
);
|
|
173
196
|
text-transform: none;
|
|
174
197
|
font-family: ui-sans-serif,system-ui,-apple-system;
|
|
175
198
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import '$lib/css/main.css';
|
|
3
|
+
import './GlobalSearchTextField.css';
|
|
2
4
|
import { type Result } from './SearchResults.svelte';
|
|
3
5
|
declare const __propDef: {
|
|
4
6
|
props: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
searchButtonHeight?: string | undefined;
|
|
11
|
-
searchButtonBackgroundColor?: string | undefined;
|
|
12
|
-
searchButtonPadding?: string | undefined;
|
|
13
|
-
searchButtonFontSize?: string | undefined;
|
|
7
|
+
class?: {
|
|
8
|
+
container?: string | undefined;
|
|
9
|
+
button?: string | undefined;
|
|
10
|
+
shortcut?: string | undefined;
|
|
11
|
+
} | undefined;
|
|
14
12
|
searchButtonText?: string | undefined;
|
|
15
13
|
searchDialogOpened?: boolean | undefined;
|
|
16
14
|
transitionDuration?: string | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--search-bar-default-ring-color: rgb(var(--global-color-contrast-100));
|
|
3
|
+
--search-bar-default-background-color: rgb(var(--global-color-background-100));
|
|
4
|
+
--search-bar-default-border-radius: 0.5rem;
|
|
5
|
+
--search-bar-default-height: 3rem;
|
|
6
|
+
--search-bar-default-padding: 0rem 1rem 0rem 1rem;
|
|
7
|
+
--search-bar-default-line-height: 1.5rem;
|
|
8
|
+
--search-bar-default-font-size: .875rem;
|
|
9
|
+
--search-bar-default-width: 100%;
|
|
10
|
+
}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
<script>
|
|
1
|
+
<script>import "$lib/css/main.css";
|
|
2
|
+
import "./SearchBar.css";
|
|
3
|
+
let clazz = {};
|
|
4
|
+
export { clazz as class };
|
|
5
|
+
export let input = void 0, value = void 0;
|
|
2
6
|
</script>
|
|
3
7
|
|
|
4
8
|
<div
|
|
5
|
-
|
|
6
|
-
style:--search-bar-background-color={backgroundColor}
|
|
7
|
-
style:--search-bar-border-radius={borderRadius}
|
|
8
|
-
style:--search-bar-height={height}
|
|
9
|
-
style:--search-bar-padding={padding}
|
|
10
|
-
style:--search-bar-line-height={lineHeight}
|
|
11
|
-
style:--search-bar-font-size={fontSize}
|
|
12
|
-
style:max-width={maxWidth}
|
|
13
|
-
style:width={width}
|
|
14
|
-
class="container"
|
|
9
|
+
class="container {clazz.container}"
|
|
15
10
|
>
|
|
16
11
|
<slot name="icon">
|
|
17
12
|
<svg
|
|
18
13
|
viewBox="0 0 20 20"
|
|
19
14
|
fill="none"
|
|
20
15
|
aria-hidden="true"
|
|
21
|
-
class="search-icon"
|
|
16
|
+
class="search-icon {clazz.icon}"
|
|
22
17
|
><path
|
|
23
18
|
stroke-linecap="round"
|
|
24
19
|
stroke-linejoin="round"
|
|
@@ -39,7 +34,7 @@
|
|
|
39
34
|
placeholder="Find something..."
|
|
40
35
|
maxlength="512"
|
|
41
36
|
tabindex="0"
|
|
42
|
-
class="input"
|
|
37
|
+
class="input {clazz.input}"
|
|
43
38
|
bind:this={input}
|
|
44
39
|
bind:value={value}
|
|
45
40
|
on:input
|
|
@@ -51,20 +46,49 @@
|
|
|
51
46
|
|
|
52
47
|
<style>
|
|
53
48
|
.container {
|
|
54
|
-
box-shadow: inset 0 0 0 1px var(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
box-shadow: inset 0 0 0 1px var(
|
|
50
|
+
--search-bar-ring-color,
|
|
51
|
+
var(--search-bar-default-ring-color)
|
|
52
|
+
);
|
|
53
|
+
background-color: var(
|
|
54
|
+
--search-bar-background-color,
|
|
55
|
+
var(--search-bar-default-background-color)
|
|
56
|
+
);
|
|
57
|
+
border-radius: var(
|
|
58
|
+
--search-bar-border-radius,
|
|
59
|
+
var(--search-bar-default-border-radius)
|
|
60
|
+
);
|
|
61
|
+
height: var(
|
|
62
|
+
--search-bar-height,
|
|
63
|
+
var(--search-bar-default-height)
|
|
64
|
+
);
|
|
58
65
|
display: flex;
|
|
59
66
|
align-items: center;
|
|
60
67
|
gap: 0.5rem;
|
|
61
|
-
padding: var(
|
|
68
|
+
padding: var(
|
|
69
|
+
--search-bar-padding,
|
|
70
|
+
var(--search-bar-default-padding)
|
|
71
|
+
);
|
|
62
72
|
box-sizing: border-box;
|
|
73
|
+
max-width: var(
|
|
74
|
+
--search-bar-max-width,
|
|
75
|
+
var(--search-bar-default-max-width)
|
|
76
|
+
);
|
|
77
|
+
width: var(
|
|
78
|
+
--search-bar-width,
|
|
79
|
+
var(--search-bar-default-width)
|
|
80
|
+
);
|
|
63
81
|
}
|
|
64
82
|
|
|
65
83
|
.input {
|
|
66
|
-
font-size: var(
|
|
67
|
-
|
|
84
|
+
font-size: var(
|
|
85
|
+
--search-bar-font-size,
|
|
86
|
+
var(--search-bar-default-font-size)
|
|
87
|
+
);
|
|
88
|
+
line-height: var(
|
|
89
|
+
--search-bar-line-height,
|
|
90
|
+
var(--search-bar-default-line-height)
|
|
91
|
+
);
|
|
68
92
|
box-sizing: border-box;
|
|
69
93
|
border: 0 solid #e5e7eb;
|
|
70
94
|
outline: 2px solid transparent;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import '$lib/css/main.css';
|
|
3
|
+
import './SearchBar.css';
|
|
2
4
|
declare const __propDef: {
|
|
3
5
|
props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
height?: string | undefined;
|
|
10
|
-
padding?: string | undefined;
|
|
11
|
-
lineHeight?: string | undefined;
|
|
12
|
-
fontSize?: string | undefined;
|
|
6
|
+
class?: {
|
|
7
|
+
container?: string | undefined;
|
|
8
|
+
icon?: string | undefined;
|
|
9
|
+
input?: string | undefined;
|
|
10
|
+
} | undefined;
|
|
13
11
|
input?: HTMLElement | undefined;
|
|
14
12
|
value?: string | undefined;
|
|
15
13
|
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
|
-
<script>import
|
|
4
|
-
|
|
3
|
+
<script>import "$lib/css/main.css";
|
|
4
|
+
import "./SearchResults.css";
|
|
5
|
+
import SelectableVerticalList from "../../simple/lists/SelectableVerticalList.svelte";
|
|
6
|
+
let clazz = {};
|
|
7
|
+
export { clazz as class };
|
|
8
|
+
export let noDataText = "Sorry, nothing found", loadingText = "Searching for references ...", results = [], loading = false, footer = true, activeKeyboard = false;
|
|
5
9
|
</script>
|
|
6
10
|
|
|
7
11
|
<div
|
|
8
|
-
|
|
9
|
-
style:--search-results-max-width={maxWidth}
|
|
10
|
-
style:--search-results-height={height}
|
|
11
|
-
style:--search-results-max-height={maxHeight}
|
|
12
|
-
style:--search-results-margin={margin}
|
|
13
|
-
style:--search-results-background-color={backgroundColor}
|
|
14
|
-
style:--search-results-border-color={borderColor}
|
|
15
|
-
style:--search-results-border-radius={borderRadius}
|
|
16
|
-
class="container"
|
|
12
|
+
class="container {clazz.container || ''}"
|
|
17
13
|
>
|
|
18
14
|
{#if loading}
|
|
19
|
-
<div class="loading-container">
|
|
15
|
+
<div class="loading-container {clazz.loading || ''}">
|
|
20
16
|
<slot name="loading">
|
|
21
17
|
<span style:font-size=".875rem">{loadingText}</span>
|
|
22
18
|
</slot>
|
|
23
19
|
</div>
|
|
24
20
|
{:else if !results || results.length == 0}
|
|
25
21
|
<div
|
|
26
|
-
class="no-data-container"
|
|
22
|
+
class="no-data-container {clazz.noData || ''}"
|
|
27
23
|
>
|
|
28
24
|
<slot name="no-data">
|
|
29
25
|
<span style:font-size=".875rem">{noDataText}</span>
|
|
30
26
|
</slot>
|
|
31
27
|
</div>
|
|
32
28
|
{:else}
|
|
33
|
-
<div>
|
|
29
|
+
<div class={clazz.results || ''}>
|
|
34
30
|
<SelectableVerticalList
|
|
35
31
|
elements={results.map((r) => {
|
|
36
32
|
return {
|
|
@@ -72,14 +68,38 @@ export let maxWidth = void 0, width = "100%", height = void 0, maxHeight = void
|
|
|
72
68
|
|
|
73
69
|
<style>
|
|
74
70
|
.container {
|
|
75
|
-
width: var(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
width: var(
|
|
72
|
+
--search-results-width,
|
|
73
|
+
var(--search-results-default-width)
|
|
74
|
+
);
|
|
75
|
+
max-width: var(
|
|
76
|
+
--search-results-max-width,
|
|
77
|
+
var(--search-results-default-max-width)
|
|
78
|
+
);
|
|
79
|
+
height: var(
|
|
80
|
+
--search-results-height,
|
|
81
|
+
var(--search-results-default-height)
|
|
82
|
+
);
|
|
83
|
+
max-height: var(
|
|
84
|
+
--search-results-max-height,
|
|
85
|
+
var(--search-results-default-max-height)
|
|
86
|
+
);
|
|
87
|
+
background-color: var(
|
|
88
|
+
--search-results-background-color,
|
|
89
|
+
var(--search-results-default-background-color)
|
|
90
|
+
);
|
|
91
|
+
margin: var(
|
|
92
|
+
--search-results-margin,
|
|
93
|
+
var(--search-results-default-margin)
|
|
94
|
+
);
|
|
95
|
+
border-top: 1px solid var(
|
|
96
|
+
--search-results-border-color,
|
|
97
|
+
var(--search-results-default-border-color)
|
|
98
|
+
);
|
|
99
|
+
border-radius: var(
|
|
100
|
+
--search-results-border-radius,
|
|
101
|
+
var(--search-results-default-border-radius)
|
|
102
|
+
);
|
|
83
103
|
}
|
|
84
104
|
|
|
85
105
|
.no-data-container, .loading-container {
|
|
@@ -90,7 +110,10 @@ export let maxWidth = void 0, width = "100%", height = void 0, maxHeight = void
|
|
|
90
110
|
}
|
|
91
111
|
|
|
92
112
|
.footer {
|
|
93
|
-
border-top: 1px solid var(
|
|
113
|
+
border-top: 1px solid var(
|
|
114
|
+
--search-results-border-color,
|
|
115
|
+
var(--search-results-default-border-color)
|
|
116
|
+
);
|
|
94
117
|
display: flex;
|
|
95
118
|
align-items: center;
|
|
96
119
|
justify-content: flex-end;
|
|
@@ -6,18 +6,18 @@ export type Result = {
|
|
|
6
6
|
url?: string;
|
|
7
7
|
data?: Record<string, any>;
|
|
8
8
|
};
|
|
9
|
+
import '$lib/css/main.css';
|
|
10
|
+
import './SearchResults.css';
|
|
9
11
|
declare const __propDef: {
|
|
10
12
|
props: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
class?: {
|
|
14
|
+
container?: string | undefined;
|
|
15
|
+
loading?: string | undefined;
|
|
16
|
+
noData?: string | undefined;
|
|
17
|
+
results?: string | undefined;
|
|
18
|
+
} | undefined;
|
|
17
19
|
noDataText?: string | undefined;
|
|
18
20
|
loadingText?: string | undefined;
|
|
19
|
-
borderColor?: string | undefined;
|
|
20
|
-
borderRadius?: string | undefined;
|
|
21
21
|
results?: Result[] | undefined;
|
|
22
22
|
loading?: boolean | undefined;
|
|
23
23
|
footer?: boolean | undefined;
|