fulldev-ui 0.5.0-beta.0 → 0.5.0-beta.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.
@@ -12,11 +12,19 @@ interface Props extends GlobalProps, HTMLAttributes<'aside'> {
12
12
  size?: 'sm' | 'md' | 'lg' | undefined
13
13
  search?: boolean | undefined
14
14
  logo?: string | undefined
15
+ company?: string | undefined
15
16
  buttons?: any[] | undefined
16
17
  open?: boolean | undefined
17
18
  }
18
19
 
19
- const { size = 'sm', open = false, logo, buttons, search } = Astro.props
20
+ const {
21
+ size = 'sm',
22
+ open = false,
23
+ logo,
24
+ company,
25
+ buttons,
26
+ search,
27
+ } = Astro.props
20
28
  ---
21
29
 
22
30
  <input
@@ -31,7 +39,10 @@ const { size = 'sm', open = false, logo, buttons, search } = Astro.props
31
39
  {size}
32
40
  {open}
33
41
  >
34
- <Logo {logo} />
42
+ <Logo
43
+ src={logo}
44
+ company={company}
45
+ />
35
46
  {search && <Search />}
36
47
  <Element class:list="buttons">
37
48
  {
@@ -6,7 +6,7 @@ import { pascal } from 'radash'
6
6
  const slug = Astro.url.pathname.replace(/\/$/, '').split('/').pop() || ''
7
7
  const componentName = pascal(slug)
8
8
 
9
- const allComponents = import.meta.glob('src/**/*.astro', { eager: true })
9
+ const allComponents = import.meta.glob('/src/**/*.astro', { eager: true })
10
10
  const foundComponent = Object.entries(allComponents).find(
11
11
  ([key]) => key.split('/').pop() === `${componentName}.astro`
12
12
  )?.[1] as any
@@ -13,7 +13,7 @@ toc: false
13
13
  themeselect: true
14
14
 
15
15
  header:
16
- logo: Fulldev UI
16
+ company: Fulldev UI
17
17
  buttons:
18
18
  - text: Docs
19
19
  href: /overview/introduction
@@ -5,7 +5,7 @@ header: false
5
5
  banner: false
6
6
 
7
7
  navigation:
8
- logo: Fulldev UI
8
+ company: Fulldev UI
9
9
  buttons:
10
10
  - heading: Get Started
11
11
  buttons:
@@ -1,5 +1,6 @@
1
1
  import viteYaml from '@rollup/plugin-yaml'
2
2
  import type { AstroIntegration } from 'astro'
3
+ import favicons from 'astro-favicons'
3
4
  import merge from 'deepmerge'
4
5
  import fs from 'fs/promises'
5
6
  import yaml from 'js-yaml'
@@ -14,6 +15,8 @@ type Color = {
14
15
  }
15
16
 
16
17
  interface Config {
18
+ favicon?: string
19
+ company?: string
17
20
  css?: string
18
21
  injectRoutes?: boolean
19
22
  overrideComponents?: boolean
@@ -52,6 +55,21 @@ export default function fulldevIntegration(
52
55
  injectRoute,
53
56
  }) => {
54
57
  // ----------------------
58
+ // Inject favicon integration
59
+ // ----------------------
60
+ config.favicon &&
61
+ config.company &&
62
+ updateConfig({
63
+ integrations: [
64
+ favicons({
65
+ path: 'favicon',
66
+ masterPicture: config.favicon,
67
+ appName: config.company,
68
+ appShortName: config.company,
69
+ }),
70
+ ],
71
+ })
72
+ // ----------------------
55
73
  // Inject css
56
74
  // ----------------------
57
75
  config?.css && injectScript('page-ssr', `import "${config?.css}";`)
package/.astro/assets.mjs DELETED
@@ -1 +0,0 @@
1
- export default new Map();
@@ -1,547 +0,0 @@
1
- declare module 'astro:content' {
2
- interface Render {
3
- '.mdx': Promise<{
4
- Content: import('astro').MarkdownInstance<{}>['Content'];
5
- headings: import('astro').MarkdownHeading[];
6
- remarkPluginFrontmatter: Record<string, any>;
7
- }>;
8
- }
9
- }
10
-
11
- declare module 'astro:content' {
12
- interface RenderResult {
13
- Content: import('astro/runtime/server/index.js').AstroComponentFactory;
14
- headings: import('astro').MarkdownHeading[];
15
- remarkPluginFrontmatter: Record<string, any>;
16
- }
17
- interface Render {
18
- '.md': Promise<RenderResult>;
19
- }
20
-
21
- export interface RenderedContent {
22
- html: string;
23
- metadata?: {
24
- imagePaths: Array<string>;
25
- [key: string]: unknown;
26
- };
27
- }
28
- }
29
-
30
- declare module 'astro:content' {
31
- type Flatten<T> = T extends { [K: string]: infer U } ? U : never;
32
-
33
- export type CollectionKey = keyof AnyEntryMap;
34
- export type CollectionEntry<C extends CollectionKey> = Flatten<AnyEntryMap[C]>;
35
-
36
- export type ContentCollectionKey = keyof ContentEntryMap;
37
- export type DataCollectionKey = keyof DataEntryMap;
38
-
39
- type AllValuesOf<T> = T extends any ? T[keyof T] : never;
40
- type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
41
- ContentEntryMap[C]
42
- >['slug'];
43
-
44
- /** @deprecated Use `getEntry` instead. */
45
- export function getEntryBySlug<
46
- C extends keyof ContentEntryMap,
47
- E extends ValidContentEntrySlug<C> | (string & {}),
48
- >(
49
- collection: C,
50
- // Note that this has to accept a regular string too, for SSR
51
- entrySlug: E,
52
- ): E extends ValidContentEntrySlug<C>
53
- ? Promise<CollectionEntry<C>>
54
- : Promise<CollectionEntry<C> | undefined>;
55
-
56
- /** @deprecated Use `getEntry` instead. */
57
- export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
58
- collection: C,
59
- entryId: E,
60
- ): Promise<CollectionEntry<C>>;
61
-
62
- export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
63
- collection: C,
64
- filter?: (entry: CollectionEntry<C>) => entry is E,
65
- ): Promise<E[]>;
66
- export function getCollection<C extends keyof AnyEntryMap>(
67
- collection: C,
68
- filter?: (entry: CollectionEntry<C>) => unknown,
69
- ): Promise<CollectionEntry<C>[]>;
70
-
71
- export function getEntry<
72
- C extends keyof ContentEntryMap,
73
- E extends ValidContentEntrySlug<C> | (string & {}),
74
- >(entry: {
75
- collection: C;
76
- slug: E;
77
- }): E extends ValidContentEntrySlug<C>
78
- ? Promise<CollectionEntry<C>>
79
- : Promise<CollectionEntry<C> | undefined>;
80
- export function getEntry<
81
- C extends keyof DataEntryMap,
82
- E extends keyof DataEntryMap[C] | (string & {}),
83
- >(entry: {
84
- collection: C;
85
- id: E;
86
- }): E extends keyof DataEntryMap[C]
87
- ? Promise<DataEntryMap[C][E]>
88
- : Promise<CollectionEntry<C> | undefined>;
89
- export function getEntry<
90
- C extends keyof ContentEntryMap,
91
- E extends ValidContentEntrySlug<C> | (string & {}),
92
- >(
93
- collection: C,
94
- slug: E,
95
- ): E extends ValidContentEntrySlug<C>
96
- ? Promise<CollectionEntry<C>>
97
- : Promise<CollectionEntry<C> | undefined>;
98
- export function getEntry<
99
- C extends keyof DataEntryMap,
100
- E extends keyof DataEntryMap[C] | (string & {}),
101
- >(
102
- collection: C,
103
- id: E,
104
- ): E extends keyof DataEntryMap[C]
105
- ? Promise<DataEntryMap[C][E]>
106
- : Promise<CollectionEntry<C> | undefined>;
107
-
108
- /** Resolve an array of entry references from the same collection */
109
- export function getEntries<C extends keyof ContentEntryMap>(
110
- entries: {
111
- collection: C;
112
- slug: ValidContentEntrySlug<C>;
113
- }[],
114
- ): Promise<CollectionEntry<C>[]>;
115
- export function getEntries<C extends keyof DataEntryMap>(
116
- entries: {
117
- collection: C;
118
- id: keyof DataEntryMap[C];
119
- }[],
120
- ): Promise<CollectionEntry<C>[]>;
121
-
122
- export function render<C extends keyof AnyEntryMap>(
123
- entry: AnyEntryMap[C][string],
124
- ): Promise<RenderResult>;
125
-
126
- export function reference<C extends keyof AnyEntryMap>(
127
- collection: C,
128
- ): import('astro/zod').ZodEffects<
129
- import('astro/zod').ZodString,
130
- C extends keyof ContentEntryMap
131
- ? {
132
- collection: C;
133
- slug: ValidContentEntrySlug<C>;
134
- }
135
- : {
136
- collection: C;
137
- id: keyof DataEntryMap[C];
138
- }
139
- >;
140
- // Allow generic `string` to avoid excessive type errors in the config
141
- // if `dev` is not running to update as you edit.
142
- // Invalid collection names will be caught at build time.
143
- export function reference<C extends string>(
144
- collection: C,
145
- ): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;
146
-
147
- type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;
148
- type InferEntrySchema<C extends keyof AnyEntryMap> = import('astro/zod').infer<
149
- ReturnTypeOrOriginal<Required<ContentConfig['collections'][C]>['schema']>
150
- >;
151
-
152
- type ContentEntryMap = {
153
- "pages": {
154
- "base/badge.mdx": {
155
- id: "base/badge.mdx";
156
- slug: "base/badge";
157
- body: string;
158
- collection: "pages";
159
- data: InferEntrySchema<"pages">
160
- } & { render(): Render[".mdx"] };
161
- "base/button.mdx": {
162
- id: "base/button.mdx";
163
- slug: "base/button";
164
- body: string;
165
- collection: "pages";
166
- data: InferEntrySchema<"pages">
167
- } & { render(): Render[".mdx"] };
168
- "base/card.mdx": {
169
- id: "base/card.mdx";
170
- slug: "base/card";
171
- body: string;
172
- collection: "pages";
173
- data: InferEntrySchema<"pages">
174
- } & { render(): Render[".mdx"] };
175
- "base/checkbox.mdx": {
176
- id: "base/checkbox.mdx";
177
- slug: "base/checkbox";
178
- body: string;
179
- collection: "pages";
180
- data: InferEntrySchema<"pages">
181
- } & { render(): Render[".mdx"] };
182
- "base/icon.mdx": {
183
- id: "base/icon.mdx";
184
- slug: "base/icon";
185
- body: string;
186
- collection: "pages";
187
- data: InferEntrySchema<"pages">
188
- } & { render(): Render[".mdx"] };
189
- "base/image.mdx": {
190
- id: "base/image.mdx";
191
- slug: "base/image";
192
- body: string;
193
- collection: "pages";
194
- data: InferEntrySchema<"pages">
195
- } & { render(): Render[".mdx"] };
196
- "base/input.mdx": {
197
- id: "base/input.mdx";
198
- slug: "base/input";
199
- body: string;
200
- collection: "pages";
201
- data: InferEntrySchema<"pages">
202
- } & { render(): Render[".mdx"] };
203
- "base/rating.mdx": {
204
- id: "base/rating.mdx";
205
- slug: "base/rating";
206
- body: string;
207
- collection: "pages";
208
- data: InferEntrySchema<"pages">
209
- } & { render(): Render[".mdx"] };
210
- "base/section.mdx": {
211
- id: "base/section.mdx";
212
- slug: "base/section";
213
- body: string;
214
- collection: "pages";
215
- data: InferEntrySchema<"pages">
216
- } & { render(): Render[".mdx"] };
217
- "base/select.mdx": {
218
- id: "base/select.mdx";
219
- slug: "base/select";
220
- body: string;
221
- collection: "pages";
222
- data: InferEntrySchema<"pages">
223
- } & { render(): Render[".mdx"] };
224
- "base/table.mdx": {
225
- id: "base/table.mdx";
226
- slug: "base/table";
227
- body: string;
228
- collection: "pages";
229
- data: InferEntrySchema<"pages">
230
- } & { render(): Render[".mdx"] };
231
- "base/textarea.mdx": {
232
- id: "base/textarea.mdx";
233
- slug: "base/textarea";
234
- body: string;
235
- collection: "pages";
236
- data: InferEntrySchema<"pages">
237
- } & { render(): Render[".mdx"] };
238
- "base/theme-select.mdx": {
239
- id: "base/theme-select.mdx";
240
- slug: "base/theme-select";
241
- body: string;
242
- collection: "pages";
243
- data: InferEntrySchema<"pages">
244
- } & { render(): Render[".mdx"] };
245
- "blocks/banner.mdx": {
246
- id: "blocks/banner.mdx";
247
- slug: "blocks/banner";
248
- body: string;
249
- collection: "pages";
250
- data: InferEntrySchema<"pages">
251
- } & { render(): Render[".mdx"] };
252
- "blocks/colleagues.mdx": {
253
- id: "blocks/colleagues.mdx";
254
- slug: "blocks/colleagues";
255
- body: string;
256
- collection: "pages";
257
- data: InferEntrySchema<"pages">
258
- } & { render(): Render[".mdx"] };
259
- "blocks/contact.mdx": {
260
- id: "blocks/contact.mdx";
261
- slug: "blocks/contact";
262
- body: string;
263
- collection: "pages";
264
- data: InferEntrySchema<"pages">
265
- } & { render(): Render[".mdx"] };
266
- "blocks/content.mdx": {
267
- id: "blocks/content.mdx";
268
- slug: "blocks/content";
269
- body: string;
270
- collection: "pages";
271
- data: InferEntrySchema<"pages">
272
- } & { render(): Render[".mdx"] };
273
- "blocks/cta.mdx": {
274
- id: "blocks/cta.mdx";
275
- slug: "blocks/cta";
276
- body: string;
277
- collection: "pages";
278
- data: InferEntrySchema<"pages">
279
- } & { render(): Render[".mdx"] };
280
- "blocks/features.mdx": {
281
- id: "blocks/features.mdx";
282
- slug: "blocks/features";
283
- body: string;
284
- collection: "pages";
285
- data: InferEntrySchema<"pages">
286
- } & { render(): Render[".mdx"] };
287
- "blocks/hero.mdx": {
288
- id: "blocks/hero.mdx";
289
- slug: "blocks/hero";
290
- body: string;
291
- collection: "pages";
292
- data: InferEntrySchema<"pages">
293
- } & { render(): Render[".mdx"] };
294
- "blocks/intro.mdx": {
295
- id: "blocks/intro.mdx";
296
- slug: "blocks/intro";
297
- body: string;
298
- collection: "pages";
299
- data: InferEntrySchema<"pages">
300
- } & { render(): Render[".mdx"] };
301
- "blocks/posts.mdx": {
302
- id: "blocks/posts.mdx";
303
- slug: "blocks/posts";
304
- body: string;
305
- collection: "pages";
306
- data: InferEntrySchema<"pages">
307
- } & { render(): Render[".mdx"] };
308
- "blocks/reviews.mdx": {
309
- id: "blocks/reviews.mdx";
310
- slug: "blocks/reviews";
311
- body: string;
312
- collection: "pages";
313
- data: InferEntrySchema<"pages">
314
- } & { render(): Render[".mdx"] };
315
- "index.mdx": {
316
- id: "index.mdx";
317
- slug: "index";
318
- body: string;
319
- collection: "pages";
320
- data: InferEntrySchema<"pages">
321
- } & { render(): Render[".mdx"] };
322
- "layouts/docslayout.mdx": {
323
- id: "layouts/docslayout.mdx";
324
- slug: "layouts/docslayout";
325
- body: string;
326
- collection: "pages";
327
- data: InferEntrySchema<"pages">
328
- } & { render(): Render[".mdx"] };
329
- "layouts/layout.mdx": {
330
- id: "layouts/layout.mdx";
331
- slug: "layouts/layout";
332
- body: string;
333
- collection: "pages";
334
- data: InferEntrySchema<"pages">
335
- } & { render(): Render[".mdx"] };
336
- "layouts/pagelayout.mdx": {
337
- id: "layouts/pagelayout.mdx";
338
- slug: "layouts/pagelayout";
339
- body: string;
340
- collection: "pages";
341
- data: InferEntrySchema<"pages">
342
- } & { render(): Render[".mdx"] };
343
- "overview/components.mdx": {
344
- id: "overview/components.mdx";
345
- slug: "overview/components";
346
- body: string;
347
- collection: "pages";
348
- data: InferEntrySchema<"pages">
349
- } & { render(): Render[".mdx"] };
350
- "overview/content-layer.mdx": {
351
- id: "overview/content-layer.mdx";
352
- slug: "overview/content-layer";
353
- body: string;
354
- collection: "pages";
355
- data: InferEntrySchema<"pages">
356
- } & { render(): Render[".mdx"] };
357
- "overview/customization.mdx": {
358
- id: "overview/customization.mdx";
359
- slug: "overview/customization";
360
- body: string;
361
- collection: "pages";
362
- data: InferEntrySchema<"pages">
363
- } & { render(): Render[".mdx"] };
364
- "overview/frameworks.mdx": {
365
- id: "overview/frameworks.mdx";
366
- slug: "overview/frameworks";
367
- body: string;
368
- collection: "pages";
369
- data: InferEntrySchema<"pages">
370
- } & { render(): Render[".mdx"] };
371
- "overview/installation.mdx": {
372
- id: "overview/installation.mdx";
373
- slug: "overview/installation";
374
- body: string;
375
- collection: "pages";
376
- data: InferEntrySchema<"pages">
377
- } & { render(): Render[".mdx"] };
378
- "overview/introduction.mdx": {
379
- id: "overview/introduction.mdx";
380
- slug: "overview/introduction";
381
- body: string;
382
- collection: "pages";
383
- data: InferEntrySchema<"pages">
384
- } & { render(): Render[".mdx"] };
385
- "schemas/page.mdx": {
386
- id: "schemas/page.mdx";
387
- slug: "schemas/page";
388
- body: string;
389
- collection: "pages";
390
- data: InferEntrySchema<"pages">
391
- } & { render(): Render[".mdx"] };
392
- "schemas/preset.mdx": {
393
- id: "schemas/preset.mdx";
394
- slug: "schemas/preset";
395
- body: string;
396
- collection: "pages";
397
- data: InferEntrySchema<"pages">
398
- } & { render(): Render[".mdx"] };
399
- "showcase.mdx": {
400
- id: "showcase.mdx";
401
- slug: "showcase";
402
- body: string;
403
- collection: "pages";
404
- data: InferEntrySchema<"pages">
405
- } & { render(): Render[".mdx"] };
406
- "showcase/anti-slip-profiles.md": {
407
- id: "showcase/anti-slip-profiles.md";
408
- slug: "showcase/anti-slip-profiles";
409
- body: string;
410
- collection: "pages";
411
- data: InferEntrySchema<"pages">
412
- } & { render(): Render[".md"] };
413
- "showcase/fulldev-ui.md": {
414
- id: "showcase/fulldev-ui.md";
415
- slug: "showcase/fulldev-ui";
416
- body: string;
417
- collection: "pages";
418
- data: InferEntrySchema<"pages">
419
- } & { render(): Render[".md"] };
420
- "showcase/lavis-detailing.md": {
421
- id: "showcase/lavis-detailing.md";
422
- slug: "showcase/lavis-detailing";
423
- body: string;
424
- collection: "pages";
425
- data: InferEntrySchema<"pages">
426
- } & { render(): Render[".md"] };
427
- "showcase/leren-trainingsacteren.md": {
428
- id: "showcase/leren-trainingsacteren.md";
429
- slug: "showcase/leren-trainingsacteren";
430
- body: string;
431
- collection: "pages";
432
- data: InferEntrySchema<"pages">
433
- } & { render(): Render[".md"] };
434
- "showcase/miele-witgoedcenter-amsterdam.md": {
435
- id: "showcase/miele-witgoedcenter-amsterdam.md";
436
- slug: "showcase/miele-witgoedcenter-amsterdam";
437
- body: string;
438
- collection: "pages";
439
- data: InferEntrySchema<"pages">
440
- } & { render(): Render[".md"] };
441
- "showcase/record.md": {
442
- id: "showcase/record.md";
443
- slug: "showcase/record";
444
- body: string;
445
- collection: "pages";
446
- data: InferEntrySchema<"pages">
447
- } & { render(): Render[".md"] };
448
- "showcase/sloepverhuur-bolsward.md": {
449
- id: "showcase/sloepverhuur-bolsward.md";
450
- slug: "showcase/sloepverhuur-bolsward";
451
- body: string;
452
- collection: "pages";
453
- data: InferEntrySchema<"pages">
454
- } & { render(): Render[".md"] };
455
- "showcase/stark-vulcanising-products.md": {
456
- id: "showcase/stark-vulcanising-products.md";
457
- slug: "showcase/stark-vulcanising-products";
458
- body: string;
459
- collection: "pages";
460
- data: InferEntrySchema<"pages">
461
- } & { render(): Render[".md"] };
462
- "showcase/the-gym-haren.md": {
463
- id: "showcase/the-gym-haren.md";
464
- slug: "showcase/the-gym-haren";
465
- body: string;
466
- collection: "pages";
467
- data: InferEntrySchema<"pages">
468
- } & { render(): Render[".md"] };
469
- "showcase/van-dillen-antieke-bouwmaterialen.md": {
470
- id: "showcase/van-dillen-antieke-bouwmaterialen.md";
471
- slug: "showcase/van-dillen-antieke-bouwmaterialen";
472
- body: string;
473
- collection: "pages";
474
- data: InferEntrySchema<"pages">
475
- } & { render(): Render[".md"] };
476
- "typography/heading.mdx": {
477
- id: "typography/heading.mdx";
478
- slug: "typography/heading";
479
- body: string;
480
- collection: "pages";
481
- data: InferEntrySchema<"pages">
482
- } & { render(): Render[".mdx"] };
483
- "typography/label.mdx": {
484
- id: "typography/label.mdx";
485
- slug: "typography/label";
486
- body: string;
487
- collection: "pages";
488
- data: InferEntrySchema<"pages">
489
- } & { render(): Render[".mdx"] };
490
- "typography/link.mdx": {
491
- id: "typography/link.mdx";
492
- slug: "typography/link";
493
- body: string;
494
- collection: "pages";
495
- data: InferEntrySchema<"pages">
496
- } & { render(): Render[".mdx"] };
497
- "typography/list.mdx": {
498
- id: "typography/list.mdx";
499
- slug: "typography/list";
500
- body: string;
501
- collection: "pages";
502
- data: InferEntrySchema<"pages">
503
- } & { render(): Render[".mdx"] };
504
- "typography/text.mdx": {
505
- id: "typography/text.mdx";
506
- slug: "typography/text";
507
- body: string;
508
- collection: "pages";
509
- data: InferEntrySchema<"pages">
510
- } & { render(): Render[".mdx"] };
511
- };
512
-
513
- };
514
-
515
- type DataEntryMap = {
516
- "images": Record<string, {
517
- id: string;
518
- collection: "images";
519
- data: InferEntrySchema<"images">;
520
- rendered?: RenderedContent;
521
- filePath?: string;
522
- body?: string
523
- }>;
524
- "presets": {
525
- "base": {
526
- id: "base";
527
- collection: "presets";
528
- data: InferEntrySchema<"presets">
529
- };
530
- "blocks": {
531
- id: "blocks";
532
- collection: "presets";
533
- data: InferEntrySchema<"presets">
534
- };
535
- "docs": {
536
- id: "docs";
537
- collection: "presets";
538
- data: InferEntrySchema<"presets">
539
- };
540
- };
541
-
542
- };
543
-
544
- type AnyEntryMap = ContentEntryMap & DataEntryMap;
545
-
546
- export type ContentConfig = typeof import("../../src/content/config.js");
547
- }