fulldev-ui 0.2.13 → 0.2.14

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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "_variables": {
3
+ "lastUpdateCheck": 1718391483085
4
+ }
5
+ }
package/.astro/types.d.ts CHANGED
@@ -125,16 +125,7 @@ declare module 'astro:content' {
125
125
  >;
126
126
 
127
127
  type ContentEntryMap = {
128
- "layouts": {
129
- "index.md": {
130
- id: "index.md";
131
- slug: "index";
132
- body: string;
133
- collection: "layouts";
134
- data: any
135
- } & { render(): Render[".md"] };
136
- };
137
- "pages": {
128
+ "pages": {
138
129
  "index.md": {
139
130
  id: "index.md";
140
131
  slug: "index";
package/.env ADDED
@@ -0,0 +1 @@
1
+ TEST='HOI
package/astro.config.mjs CHANGED
@@ -1,7 +1,6 @@
1
- import icon from 'astro-icon'
2
1
  import { defineConfig } from 'astro/config'
3
2
 
4
3
  // https://astro.build/config
5
4
  export default defineConfig({
6
- integrations: [icon()],
5
+ integrations: [],
7
6
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "A component library built for Astro",
5
5
  "homepage": "https://ui.full.dev",
6
6
  "bugs": "https://github.com/fulldotdev/ui/issues",
@@ -16,6 +16,7 @@
16
16
  "astro-ui"
17
17
  ],
18
18
  "scripts": {
19
+ "dev": "astro dev",
19
20
  "test": "astro check",
20
21
  "check": "astro check"
21
22
  },
@@ -33,15 +34,11 @@
33
34
  },
34
35
  "dependencies": {
35
36
  "@iconify-json/tabler": "^1.1.109",
36
- "astro-icon": "^1.1.0",
37
37
  "astro-seo": "^0.8.3",
38
- "autoprefixer": "^10.4.19",
39
- "cheerio": "1.0.0-rc.12",
40
38
  "flat": "^6.0.1",
41
39
  "radash": "^12.1.0",
42
40
  "remeda": "1.61.0",
43
41
  "sass": "^1.77.0",
44
- "tailwindcss": "^3.4.4",
45
42
  "typescript": "^5.4.3",
46
43
  "vite-plugin-virtual": "^0.3.0"
47
44
  }
@@ -85,11 +85,13 @@ const {
85
85
  left: 0;
86
86
  order: 1;
87
87
  z-index: -1;
88
+ margin: 0 !important;
88
89
 
89
90
  /* TODO manier fixen zodat dit met custom classes kan */
90
91
  border-radius: 0;
91
92
  width: 100%;
92
93
  height: 100%;
94
+ max-height: 100%;
93
95
  object-fit: cover;
94
96
 
95
97
  ~ .full {
@@ -20,7 +20,6 @@ const { ...rest } = Astro.props
20
20
 
21
21
  @include component('group') {
22
22
  display: flex;
23
- flex-wrap: wrap;
24
23
  justify-content: stretch;
25
24
  align-items: center;
26
25
  gap: var(--space-2);
@@ -34,6 +34,7 @@ const {
34
34
  @include component('heading') {
35
35
  margin: 0;
36
36
  max-width: calc(var(--element-3) * 36);
37
+ scroll-margin: var(--space-4);
37
38
  color: var(--foreground);
38
39
  font-weight: var(--heading-font-weight);
39
40
  line-height: 1.1;
@@ -8,7 +8,10 @@ type Props<As extends HTMLTag = 'ul'> = Polymorphic<{ as: As }> &
8
8
  html?: string
9
9
  text?: string
10
10
  variant?: 'base' | 'muted' | 'accent'
11
- items?: (ComponentProps<typeof ListItem> | string)[]
11
+ items?: (
12
+ | ComponentProps<typeof ListItem>
13
+ | ComponentProps<typeof ListItem>['html']
14
+ )[]
12
15
  }
13
16
 
14
17
  const { as = 'ul', items, ...rest } = Astro.props
@@ -42,57 +42,10 @@
42
42
  --outline-border: hsl(223, 16%, 26%);
43
43
  --muted-foreground: hsl(223, 16%, 86%);
44
44
  --raised-background: hsl(223, 36%, 7%);
45
-
46
- color-scheme: dark;
47
- }
48
- /* More neutral color theme. Used in < 0.2 */
49
- /* :root,
50
- .theme-light {
51
- --base-background: hsl(0, 0%, 100%);
52
- --base-hover: hsl(223, 16%, 97%);
53
- --base-border: hsl(223, 10%, 87%);
54
- --base-focus: hsl(223, 22%, 9%);
55
- --base-foreground: hsl(223, 22%, 5%);
56
-
57
- --secondary-background: hsl(223, 10%, 94%);
58
- --secondary-hover: hsl(223, 10%, 92%);
59
- --secondary-foreground: var(--base-foreground);
60
-
61
- --primary-background: hsl(223, 22%, 9%);
62
- --primary-hover: hsl(223, 22%, 15%);
63
- --primary-foreground: var(--base-background);
64
-
65
- --outline-border: hsl(223, 10%, 85%);
66
- --muted-foreground: hsl(223, 10%, 16%);
67
- --raised-background: var(--base-hover);
68
- --accent-foreground: var(--primary-background);
69
-
70
- color-scheme: light;
71
- } */
72
- /* .theme-dark,
73
- .dark,
74
- [data-theme='dark'] {
75
- --base-background: hsl(223, 22%, 5%);
76
- --base-hover: hsl(223, 16%, 7%);
77
- --base-border: hsl(223, 10%, 20%);
78
- --base-focus: hsl(223, 10%, 100%);
79
- --base-foreground: hsl(223, 10%, 100%);
80
-
81
- --secondary-background: hsl(223, 10%, 13%);
82
- --secondary-hover: hsl(223, 10%, 11%);
83
- --secondary-foreground: var(--base-foreground);
84
-
85
- --primary-background: hsl(223, 10%, 100%);
86
- --primary-hover: hsl(223, 10%, 90%);
87
- --primary-foreground: var(--base-background);
88
-
89
- --outline-border: hsl(223, 10%, 26%);
90
- --muted-foreground: hsl(223, 10%, 90%);
91
- --raised-background: var(--base-hover);
92
45
  --accent-foreground: var(--primary-background);
93
46
 
94
47
  color-scheme: dark;
95
- } */
48
+ }
96
49
 
97
50
  /* --------------------------- */
98
51
  /* Generate colors */
package/src/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  // Utils
2
+ export * from './schemas/collection'
3
+ export * from './schemas/path'
2
4
  export * from './utils/getAllCollections'
3
5
  export * from './utils/getPathname'
4
6
  export * from './utils/transform/transform'
@@ -7,14 +9,9 @@ export * from './utils/transform/transformReferences'
7
9
  export * from './utils/transform/transformSelfs'
8
10
  export * from './utils/transform/transformUnderscores'
9
11
 
10
- // Schemas
11
- export * from './schemas/attributesSchema'
12
- export * from './schemas/pageSchema'
13
-
14
12
  // Base components
15
13
  export { default as Badge } from './components/base/Badge.astro'
16
14
  export { default as Button } from './components/base/Button.astro'
17
- export { default as Buttons } from './components/base/Buttons.astro'
18
15
  export { default as Checkbox } from './components/base/Checkbox.astro'
19
16
  export { default as Icon } from './components/base/Icon.astro'
20
17
  export { default as Image } from './components/base/Image.astro'
@@ -1,27 +0,0 @@
1
- ---
2
- import { listify } from 'radash'
3
- import { isNumber, isString, pickBy } from 'remeda'
4
-
5
- interface Props {
6
- component: any
7
- [defaults: string]: any
8
- [items: number]: object | string
9
- }
10
-
11
- const { component: Component, ...rest } = Astro.props
12
-
13
- const defaults = pickBy(rest, (v, key) => !isNumber(parseInt(key as string)))
14
-
15
- const items = pickBy(rest, (v, key) => isNumber(parseInt(key as string)))
16
- const array = listify(items, (k, value) => value)
17
- const mapped = array.map((item) => (isString(item) ? { html: item } : item))
18
- ---
19
-
20
- {
21
- mapped.map((item) => (
22
- <Component
23
- {...defaults}
24
- {...item}
25
- />
26
- ))
27
- }
@@ -1,15 +0,0 @@
1
- ---
2
- import type { ComponentProps } from 'astro/types'
3
- import type { Pluralmorphic } from '../../types/Pluralmorphic'
4
- import Plural from '../_Plural.astro'
5
- import Button from './Button.astro'
6
-
7
- type Props = Pluralmorphic<ComponentProps<typeof Button>>
8
-
9
- const { props } = Astro
10
- ---
11
-
12
- <Plural
13
- component={Button}
14
- {...props}
15
- />
@@ -1,15 +0,0 @@
1
- ---
2
- import type { ComponentProps } from 'astro/types'
3
- import type { Pluralmorphic } from '../../types/Pluralmorphic'
4
- import Plural from '../_Plural.astro'
5
- import Image from './Image.astro'
6
-
7
- type Props = Pluralmorphic<ComponentProps<typeof Image>>
8
-
9
- const { props } = Astro
10
- ---
11
-
12
- <Plural
13
- component={Image}
14
- {...props}
15
- />
@@ -1,125 +0,0 @@
1
- import { z } from 'astro:content'
2
-
3
- export const attributesSchema = z.object({
4
- abbr: z.any(),
5
- accept: z.any(),
6
- acceptCharset: z.any(),
7
- accessKey: z.any(),
8
- allowFullScreen: z.any(),
9
- allowTransparency: z.any(),
10
- alt: z.any(),
11
- async: z.any(),
12
- autoComplete: z.any(),
13
- autoFocus: z.any(),
14
- autoPlay: z.any(),
15
- cellPadding: z.any(),
16
- cellSpacing: z.any(),
17
- challenge: z.any(),
18
- charset: z.any(),
19
- checked: z.any(),
20
- cite: z.any(),
21
- class: z.any(),
22
- className: z.any(),
23
- cols: z.any(),
24
- colSpan: z.any(),
25
- command: z.any(),
26
- content: z.any(),
27
- contentEditable: z.any(),
28
- contextMenu: z.any(),
29
- controls: z.any(),
30
- coords: z.any(),
31
- crossOrigin: z.any(),
32
- data: z.any(),
33
- dateTime: z.any(),
34
- default: z.any(),
35
- defer: z.any(),
36
- dir: z.any(),
37
- disabled: z.any(),
38
- download: z.any(),
39
- draggable: z.any(),
40
- dropzone: z.any(),
41
- encType: z.any(),
42
- for: z.any(),
43
- form: z.any(),
44
- action: z.any(),
45
- formEncType: z.any(),
46
- method: z.any(),
47
- formNoValidate: z.any(),
48
- target: z.any(),
49
- frameBorder: z.any(),
50
- headers: z.any(),
51
- height: z.any(),
52
- hidden: z.any(),
53
- high: z.any(),
54
- href: z.any(),
55
- hrefLang: z.any(),
56
- htmlFor: z.any(),
57
- httpEquiv: z.any(),
58
- id: z.any(),
59
- inputMode: z.any(),
60
- isMap: z.any(),
61
- itemId: z.any(),
62
- itemProp: z.any(),
63
- itemRef: z.any(),
64
- itemScope: z.any(),
65
- itemType: z.any(),
66
- kind: z.any(),
67
- label: z.any(),
68
- lang: z.any(),
69
- list: z.any(),
70
- loop: z.any(),
71
- manifest: z.any(),
72
- max: z.any(),
73
- maxLength: z.any(),
74
- media: z.any(),
75
- mediaGroup: z.any(),
76
- min: z.any(),
77
- minLength: z.any(),
78
- multiple: z.any(),
79
- muted: z.any(),
80
- name: z.any(),
81
- noValidate: z.any(),
82
- open: z.any(),
83
- optimum: z.any(),
84
- pattern: z.any(),
85
- ping: z.any(),
86
- placeholder: z.any(),
87
- poster: z.any(),
88
- preload: z.any(),
89
- rel: z.any(),
90
- required: z.any(),
91
- rows: z.any(),
92
- sizes: z.any(),
93
-
94
- // role: z.any(),
95
- // radioGroup: z.any(),
96
- // readOnly: z.any(),
97
- // rowSpan: z.any(),
98
- // sandbox: z.any(),
99
- // scope: z.any(),
100
- // scoped: z.any(),
101
- // scrolling: z.any(),
102
- // seamless: z.any(),
103
- // selected: z.any(),
104
- // shape: z.any(),
105
- // size: z.any(),
106
- // sortable: z.any(),
107
- // span: z.any(),
108
- // spellCheck: z.any(),
109
- src: z.any(),
110
- // srcDoc: z.any(),
111
- srcset: z.any(),
112
- // start: z.any(),
113
- // step: z.any(),
114
- style: z.any(),
115
- tabIndex: z.any(),
116
- title: z.any(),
117
- // translate: z.any(),
118
- type: z.any(),
119
- // typeMustMatch: z.any(),
120
- // useMap: z.any(),
121
- value: z.any(),
122
- width: z.any(),
123
- // wmode: z.any(),
124
- // wrap: z.any(),
125
- })
@@ -1,126 +0,0 @@
1
- const arr = [
2
- 'abbr',
3
- 'accept',
4
- 'acceptCharset',
5
- 'accessKey',
6
- 'action',
7
- 'allowFullScreen',
8
- 'allowTransparency',
9
- 'alt',
10
- 'async',
11
- 'autoComplete',
12
- 'autoFocus',
13
- 'autoPlay',
14
- 'cellPadding',
15
- 'cellSpacing',
16
- 'challenge',
17
- 'charset',
18
- 'checked',
19
- 'cite',
20
- 'class',
21
- 'className',
22
- 'cols',
23
- 'colSpan',
24
- 'command',
25
- 'content',
26
- 'contentEditable',
27
- 'contextMenu',
28
- 'controls',
29
- 'coords',
30
- 'crossOrigin',
31
- 'data',
32
- 'dateTime',
33
- 'default',
34
- 'defer',
35
- 'dir',
36
- 'disabled',
37
- 'download',
38
- 'draggable',
39
- 'dropzone',
40
- 'encType',
41
- 'for',
42
- 'form',
43
- 'formAction',
44
- 'formEncType',
45
- 'formMethod',
46
- 'formNoValidate',
47
- 'formTarget',
48
- 'frameBorder',
49
- 'headers',
50
- 'height',
51
- 'hidden',
52
- 'high',
53
- 'href',
54
- 'hrefLang',
55
- 'htmlFor',
56
- 'httpEquiv',
57
- 'icon',
58
- 'id',
59
- 'inputMode',
60
- 'isMap',
61
- 'itemId',
62
- 'itemProp',
63
- 'itemRef',
64
- 'itemScope',
65
- 'itemType',
66
- 'kind',
67
- 'label',
68
- 'lang',
69
- 'list',
70
- 'loop',
71
- 'manifest',
72
- 'max',
73
- 'maxLength',
74
- 'media',
75
- 'mediaGroup',
76
- 'method',
77
- 'min',
78
- 'minLength',
79
- 'multiple',
80
- 'muted',
81
- 'name',
82
- 'noValidate',
83
- 'open',
84
- 'optimum',
85
- 'pattern',
86
- 'ping',
87
- 'placeholder',
88
- 'poster',
89
- 'preload',
90
- 'radioGroup',
91
- 'readOnly',
92
- 'rel',
93
- 'required',
94
- 'role',
95
- 'rows',
96
- 'rowSpan',
97
- 'sandbox',
98
- 'scope',
99
- 'scoped',
100
- 'scrolling',
101
- 'seamless',
102
- 'selected',
103
- 'shape',
104
- 'size',
105
- 'sizes',
106
- 'sortable',
107
- 'span',
108
- 'spellCheck',
109
- 'src',
110
- 'srcDoc',
111
- 'srcSet',
112
- 'start',
113
- 'step',
114
- 'style',
115
- 'tabIndex',
116
- 'target',
117
- 'title',
118
- 'translate',
119
- 'type',
120
- 'typeMustMatch',
121
- 'useMap',
122
- 'value',
123
- 'width',
124
- 'wmode',
125
- 'wrap',
126
- ]
@@ -1,7 +0,0 @@
1
- import type { AstroGlobal } from 'astro'
2
-
3
- export type Pluralmorphic<P extends AstroGlobal['props']> =
4
- | (P & {
5
- [key: number]: P | string
6
- })
7
- | (P | string)[]
@@ -1,18 +0,0 @@
1
- import type { ComponentProps } from 'astro/types'
2
- import type Carousel from '../components/structure/Carousel.astro'
3
- import type Stack from '../components/structure/Column.astro'
4
-
5
- export type Structuremorphic<
6
- S extends
7
- | 'bento'
8
- | 'carousel'
9
- | 'grid'
10
- | 'masonry'
11
- | 'split'
12
- | 'spread'
13
- | 'stack',
14
- > = S extends 'stack'
15
- ? ComponentProps<typeof Stack>
16
- : S extends 'carousel'
17
- ? ComponentProps<typeof Carousel>
18
- : undefined