@chitrank2050/monoline-ui 0.2.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/LICENSE +21 -0
- package/README.md +313 -0
- package/chunk-2T2JZW4Z.js +2 -0
- package/chunk-2T2JZW4Z.js.map +1 -0
- package/chunk-37JB3ZNS.js +2 -0
- package/chunk-37JB3ZNS.js.map +1 -0
- package/chunk-3F6Z4CFV.js +2 -0
- package/chunk-3F6Z4CFV.js.map +1 -0
- package/chunk-5TIKYN5B.js +2 -0
- package/chunk-5TIKYN5B.js.map +1 -0
- package/chunk-6AEWSPAE.js +2 -0
- package/chunk-6AEWSPAE.js.map +1 -0
- package/chunk-7ANXAXP5.js +2 -0
- package/chunk-7ANXAXP5.js.map +1 -0
- package/chunk-7SDVYBBO.js +2 -0
- package/chunk-7SDVYBBO.js.map +1 -0
- package/chunk-7WJF6B6G.js +2 -0
- package/chunk-7WJF6B6G.js.map +1 -0
- package/chunk-A2LXX23X.js +2 -0
- package/chunk-A2LXX23X.js.map +1 -0
- package/chunk-AACTIVV7.js +2 -0
- package/chunk-AACTIVV7.js.map +1 -0
- package/chunk-B5P3RAN2.js +2 -0
- package/chunk-B5P3RAN2.js.map +1 -0
- package/chunk-COFALEVG.js +2 -0
- package/chunk-COFALEVG.js.map +1 -0
- package/chunk-D3E4G2RE.js +2 -0
- package/chunk-D3E4G2RE.js.map +1 -0
- package/chunk-DJT3EVR4.js +2 -0
- package/chunk-DJT3EVR4.js.map +1 -0
- package/chunk-EWKGYQOX.js +2 -0
- package/chunk-EWKGYQOX.js.map +1 -0
- package/chunk-FLUGXF5D.js +2 -0
- package/chunk-FLUGXF5D.js.map +1 -0
- package/chunk-GSWZL5C2.js +2 -0
- package/chunk-GSWZL5C2.js.map +1 -0
- package/chunk-H2CRII7X.js +2 -0
- package/chunk-H2CRII7X.js.map +1 -0
- package/chunk-IVTAW6SX.js +3 -0
- package/chunk-IVTAW6SX.js.map +1 -0
- package/chunk-JBOP2AJB.js +2 -0
- package/chunk-JBOP2AJB.js.map +1 -0
- package/chunk-JCKPCV2H.js +2 -0
- package/chunk-JCKPCV2H.js.map +1 -0
- package/chunk-K665XZ3N.js +2 -0
- package/chunk-K665XZ3N.js.map +1 -0
- package/chunk-K72EORST.js +2 -0
- package/chunk-K72EORST.js.map +1 -0
- package/chunk-KGLH6WI6.js +2 -0
- package/chunk-KGLH6WI6.js.map +1 -0
- package/chunk-LVMQ3ZM3.js +2 -0
- package/chunk-LVMQ3ZM3.js.map +1 -0
- package/chunk-N37GMCSK.js +2 -0
- package/chunk-N37GMCSK.js.map +1 -0
- package/chunk-NDHOUIOX.js +2 -0
- package/chunk-NDHOUIOX.js.map +1 -0
- package/chunk-NDTTLW56.js +2 -0
- package/chunk-NDTTLW56.js.map +1 -0
- package/chunk-O43OQHFN.js +2 -0
- package/chunk-O43OQHFN.js.map +1 -0
- package/chunk-QGG3J7OW.js +2 -0
- package/chunk-QGG3J7OW.js.map +1 -0
- package/chunk-QUG36ONS.js +2 -0
- package/chunk-QUG36ONS.js.map +1 -0
- package/chunk-R2YSVBHS.js +2 -0
- package/chunk-R2YSVBHS.js.map +1 -0
- package/chunk-TSOHITZ7.js +2 -0
- package/chunk-TSOHITZ7.js.map +1 -0
- package/chunk-V6PUPMAY.js +3 -0
- package/chunk-V6PUPMAY.js.map +1 -0
- package/chunk-VSATIFOR.js +2 -0
- package/chunk-VSATIFOR.js.map +1 -0
- package/chunk-XEB7C557.js +2 -0
- package/chunk-XEB7C557.js.map +1 -0
- package/chunk-Z7SIB4X6.js +2 -0
- package/chunk-Z7SIB4X6.js.map +1 -0
- package/chunk-ZOPV3BXO.js +2 -0
- package/chunk-ZOPV3BXO.js.map +1 -0
- package/chunk-ZU3HIOBU.js +2 -0
- package/chunk-ZU3HIOBU.js.map +1 -0
- package/components/action-rail/index.d.ts +18 -0
- package/components/action-rail/index.js +2 -0
- package/components/action-rail/index.js.map +1 -0
- package/components/avatar/avatar.css +47 -0
- package/components/avatar/index.d.ts +28 -0
- package/components/avatar/index.js +2 -0
- package/components/avatar/index.js.map +1 -0
- package/components/back-link/back-link.css +30 -0
- package/components/back-link/index.d.ts +18 -0
- package/components/back-link/index.js +2 -0
- package/components/back-link/index.js.map +1 -0
- package/components/badge/badge.css +27 -0
- package/components/badge/index.d.ts +26 -0
- package/components/badge/index.js +2 -0
- package/components/badge/index.js.map +1 -0
- package/components/button/button.css +238 -0
- package/components/button/index.d.ts +36 -0
- package/components/button/index.js +2 -0
- package/components/button/index.js.map +1 -0
- package/components/callout/callout.css +20 -0
- package/components/callout/index.d.ts +20 -0
- package/components/callout/index.js +2 -0
- package/components/callout/index.js.map +1 -0
- package/components/card/card.css +166 -0
- package/components/card/index.d.ts +112 -0
- package/components/card/index.js +2 -0
- package/components/card/index.js.map +1 -0
- package/components/code-block/code-block.css +23 -0
- package/components/code-block/index.d.ts +21 -0
- package/components/code-block/index.js +2 -0
- package/components/code-block/index.js.map +1 -0
- package/components/command-search/command-search.css +217 -0
- package/components/command-search/index.d.ts +73 -0
- package/components/command-search/index.js +2 -0
- package/components/command-search/index.js.map +1 -0
- package/components/container/container.css +41 -0
- package/components/container/index.d.ts +11 -0
- package/components/container/index.js +2 -0
- package/components/container/index.js.map +1 -0
- package/components/data-list/data-list.css +139 -0
- package/components/data-list/index.d.ts +45 -0
- package/components/data-list/index.js +2 -0
- package/components/data-list/index.js.map +1 -0
- package/components/editorial-line/index.d.ts +24 -0
- package/components/editorial-line/index.js +2 -0
- package/components/editorial-line/index.js.map +1 -0
- package/components/eyebrow/eyebrow.css +13 -0
- package/components/eyebrow/index.d.ts +17 -0
- package/components/eyebrow/index.js +2 -0
- package/components/eyebrow/index.js.map +1 -0
- package/components/footer/footer.css +201 -0
- package/components/footer/index.d.ts +66 -0
- package/components/footer/index.js +2 -0
- package/components/footer/index.js.map +1 -0
- package/components/input/index.d.ts +28 -0
- package/components/input/index.js +2 -0
- package/components/input/index.js.map +1 -0
- package/components/input/input.css +37 -0
- package/components/link-list/index.d.ts +47 -0
- package/components/link-list/index.js +2 -0
- package/components/link-list/index.js.map +1 -0
- package/components/link-list/link-list.css +208 -0
- package/components/media-frame/index.d.ts +31 -0
- package/components/media-frame/index.js +2 -0
- package/components/media-frame/index.js.map +1 -0
- package/components/media-frame/media-frame.css +86 -0
- package/components/meta-row/index.d.ts +22 -0
- package/components/meta-row/index.js +2 -0
- package/components/meta-row/index.js.map +1 -0
- package/components/metric/index.d.ts +22 -0
- package/components/metric/index.js +2 -0
- package/components/metric/index.js.map +1 -0
- package/components/navbar/index.d.ts +78 -0
- package/components/navbar/index.js +2 -0
- package/components/navbar/index.js.map +1 -0
- package/components/navbar/navbar.css +245 -0
- package/components/progress/index.d.ts +20 -0
- package/components/progress/index.js +2 -0
- package/components/progress/index.js.map +1 -0
- package/components/progress/progress.css +31 -0
- package/components/pull-quote/index.d.ts +18 -0
- package/components/pull-quote/index.js +2 -0
- package/components/pull-quote/index.js.map +1 -0
- package/components/rail/index.d.ts +28 -0
- package/components/rail/index.js +2 -0
- package/components/rail/index.js.map +1 -0
- package/components/rail/rail.css +118 -0
- package/components/resources-panel/index.d.ts +42 -0
- package/components/resources-panel/index.js +2 -0
- package/components/resources-panel/index.js.map +1 -0
- package/components/resources-panel/resources-panel.css +396 -0
- package/components/section-head/index.d.ts +24 -0
- package/components/section-head/index.js +2 -0
- package/components/section-head/index.js.map +1 -0
- package/components/segmented-control/index.d.ts +28 -0
- package/components/segmented-control/index.js +2 -0
- package/components/segmented-control/index.js.map +1 -0
- package/components/segmented-control/segmented-control.css +177 -0
- package/components/select/index.d.ts +65 -0
- package/components/select/index.js +2 -0
- package/components/select/index.js.map +1 -0
- package/components/select/select.css +298 -0
- package/components/skeleton/index.d.ts +19 -0
- package/components/skeleton/index.js +2 -0
- package/components/skeleton/index.js.map +1 -0
- package/components/skeleton/skeleton.css +13 -0
- package/components/status/index.d.ts +20 -0
- package/components/status/index.js +2 -0
- package/components/status/index.js.map +1 -0
- package/components/status/status.css +86 -0
- package/components/tag/index.d.ts +35 -0
- package/components/tag/index.js +2 -0
- package/components/tag/index.js.map +1 -0
- package/components/tag/tag.css +10 -0
- package/components/testimonial/index.d.ts +30 -0
- package/components/testimonial/index.js +2 -0
- package/components/testimonial/index.js.map +1 -0
- package/components/testimonial/testimonial.css +109 -0
- package/components/testimonial-grid/index.d.ts +12 -0
- package/components/testimonial-grid/index.js +2 -0
- package/components/testimonial-grid/index.js.map +1 -0
- package/components/testimonial-grid/testimonial-grid.css +58 -0
- package/components/theme-switcher/index.d.ts +24 -0
- package/components/theme-switcher/index.js +2 -0
- package/components/theme-switcher/index.js.map +1 -0
- package/components/theme-switcher/theme-switcher.css +130 -0
- package/components/toast/index.d.ts +20 -0
- package/components/toast/index.js +2 -0
- package/components/toast/index.js.map +1 -0
- package/components/toast/toast.css +22 -0
- package/components/toc/index.d.ts +27 -0
- package/components/toc/index.js +2 -0
- package/components/toc/index.js.map +1 -0
- package/components/toggle/index.d.ts +20 -0
- package/components/toggle/index.js +2 -0
- package/components/toggle/index.js.map +1 -0
- package/components/toggle/toggle.css +108 -0
- package/foundations/breakpoints.d.ts +12 -0
- package/foundations/breakpoints.js +2 -0
- package/foundations/breakpoints.js.map +1 -0
- package/foundations/use-breakpoint.d.ts +5 -0
- package/foundations/use-breakpoint.js +3 -0
- package/foundations/use-breakpoint.js.map +1 -0
- package/index.d.ts +42 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/lib/utils.d.ts +7 -0
- package/lib/utils.js +2 -0
- package/lib/utils.js.map +1 -0
- package/package.json +228 -0
- package/styles/theme/animations.css +206 -0
- package/styles/theme/base.css +75 -0
- package/styles/theme/tailwind.css +371 -0
- package/styles/theme/tokens.css +562 -0
- package/styles/theme/typography.css +108 -0
- package/styles/theme/utilities.css +281 -0
- package/styles/theme.css +68 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/* ── Backdrop ── */
|
|
3
|
+
.ml-command-search__backdrop {
|
|
4
|
+
position: fixed;
|
|
5
|
+
inset: 0;
|
|
6
|
+
z-index: var(--z-modal, 50);
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding-top: 7rem;
|
|
11
|
+
background: color-mix(in oklch, var(--background) 40%, transparent);
|
|
12
|
+
-webkit-backdrop-filter: blur(6px);
|
|
13
|
+
backdrop-filter: blur(6px);
|
|
14
|
+
animation: ml-command-search-fade-in var(--duration-fast, 140ms)
|
|
15
|
+
var(--ease-out, ease-out) both;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes ml-command-search-fade-in {
|
|
19
|
+
from {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ── Panel ── */
|
|
25
|
+
.ml-command-search__panel {
|
|
26
|
+
display: flex;
|
|
27
|
+
width: min(37.5rem, calc(100vw - 2rem));
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
border: 1px solid var(--border);
|
|
30
|
+
border-radius: var(--radius-xl, 1rem);
|
|
31
|
+
background: color-mix(in oklch, var(--surface) 98%, transparent);
|
|
32
|
+
-webkit-backdrop-filter: blur(24px);
|
|
33
|
+
backdrop-filter: blur(24px);
|
|
34
|
+
box-shadow:
|
|
35
|
+
0 0 0 1px color-mix(in oklch, var(--text) 5%, transparent),
|
|
36
|
+
0 8px 32px color-mix(in oklch, var(--background) 30%, transparent),
|
|
37
|
+
0 24px 64px color-mix(in oklch, var(--background) 50%, transparent);
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
animation: ml-command-search-slide-in var(--duration-fast, 140ms)
|
|
40
|
+
var(--ease-out, ease-out) both;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes ml-command-search-slide-in {
|
|
44
|
+
from {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transform: translateY(-0.5rem) scale(0.97);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ── Input row ── */
|
|
51
|
+
.ml-command-search__input-row {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 0.625rem;
|
|
55
|
+
border-bottom: 1px solid var(--border);
|
|
56
|
+
padding: 0.875rem 1rem;
|
|
57
|
+
transition:
|
|
58
|
+
border-color var(--duration-fast, 140ms) var(--ease-out, ease-out),
|
|
59
|
+
box-shadow var(--duration-fast, 140ms) var(--ease-out, ease-out);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ml-command-search__input-row:focus-within {
|
|
63
|
+
border-color: color-mix(in oklch, var(--accent) 40%, var(--border));
|
|
64
|
+
box-shadow: inset 0 -1px 0
|
|
65
|
+
color-mix(in oklch, var(--accent) 40%, var(--border));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ml-command-search__search-icon {
|
|
69
|
+
color: var(--text-muted);
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
line-height: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ml-command-search__input {
|
|
75
|
+
flex: 1;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
border: 0;
|
|
78
|
+
background: transparent;
|
|
79
|
+
color: var(--text);
|
|
80
|
+
font-size: 0.9375rem;
|
|
81
|
+
font-family: var(--font-sans);
|
|
82
|
+
outline: none;
|
|
83
|
+
box-shadow: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ml-command-search__input:focus,
|
|
87
|
+
.ml-command-search__input:focus-visible {
|
|
88
|
+
outline: none !important;
|
|
89
|
+
box-shadow: none !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ml-command-search__input--lg {
|
|
93
|
+
font-size: 1.0625rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ml-command-search__input::placeholder {
|
|
97
|
+
color: var(--text-muted);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ml-command-search__esc {
|
|
101
|
+
border: 1px solid var(--border);
|
|
102
|
+
border-radius: var(--radius-xs, 0.25rem);
|
|
103
|
+
background: var(--surface);
|
|
104
|
+
padding: 0.1875rem 0.4375rem;
|
|
105
|
+
font-family: var(--font-mono);
|
|
106
|
+
font-size: 0.625rem;
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
line-height: 1;
|
|
109
|
+
color: var(--text-muted);
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
flex-shrink: 0;
|
|
112
|
+
transition: border-color var(--duration-fast, 140ms)
|
|
113
|
+
var(--ease-out, ease-out);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ml-command-search__esc:hover {
|
|
117
|
+
border-color: var(--text-muted);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ── Results list ── */
|
|
121
|
+
.ml-command-search__list {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
gap: 0.125rem;
|
|
125
|
+
max-height: 22rem;
|
|
126
|
+
overflow-y: auto;
|
|
127
|
+
padding: var(--ml-space-2, 0.5rem);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ml-command-search__list::-webkit-scrollbar {
|
|
131
|
+
width: 4px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ml-command-search__list::-webkit-scrollbar-track {
|
|
135
|
+
background: transparent;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ml-command-search__list::-webkit-scrollbar-thumb {
|
|
139
|
+
background: var(--border);
|
|
140
|
+
border-radius: 999px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ── Group ── */
|
|
144
|
+
.ml-command-search__group {
|
|
145
|
+
padding-bottom: var(--ml-space-1, 0.25rem);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ml-command-search__group [cmdk-group-heading],
|
|
149
|
+
.ml-command-search__group-heading {
|
|
150
|
+
padding: 0.5rem 0.75rem 0.25rem;
|
|
151
|
+
font-size: 0.625rem;
|
|
152
|
+
font-weight: 700;
|
|
153
|
+
font-family: var(--font-mono);
|
|
154
|
+
letter-spacing: 0.06em;
|
|
155
|
+
text-transform: uppercase;
|
|
156
|
+
color: var(--text-muted);
|
|
157
|
+
user-select: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* ── Item ── */
|
|
161
|
+
.ml-command-search__item {
|
|
162
|
+
display: flex;
|
|
163
|
+
width: 100%;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 0.5rem;
|
|
166
|
+
border: none;
|
|
167
|
+
border-radius: var(--radius-md, 0.5rem);
|
|
168
|
+
padding: 0.5625rem 0.75rem;
|
|
169
|
+
background: transparent;
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
transition: background var(--duration-fast, 140ms) var(--ease-out, ease-out);
|
|
172
|
+
outline: none;
|
|
173
|
+
text-align: left;
|
|
174
|
+
font-size: 0.875rem;
|
|
175
|
+
font-weight: 550;
|
|
176
|
+
color: var(--text);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ml-command-search__item[aria-selected="true"],
|
|
180
|
+
.ml-command-search__item[data-active] {
|
|
181
|
+
background: color-mix(in oklch, var(--text) 6%, transparent);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ml-command-search__item:focus-visible {
|
|
185
|
+
background: color-mix(in oklch, var(--text) 6%, transparent);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* ── Empty / threshold ── */
|
|
189
|
+
.ml-command-search__empty,
|
|
190
|
+
.ml-command-search__threshold {
|
|
191
|
+
padding: 2.5rem 1rem;
|
|
192
|
+
text-align: center;
|
|
193
|
+
color: var(--text-muted);
|
|
194
|
+
font-size: 0.875rem;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* ── Footer (keyboard hints) ── */
|
|
198
|
+
.ml-command-search__footer {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 1.25rem;
|
|
202
|
+
border-top: 1px solid var(--border);
|
|
203
|
+
padding: 0.625rem 1rem;
|
|
204
|
+
color: var(--text-muted);
|
|
205
|
+
font-size: 0.6875rem;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.ml-command-search__footer kbd {
|
|
209
|
+
border: 1px solid var(--border);
|
|
210
|
+
border-radius: var(--radius-xs, 0.25rem);
|
|
211
|
+
padding: 0.125rem 0.3125rem;
|
|
212
|
+
font-family: var(--font-mono);
|
|
213
|
+
font-size: 0.5625rem;
|
|
214
|
+
font-weight: 700;
|
|
215
|
+
margin-right: 0.25rem;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { Command } from 'cmdk';
|
|
3
|
+
|
|
4
|
+
interface CommandSearchProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onOpenChange: (open: boolean) => void;
|
|
7
|
+
shortcut?: string | false;
|
|
8
|
+
debounce?: number | false;
|
|
9
|
+
minChars?: number;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
onQueryChange?: (query: string) => void;
|
|
12
|
+
filter?: (query: string, itemValue: string) => boolean;
|
|
13
|
+
shouldFilter?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
16
|
+
children?: React$1.ReactNode;
|
|
17
|
+
showFooter?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface CommandSearchInputProps extends Omit<React$1.ComponentProps<typeof Command.Input>, "children" | "className" | "onValueChange" | "placeholder" | "size" | "value"> {
|
|
20
|
+
className?: string;
|
|
21
|
+
inputClassName?: string;
|
|
22
|
+
size?: "sm" | "md" | "lg";
|
|
23
|
+
}
|
|
24
|
+
type CommandSearchListProps = React$1.ComponentProps<typeof Command.List>;
|
|
25
|
+
interface CommandSearchItemProps extends Omit<React$1.ComponentProps<typeof Command.Item>, "disabled" | "onSelect" | "value"> {
|
|
26
|
+
value: string;
|
|
27
|
+
onSelect?: () => void;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
}
|
|
30
|
+
type CommandSearchEmptyProps = React$1.ComponentProps<typeof Command.Empty>;
|
|
31
|
+
type CommandSearchGroupProps = React$1.ComponentProps<typeof Command.Group>;
|
|
32
|
+
interface CommandSearchFooterProps extends React$1.ComponentProps<"div"> {
|
|
33
|
+
children?: React$1.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
interface CommandSearchContextValue {
|
|
36
|
+
search: string;
|
|
37
|
+
rawSearch: string;
|
|
38
|
+
setRawSearch: (q: string) => void;
|
|
39
|
+
minChars: number;
|
|
40
|
+
placeholder: string;
|
|
41
|
+
close: () => void;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare function CommandSearchEmpty({ className, children, ref, ...props }: CommandSearchEmptyProps): React.ReactElement | null;
|
|
45
|
+
|
|
46
|
+
declare function CommandSearchFooter({ className, children, ref, ...props }: CommandSearchFooterProps): React$1.ReactElement;
|
|
47
|
+
|
|
48
|
+
declare function CommandSearchGroup({ heading, className, children, ref, ...props }: CommandSearchGroupProps): React.ReactElement;
|
|
49
|
+
|
|
50
|
+
declare function CommandSearchInput({ className, inputClassName, ref, size, autoComplete, autoCorrect, autoFocus, spellCheck, ...props }: CommandSearchInputProps): React.ReactElement;
|
|
51
|
+
|
|
52
|
+
declare function CommandSearchItem({ value, onSelect, disabled, className, children, ref, ...props }: CommandSearchItemProps): React.ReactElement;
|
|
53
|
+
|
|
54
|
+
declare function CommandSearchList({ className, children, ref, ...props }: CommandSearchListProps): React.ReactElement;
|
|
55
|
+
|
|
56
|
+
declare function CommandSearchRoot({ open, onOpenChange, shortcut, debounce: debounceProp, minChars, placeholder, onQueryChange, filter, shouldFilter, className, ref, children, showFooter, }: CommandSearchProps): React.ReactElement | null;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @module CommandSearch
|
|
60
|
+
* Description for CommandSearch component.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
declare const CommandSearch: typeof CommandSearchRoot & {
|
|
64
|
+
displayName: string;
|
|
65
|
+
Input: typeof CommandSearchInput;
|
|
66
|
+
List: typeof CommandSearchList;
|
|
67
|
+
Item: typeof CommandSearchItem;
|
|
68
|
+
Empty: typeof CommandSearchEmpty;
|
|
69
|
+
Group: typeof CommandSearchGroup;
|
|
70
|
+
Footer: typeof CommandSearchFooter;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export { CommandSearch, type CommandSearchContextValue, type CommandSearchEmptyProps, type CommandSearchFooterProps, type CommandSearchGroupProps, type CommandSearchInputProps, type CommandSearchItemProps, type CommandSearchListProps, type CommandSearchProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ml-container {
|
|
5
|
+
--ml-container-max: 80rem;
|
|
6
|
+
--ml-container-x: var(--space-6);
|
|
7
|
+
--ml-container-x-tablet: var(--space-10);
|
|
8
|
+
--ml-container-x-desktop: var(--space-12);
|
|
9
|
+
|
|
10
|
+
width: 100%;
|
|
11
|
+
max-width: var(--ml-container-max);
|
|
12
|
+
margin-inline: auto;
|
|
13
|
+
padding-inline: var(--ml-container-x);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (min-width: 48rem) {
|
|
17
|
+
.ml-container {
|
|
18
|
+
padding-inline: var(--ml-container-x-tablet);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (min-width: 80rem) {
|
|
23
|
+
.ml-container {
|
|
24
|
+
padding-inline: var(--ml-container-x-desktop);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ml-container[data-size="sm"] {
|
|
29
|
+
--ml-container-max: 64rem;
|
|
30
|
+
--ml-container-x: var(--space-5);
|
|
31
|
+
--ml-container-x-tablet: var(--space-8);
|
|
32
|
+
--ml-container-x-desktop: var(--space-8);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ml-container[data-size="lg"] {
|
|
36
|
+
--ml-container-max: 90rem;
|
|
37
|
+
--ml-container-x: var(--space-8);
|
|
38
|
+
--ml-container-x-tablet: var(--space-12);
|
|
39
|
+
--ml-container-x-desktop: var(--space-16);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type ContainerSize = "sm" | "md" | "lg";
|
|
2
|
+
interface ContainerProps extends React.ComponentProps<"div"> {
|
|
3
|
+
size?: ContainerSize;
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
}
|
|
6
|
+
declare function Container({ size, as: Tag, className, children, ref, ...props }: ContainerProps): React.ReactElement;
|
|
7
|
+
declare namespace Container {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { Container, type ContainerProps, type ContainerSize };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ml-data-list {
|
|
5
|
+
--ml-data-list-item-padding-y: var(--ml-space-4);
|
|
6
|
+
--ml-data-list-item-gap: var(--ml-space-4);
|
|
7
|
+
--ml-data-list-label-width: var(--ml-space-8);
|
|
8
|
+
--ml-data-list-title-text: var(--text-xl);
|
|
9
|
+
--ml-data-list-description-text: var(--text-sm);
|
|
10
|
+
--ml-data-list-trailing-text: var(--text-2xs);
|
|
11
|
+
|
|
12
|
+
display: grid;
|
|
13
|
+
width: 100%;
|
|
14
|
+
border-block-start: var(--border-thin) solid var(--border);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ml-data-list[data-size="sm"] {
|
|
18
|
+
--ml-data-list-item-padding-y: var(--ml-space-3);
|
|
19
|
+
--ml-data-list-item-gap: var(--ml-space-3);
|
|
20
|
+
--ml-data-list-label-width: var(--ml-space-6);
|
|
21
|
+
--ml-data-list-title-text: var(--text-base);
|
|
22
|
+
--ml-data-list-description-text: var(--text-xs);
|
|
23
|
+
--ml-data-list-trailing-text: var(--text-3xs);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ml-data-list[data-size="lg"] {
|
|
27
|
+
--ml-data-list-item-padding-y: var(--ml-space-5);
|
|
28
|
+
--ml-data-list-item-gap: var(--ml-space-5);
|
|
29
|
+
--ml-data-list-label-width: var(--ml-space-10);
|
|
30
|
+
--ml-data-list-title-text: var(--text-2xl);
|
|
31
|
+
--ml-data-list-description-text: var(--text-base);
|
|
32
|
+
--ml-data-list-trailing-text: var(--text-xs);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ml-data-list__item {
|
|
36
|
+
display: grid;
|
|
37
|
+
width: 100%;
|
|
38
|
+
grid-template-columns: minmax(0, 1fr);
|
|
39
|
+
gap: var(--ml-data-list-item-gap);
|
|
40
|
+
align-items: start;
|
|
41
|
+
padding-block: var(--ml-data-list-item-padding-y);
|
|
42
|
+
border-block-end: var(--border-thin) solid var(--border);
|
|
43
|
+
transition:
|
|
44
|
+
background-color var(--duration-micro) var(--ease-out),
|
|
45
|
+
border-color var(--duration-micro) var(--ease-out),
|
|
46
|
+
box-shadow var(--duration-micro) var(--ease-out);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
button.ml-data-list__item {
|
|
50
|
+
appearance: none;
|
|
51
|
+
padding-inline: 0;
|
|
52
|
+
background: transparent;
|
|
53
|
+
color: inherit;
|
|
54
|
+
font: inherit;
|
|
55
|
+
text-align: inherit;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ml-data-list__item[data-interactive="true"] {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
border-radius: var(--radius-lg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ml-data-list__item[data-interactive="true"]:hover {
|
|
64
|
+
background: var(--surface-2);
|
|
65
|
+
border-color: color-mix(in oklch, var(--border-strong) 80%, var(--border));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ml-data-list__item[data-interactive="true"]:focus-visible {
|
|
69
|
+
outline: none;
|
|
70
|
+
box-shadow: var(--focus-ring);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ml-data-list__label {
|
|
74
|
+
min-width: 0;
|
|
75
|
+
color: var(--text-muted);
|
|
76
|
+
font-family: var(--font-mono);
|
|
77
|
+
font-size: var(--text-2xs);
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
line-height: 1;
|
|
80
|
+
letter-spacing: var(--tracking-meta);
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ml-data-list[data-size="sm"] .ml-data-list__label {
|
|
85
|
+
font-size: var(--text-3xs);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ml-data-list[data-size="lg"] .ml-data-list__label {
|
|
89
|
+
font-size: var(--text-xs);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ml-data-list__content {
|
|
93
|
+
display: grid;
|
|
94
|
+
gap: var(--ml-space-1);
|
|
95
|
+
min-width: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ml-data-list__title {
|
|
99
|
+
display: block;
|
|
100
|
+
color: var(--primary);
|
|
101
|
+
font-size: var(--ml-data-list-title-text);
|
|
102
|
+
font-weight: var(--ml-data-list-title-weight, 700);
|
|
103
|
+
line-height: var(--ml-data-list-title-lh, var(--leading-tight));
|
|
104
|
+
letter-spacing: var(--tracking-heading);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ml-data-list__description {
|
|
108
|
+
margin: 0;
|
|
109
|
+
color: var(--text-secondary);
|
|
110
|
+
font-size: var(--ml-data-list-description-text);
|
|
111
|
+
line-height: var(--leading-normal);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ml-data-list__trailing {
|
|
115
|
+
color: var(--text-muted);
|
|
116
|
+
font-family: var(--font-mono);
|
|
117
|
+
font-size: var(--ml-data-list-trailing-text);
|
|
118
|
+
line-height: 1;
|
|
119
|
+
letter-spacing: var(--tracking-meta);
|
|
120
|
+
text-transform: uppercase;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ml-data-list[data-prose="true"] {
|
|
124
|
+
--ml-data-list-title-weight: 400;
|
|
125
|
+
--ml-data-list-title-lh: var(--leading-relaxed);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ml-data-list[data-prose="true"] .ml-data-list__title {
|
|
129
|
+
color: var(--text-secondary);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ml-data-list[data-variant="numbered"] .ml-data-list__item {
|
|
133
|
+
grid-template-columns: var(--ml-data-list-label-width) minmax(0, 1fr);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ml-data-list[data-variant="numbered"] .ml-data-list__trailing {
|
|
137
|
+
grid-column: 2;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type DataListSize = "sm" | "md" | "lg";
|
|
4
|
+
type DataListVariant = "default" | "numbered";
|
|
5
|
+
interface DataListItemData {
|
|
6
|
+
label?: React$1.ReactNode;
|
|
7
|
+
title: React$1.ReactNode;
|
|
8
|
+
description?: React$1.ReactNode;
|
|
9
|
+
trailing?: React$1.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
interface DataListProps extends React$1.ComponentProps<"div"> {
|
|
12
|
+
size?: DataListSize;
|
|
13
|
+
variant?: DataListVariant;
|
|
14
|
+
prose?: boolean;
|
|
15
|
+
items?: DataListItemData[];
|
|
16
|
+
}
|
|
17
|
+
interface DataListItemBaseProps {
|
|
18
|
+
label?: React$1.ReactNode;
|
|
19
|
+
title?: React$1.ReactNode;
|
|
20
|
+
description?: React$1.ReactNode;
|
|
21
|
+
trailing?: React$1.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
type DataListItemProps = (DataListItemBaseProps & {
|
|
24
|
+
onClick: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
25
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
26
|
+
} & Omit<React$1.ComponentPropsWithRef<"button">, "title" | "onClick" | "ref">) | (DataListItemBaseProps & {
|
|
27
|
+
onClick?: never;
|
|
28
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
29
|
+
} & Omit<React$1.ComponentPropsWithRef<"div">, "title" | "onClick" | "ref">);
|
|
30
|
+
|
|
31
|
+
declare function DataListItem(props: DataListItemProps): React.ReactElement;
|
|
32
|
+
|
|
33
|
+
declare function DataListRoot({ className, size, variant, prose, items, children, ref, ...props }: DataListProps): React.ReactElement;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @module DataList
|
|
37
|
+
* Description for DataList component.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
declare const DataList: typeof DataListRoot & {
|
|
41
|
+
displayName: string;
|
|
42
|
+
Item: typeof DataListItem;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { DataList, type DataListItemData, type DataListItemProps, type DataListProps, type DataListSize, type DataListVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface EditorialLineProps extends Omit<React.ComponentProps<"article">, "title"> {
|
|
4
|
+
n: number;
|
|
5
|
+
date: React.ReactNode;
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
readTime?: number;
|
|
8
|
+
tag?: React.ReactNode;
|
|
9
|
+
href?: string;
|
|
10
|
+
hover?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare function EditorialLineRoot({ className, n, date, title, readTime, tag, href, hover, ref, ...props }: EditorialLineProps): React.ReactElement;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @module EditorialLine
|
|
17
|
+
* Description for EditorialLine component.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
declare const EditorialLine: typeof EditorialLineRoot & {
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { EditorialLine, type EditorialLineProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.eyebrow,
|
|
5
|
+
.ml-eyebrow {
|
|
6
|
+
font-family: var(--font-mono);
|
|
7
|
+
font-size: var(--text-2xs);
|
|
8
|
+
letter-spacing: var(--tracking-eyebrow);
|
|
9
|
+
text-transform: uppercase;
|
|
10
|
+
color: var(--text-muted);
|
|
11
|
+
display: inline-block;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type EyebrowSize = "xs" | "sm" | "md";
|
|
4
|
+
interface EyebrowProps extends React$1.ComponentProps<"span"> {
|
|
5
|
+
size?: EyebrowSize;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare function EyebrowRoot({ className, size, ref, ...props }: EyebrowProps): React.ReactElement;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @module eyebrow
|
|
12
|
+
* Description for eyebrow component.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
declare const Eyebrow: typeof EyebrowRoot;
|
|
16
|
+
|
|
17
|
+
export { Eyebrow, type EyebrowProps, type EyebrowSize };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|