@canopy-iiif/app 0.8.1 → 0.8.3
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/lib/AGENTS.md +1 -1
- package/lib/build/build.js +8 -0
- package/lib/build/dev.js +49 -18
- package/lib/build/iiif.js +124 -43
- package/lib/build/mdx.js +2 -2
- package/lib/build/pages.js +8 -8
- package/lib/build/runtimes.js +6 -6
- package/lib/build/search.js +7 -10
- package/lib/build/verify.js +9 -9
- package/lib/components/featured.js +17 -3
- package/lib/search/search-app.jsx +2 -2
- package/lib/search/{command-runtime.js → search-form-runtime.js} +9 -9
- package/lib/search/search.js +2 -2
- package/package.json +1 -1
- package/ui/dist/index.mjs +72 -58
- package/ui/dist/index.mjs.map +3 -3
- package/ui/dist/server.mjs +54 -40
- package/ui/dist/server.mjs.map +3 -3
- package/ui/styles/base/_common.scss +19 -6
- package/ui/styles/base/_heading.scss +17 -0
- package/ui/styles/base/index.scss +2 -1
- package/ui/styles/components/header/_header.scss +13 -0
- package/ui/styles/components/header/_logo.scss +20 -0
- package/ui/styles/components/header/_navbar.scss +15 -0
- package/ui/styles/components/header/index.scss +3 -0
- package/ui/styles/components/index.scss +4 -4
- package/ui/styles/components/search/_filters.scss +265 -0
- package/ui/styles/components/search/_form.scss +171 -0
- package/ui/styles/components/search/_results.scss +121 -0
- package/ui/styles/components/search/index.scss +3 -0
- package/ui/styles/index.css +480 -77
- package/ui/styles/variables.scss +15 -5
- package/ui/styles/components/_command.scss +0 -164
- package/ui/styles/components/_header.scss +0 -0
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
@use '../variables' as *;
|
|
2
|
-
|
|
3
|
-
.canopy-cmdk {
|
|
4
|
-
.canopy-cmdk__trigger {
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
gap: 0.25rem;
|
|
8
|
-
padding: 0.25rem 0.5rem;
|
|
9
|
-
border: 1px solid #e5e7eb;
|
|
10
|
-
color: #374151;
|
|
11
|
-
background: #fff;
|
|
12
|
-
border-radius: 6px;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.canopy-cmdk__overlay {
|
|
17
|
-
position: fixed;
|
|
18
|
-
inset: 0;
|
|
19
|
-
display: none;
|
|
20
|
-
align-items: flex-start;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
background: rgba(0, 0, 0, 0.3);
|
|
23
|
-
z-index: 9999;
|
|
24
|
-
padding-top: 10vh;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.canopy-cmdk__panel {
|
|
28
|
-
position: relative;
|
|
29
|
-
background: #fff;
|
|
30
|
-
min-width: 320px;
|
|
31
|
-
max-width: 720px;
|
|
32
|
-
width: 90%;
|
|
33
|
-
border-radius: 8px;
|
|
34
|
-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
font-family: var(--canopy-font-sans, system-ui, -apple-system, "Segoe UI",
|
|
37
|
-
"Helvetica Neue", Helvetica, Arial, sans-serif);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.canopy-cmdk__close {
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 8px;
|
|
43
|
-
right: 8px;
|
|
44
|
-
border: 1px solid #e5e7eb;
|
|
45
|
-
background: #fff;
|
|
46
|
-
border-radius: 6px;
|
|
47
|
-
padding: 2px 6px;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.canopy-cmdk__inputWrap {
|
|
52
|
-
padding: 10px 12px;
|
|
53
|
-
border-bottom: 1px solid #e5e7eb;
|
|
54
|
-
}
|
|
55
|
-
.canopy-cmdk__input {
|
|
56
|
-
width: 100%;
|
|
57
|
-
padding: 8px 10px;
|
|
58
|
-
border: 1px solid #e5e7eb;
|
|
59
|
-
border-radius: 6px;
|
|
60
|
-
outline: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.canopy-cmdk__list {
|
|
64
|
-
max-height: 50vh;
|
|
65
|
-
overflow: auto;
|
|
66
|
-
padding: 6px 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.canopy-cmdk__item {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
gap: 8px;
|
|
73
|
-
}
|
|
74
|
-
.canopy-cmdk__thumb {
|
|
75
|
-
width: 40px;
|
|
76
|
-
height: 40px;
|
|
77
|
-
object-fit: cover;
|
|
78
|
-
border-radius: 4px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.canopy-cmdk-form {
|
|
83
|
-
--cmdk-label-padding-x: 0.75rem;
|
|
84
|
-
--cmdk-label-padding-y: 0.625rem;
|
|
85
|
-
position: relative;
|
|
86
|
-
backdrop-filter: blur(12px);
|
|
87
|
-
background-color: color-mix(in srgb, #fff 95%, transparent);
|
|
88
|
-
transition: box-shadow var(--duration-fast, 150ms) ease, background-color var(--duration-fast, 150ms) ease;
|
|
89
|
-
cursor: text;
|
|
90
|
-
padding-right: 0.4rem;
|
|
91
|
-
|
|
92
|
-
&::after {
|
|
93
|
-
content: attr(data-placeholder);
|
|
94
|
-
position: absolute;
|
|
95
|
-
left: calc(var(--cmdk-label-padding-x) + 1.25rem + 0.5rem);
|
|
96
|
-
right: 5.5rem;
|
|
97
|
-
top: 50%;
|
|
98
|
-
transform: translateY(-50%);
|
|
99
|
-
color: rgba(148, 163, 184, 0.75);
|
|
100
|
-
opacity: 0.75;
|
|
101
|
-
pointer-events: none;
|
|
102
|
-
white-space: nowrap;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
text-overflow: ellipsis;
|
|
105
|
-
transition: opacity var(--duration-fast, 150ms) ease;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
input[data-canopy-command-input] {
|
|
109
|
-
opacity: 0;
|
|
110
|
-
caret-color: transparent;
|
|
111
|
-
transition: opacity var(--duration-fast, 150ms) ease;
|
|
112
|
-
border: 0;
|
|
113
|
-
outline: none;
|
|
114
|
-
background: transparent;
|
|
115
|
-
box-shadow: none;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
input[data-canopy-command-input]:focus {
|
|
119
|
-
outline: none;
|
|
120
|
-
border: 0;
|
|
121
|
-
box-shadow: none;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&:focus-within {
|
|
125
|
-
&::after {
|
|
126
|
-
opacity: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
input[data-canopy-command-input] {
|
|
130
|
-
opacity: 1;
|
|
131
|
-
caret-color: inherit;
|
|
132
|
-
outline: none;
|
|
133
|
-
border: 0;
|
|
134
|
-
box-shadow: none;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&:hover {
|
|
139
|
-
box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
button[data-canopy-command-trigger] {
|
|
143
|
-
cursor: pointer;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.canopy-cmdk-shortcut {
|
|
148
|
-
display: inline-flex;
|
|
149
|
-
align-items: center;
|
|
150
|
-
gap: 0.25rem;
|
|
151
|
-
border: 1px solid color-mix(in srgb, #fff 40%, transparent);
|
|
152
|
-
background-color: color-mix(in srgb, #fff 20%, transparent);
|
|
153
|
-
border-radius: 0.375rem;
|
|
154
|
-
padding: 0.125rem 0.5rem;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.canopy-cmdk-label {
|
|
158
|
-
flex: 1;
|
|
159
|
-
min-width: 0;
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: center;
|
|
162
|
-
gap: 0.5rem;
|
|
163
|
-
padding: var(--cmdk-label-padding-y) var(--cmdk-label-padding-x);
|
|
164
|
-
}
|
|
File without changes
|