fulldev-ui 0.17.3 → 0.18.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/CHANGELOG.md +16 -0
- package/README.md +6 -21
- package/package.json +9 -12
- package/public/r/banner.json +2 -2
- package/public/r/base.json +143 -0
- package/public/r/command.json +1 -1
- package/public/r/field.json +1 -1
- package/public/r/header.json +2 -2
- package/public/r/init.json +25 -8
- package/public/r/layout.json +1 -1
- package/public/r/navigation-menu.json +1 -1
- package/public/r/registry.json +165 -6
- package/public/r/section.json +2 -2
- package/public/r/styles/base-luma/banner.json +2 -2
- package/public/r/styles/base-luma/base.json +143 -0
- package/public/r/styles/base-luma/command.json +1 -1
- package/public/r/styles/base-luma/field.json +1 -1
- package/public/r/styles/base-luma/header.json +2 -2
- package/public/r/styles/base-luma/init.json +25 -8
- package/public/r/styles/base-luma/layout.json +1 -1
- package/public/r/styles/base-luma/navigation-menu.json +1 -1
- package/public/r/styles/base-luma/registry.json +165 -6
- package/public/r/styles/base-luma/section.json +2 -2
- package/public/r/styles/base-lyra/banner.json +2 -2
- package/public/r/styles/base-lyra/base.json +143 -0
- package/public/r/styles/base-lyra/command.json +1 -1
- package/public/r/styles/base-lyra/field.json +1 -1
- package/public/r/styles/base-lyra/header.json +2 -2
- package/public/r/styles/base-lyra/init.json +25 -8
- package/public/r/styles/base-lyra/layout.json +1 -1
- package/public/r/styles/base-lyra/navigation-menu.json +1 -1
- package/public/r/styles/base-lyra/registry.json +165 -6
- package/public/r/styles/base-lyra/section.json +2 -2
- package/public/r/styles/base-maia/banner.json +2 -2
- package/public/r/styles/base-maia/base.json +143 -0
- package/public/r/styles/base-maia/command.json +1 -1
- package/public/r/styles/base-maia/field.json +1 -1
- package/public/r/styles/base-maia/header.json +2 -2
- package/public/r/styles/base-maia/init.json +25 -8
- package/public/r/styles/base-maia/layout.json +1 -1
- package/public/r/styles/base-maia/navigation-menu.json +1 -1
- package/public/r/styles/base-maia/registry.json +165 -6
- package/public/r/styles/base-maia/section.json +2 -2
- package/public/r/styles/base-mira/banner.json +2 -2
- package/public/r/styles/base-mira/base.json +143 -0
- package/public/r/styles/base-mira/command.json +1 -1
- package/public/r/styles/base-mira/field.json +1 -1
- package/public/r/styles/base-mira/header.json +2 -2
- package/public/r/styles/base-mira/init.json +25 -8
- package/public/r/styles/base-mira/layout.json +1 -1
- package/public/r/styles/base-mira/navigation-menu.json +1 -1
- package/public/r/styles/base-mira/registry.json +165 -6
- package/public/r/styles/base-mira/section.json +2 -2
- package/public/r/styles/base-nova/banner.json +2 -2
- package/public/r/styles/base-nova/base.json +143 -0
- package/public/r/styles/base-nova/command.json +1 -1
- package/public/r/styles/base-nova/field.json +1 -1
- package/public/r/styles/base-nova/header.json +2 -2
- package/public/r/styles/base-nova/init.json +25 -8
- package/public/r/styles/base-nova/layout.json +1 -1
- package/public/r/styles/base-nova/navigation-menu.json +1 -1
- package/public/r/styles/base-nova/registry.json +165 -6
- package/public/r/styles/base-nova/section.json +2 -2
- package/public/r/styles/base-rhea/banner.json +2 -2
- package/public/r/styles/base-rhea/base.json +143 -0
- package/public/r/styles/base-rhea/command.json +1 -1
- package/public/r/styles/base-rhea/field.json +1 -1
- package/public/r/styles/base-rhea/header.json +2 -2
- package/public/r/styles/base-rhea/init.json +25 -8
- package/public/r/styles/base-rhea/layout.json +1 -1
- package/public/r/styles/base-rhea/navigation-menu.json +1 -1
- package/public/r/styles/base-rhea/registry.json +165 -6
- package/public/r/styles/base-rhea/section.json +2 -2
- package/public/r/styles/base-sera/banner.json +2 -2
- package/public/r/styles/base-sera/base.json +143 -0
- package/public/r/styles/base-sera/command.json +1 -1
- package/public/r/styles/base-sera/field.json +1 -1
- package/public/r/styles/base-sera/header.json +2 -2
- package/public/r/styles/base-sera/init.json +25 -8
- package/public/r/styles/base-sera/layout.json +1 -1
- package/public/r/styles/base-sera/navigation-menu.json +1 -1
- package/public/r/styles/base-sera/registry.json +165 -6
- package/public/r/styles/base-sera/section.json +2 -2
- package/public/r/styles/base-vega/banner.json +2 -2
- package/public/r/styles/base-vega/base.json +143 -0
- package/public/r/styles/base-vega/command.json +1 -1
- package/public/r/styles/base-vega/field.json +1 -1
- package/public/r/styles/base-vega/header.json +2 -2
- package/public/r/styles/base-vega/init.json +25 -8
- package/public/r/styles/base-vega/layout.json +1 -1
- package/public/r/styles/base-vega/navigation-menu.json +1 -1
- package/public/r/styles/base-vega/registry.json +165 -6
- package/public/r/styles/base-vega/section.json +2 -2
- package/registry.json +165 -6
- package/src/components/ui/banner/banner-container.astro +1 -1
- package/src/components/ui/banner/banner.astro +1 -1
- package/src/components/ui/command/command-item.astro +1 -1
- package/src/components/ui/field/field-label.astro +1 -1
- package/src/components/ui/header/header-container.astro +4 -1
- package/src/components/ui/header/header.astro +1 -1
- package/src/components/ui/layout/layout.astro +0 -1
- package/src/components/ui/navigation-menu/navigation-menu-positioner.astro +1 -1
- package/src/components/ui/section/section-container.astro +1 -1
- package/src/components/ui/section/section.astro +1 -1
- package/src/styles/global.css +6 -3
- package/registry/init/global.css +0 -188
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Fulldev UI
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#247](https://github.com/fulldotdev/ui/pull/247) [`12b0b29`](https://github.com/fulldotdev/ui/commit/12b0b29d85cc673ac76d3d479cfbfcf4052ab3b7) Thanks [@silveltman](https://github.com/silveltman)! - Set up a new project with `npx shadcn@latest init https://ui.full.dev/r/styles/base-<style>/base.json`. The new `@fulldev/base` item is a shadcn `registry:base`, like a shadcn/ui design system base: it writes `components.json` with the `@fulldev` registry and the style, and adds the theme tokens to the stylesheet that `components.json` names. It does not install shadcn/ui's React dependencies, and the radius scale matches shadcn/ui's, including `--radius-2xl` to `--radius-4xl`.
|
|
8
|
+
|
|
9
|
+
`@fulldev/init` no longer ships `src/styles/global.css` or theme tokens. It adds the class helper, dependencies, and base styles to the stylesheet that `components.json` names, so running `npx shadcn@latest add @fulldev/init` in an existing project leaves your colors alone.
|
|
10
|
+
|
|
11
|
+
- [#248](https://github.com/fulldotdev/ui/pull/248) [`2fbc7f1`](https://github.com/fulldotdev/ui/commit/2fbc7f19764c2764977807c3347b63ba80cd832a) Thanks [@silveltman](https://github.com/silveltman)! - Section, header, and banner read `--container`, `--gutter`, and `--section-padding`, so a site sets its content width, horizontal padding, and section spacing once in its stylesheet. Defaults are unchanged: `max-w-7xl`, `px-4`, and the style's padding. The containers now follow `--container` like the floating variants already did.
|
|
12
|
+
|
|
13
|
+
## 0.17.4
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#252](https://github.com/fulldotdev/ui/pull/252) [`cd76b28`](https://github.com/fulldotdev/ui/commit/cd76b28df0b327b720cc05effddb2c06dfef9b7c) Thanks [@silveltman](https://github.com/silveltman)! - Field choice cards now show their selected state for checked native checkboxes, command items that are links get the pointer cursor without underline (the `href:` variant did not exist), and the navigation menu popup drops a class for a nonexistent `xs` breakpoint.
|
|
18
|
+
|
|
3
19
|
## 0.17.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -39,31 +39,15 @@ cd my-project
|
|
|
39
39
|
}
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
3. **Initialize
|
|
42
|
+
3. **Initialize Fulldev UI** with the shadcn CLI. This writes `components.json` with the `@fulldev` registry, adds the theme tokens to your stylesheet, and installs the class helper:
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
npx shadcn@latest init
|
|
45
|
+
npx shadcn@latest init https://ui.full.dev/r/styles/base-vega/base.json
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
Replace `base-vega` with another shadcn/ui style, such as `base-nova`. To use a shadcn/ui preset, see [Presets][presets].
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
"registries": {
|
|
53
|
-
"@fulldev": "https://ui.full.dev/r/styles/{style}/{name}.json"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
5. **Install the base stylesheet and shared helpers**, then import the stylesheet in your layout:
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
npx shadcn@latest add @fulldev/init
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Review stylesheet changes in an existing project to preserve your theme.
|
|
65
|
-
|
|
66
|
-
6. **Use a container-aware app shell** because Fulldev UI uses Tailwind v4 container-query variants like `@2xl:` and `@max-5xl:`:
|
|
50
|
+
4. **Use a container-aware app shell** because Fulldev UI uses Tailwind v4 container-query variants like `@2xl:` and `@max-5xl:`:
|
|
67
51
|
|
|
68
52
|
```astro
|
|
69
53
|
---
|
|
@@ -75,7 +59,7 @@ import "@/styles/global.css"
|
|
|
75
59
|
</body>
|
|
76
60
|
```
|
|
77
61
|
|
|
78
|
-
|
|
62
|
+
5. **Add components**:
|
|
79
63
|
|
|
80
64
|
```bash
|
|
81
65
|
npx shadcn@latest add @fulldev/button
|
|
@@ -119,6 +103,7 @@ MIT License — Copyright (c) 2024–present [Fulldev][fulldev]
|
|
|
119
103
|
|
|
120
104
|
[astro]: https://astro.build/
|
|
121
105
|
[docs]: https://ui.full.dev/
|
|
106
|
+
[presets]: https://ui.full.dev/docs/presets/
|
|
122
107
|
[fulldev]: https://full.dev/
|
|
123
108
|
[issues]: https://github.com/fulldotdev/ui/issues
|
|
124
109
|
[discord]: https://discord.gg/tdmUyH2YE4
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fulldev-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.0",
|
|
5
5
|
"description": "Open-source Astro UI components and blocks",
|
|
6
6
|
"homepage": "https://ui.full.dev",
|
|
7
7
|
"bugs": "https://github.com/fulldotdev/ui/issues",
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
"src/components/blocks",
|
|
39
39
|
"src/components/ui",
|
|
40
40
|
"src/lib/utils.ts",
|
|
41
|
-
"src/styles/global.css"
|
|
42
|
-
"registry/init"
|
|
41
|
+
"src/styles/global.css"
|
|
43
42
|
],
|
|
44
43
|
"publishConfig": {
|
|
45
44
|
"access": "public"
|
|
@@ -121,17 +120,15 @@
|
|
|
121
120
|
"stop": "lsof -tiTCP:4321 -sTCP:LISTEN | xargs kill 2>/dev/null || true",
|
|
122
121
|
"preview": "pnpm stop && pnpm build && astro preview --host 127.0.0.1 --port 4321",
|
|
123
122
|
"typecheck": "tsc --noEmit --noCheck && astro check --minimumFailingSeverity hint",
|
|
124
|
-
"check": "
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
123
|
+
"check": "prettier --check . && pnpm typecheck && eslint . && pnpm registry:check && pnpm test",
|
|
124
|
+
"test": "node --test tests/*.test.mjs",
|
|
125
|
+
"fix": "prettier --write . && eslint . --fix",
|
|
126
|
+
"build": "astro build && html-validate dist",
|
|
127
|
+
"registry:build": "pnpm registry:meta && node scripts/registry-adapt.mjs && shadcn build --output node_modules/.cache/fulldev-registry && node scripts/registry-styles.mjs && prettier --write . --log-level warn",
|
|
128
|
+
"registry:check": "pnpm registry:validate && pnpm registry:build && git diff --exit-code -- registry.json public/r registry/styles/adapted",
|
|
128
129
|
"registry:validate": "node scripts/registry-validate.mjs",
|
|
129
|
-
"format:write": "prettier --write .",
|
|
130
|
-
"format:check": "prettier --check .",
|
|
131
130
|
"release": "changeset version && pnpm install --lockfile-only",
|
|
132
131
|
"release:publish": "pnpm registry:check && changeset publish",
|
|
133
|
-
"registry:meta": "node scripts/registry-meta.mjs"
|
|
134
|
-
"format": "prettier --write .",
|
|
135
|
-
"lint": "eslint ."
|
|
132
|
+
"registry:meta": "node scripts/registry-meta.mjs"
|
|
136
133
|
}
|
|
137
134
|
}
|
package/public/r/banner.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
{
|
|
11
11
|
"path": "src/components/ui/banner/banner.astro",
|
|
12
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"aside\"> &\n VariantProps<typeof variants> & {\n storageKey?: string\n }\n\nconst variants = cva(\"py-2 relative flex items-center\", {\n variants: {\n variant: {\n default: \"bg-foreground text-background w-full\",\n floating:\n \"bg-background my-2 rounded-lg border shadow-sm mx-auto w-[calc(100%-
|
|
12
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"aside\"> &\n VariantProps<typeof variants> & {\n storageKey?: string\n }\n\nconst variants = cva(\"py-2 relative flex items-center\", {\n variants: {\n variant: {\n default: \"bg-foreground text-background w-full\",\n floating:\n \"bg-background my-2 rounded-lg border shadow-sm mx-auto w-[calc(100%-2*var(--gutter,--spacing(4)))] max-w-[calc(var(--container,var(--container-7xl))-2*var(--gutter,--spacing(4)))] overflow-hidden\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n})\n\nconst { class: className, variant, storageKey, ...props } = Astro.props\n---\n\n<aside\n class={cn(variants({ variant }), className)}\n data-slot=\"banner\"\n data-banner-storage-key={storageKey}\n data-variant={variant}\n {...props}\n>\n <slot />\n</aside>\n\n<script>\n const getStorageToken = (key: string) => `banner:${key}`\n\n const syncBanners = () => {\n document.querySelectorAll(\"[data-slot='banner']\").forEach((banner) => {\n if (!(banner instanceof HTMLElement)) return\n const storageKey = banner.dataset.bannerStorageKey\n if (\n storageKey &&\n sessionStorage.getItem(getStorageToken(storageKey)) === \"hidden\"\n ) {\n banner.hidden = true\n }\n })\n }\n\n syncBanners()\n document.addEventListener(\"astro:page-load\", syncBanners)\n\n document.addEventListener(\"click\", (event) => {\n if (!(event.target instanceof Element)) return\n const closeButton = event.target.closest(\"[data-slot='banner-close']\")\n const banner = closeButton?.closest(\"[data-slot='banner']\")\n if (!(banner instanceof HTMLElement)) return\n banner.hidden = true\n const storageKey = banner.dataset.bannerStorageKey\n if (storageKey)\n sessionStorage.setItem(getStorageToken(storageKey), \"hidden\")\n })\n</script>\n",
|
|
13
13
|
"type": "registry:ui"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"path": "src/components/ui/banner/banner-container.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n showClose?: boolean\n}\n\nconst { class: className, showClose = true, ...props } = Astro.props\n---\n\n<div\n class={cn(\n \"relative mx-auto flex w-full max-w-7xl gap-4 px-4\",\n showClose && \"pr-10\",\n className\n )}\n {...props}\n>\n <slot />\n {\n showClose && (\n <button\n type=\"button\"\n class=\"focus-visible:ring-ring/50 rounded-sm text-current/65 hover:text-current focus-visible:text-current focus-visible:ring-2 absolute top-1/2 right-4 z-20 inline-flex shrink-0 -translate-y-1/2 items-center justify-center transition-colors outline-none disabled:pointer-events-none disabled:opacity-50 in-[[data-variant=floating]]:right-5\"\n aria-label=\"Close\"\n data-slot=\"banner-close\"\n >\n <XIcon class=\"size-4\" />\n <span class=\"sr-only\">Close</span>\n </button>\n )\n }\n</div>\n",
|
|
17
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n showClose?: boolean\n}\n\nconst { class: className, showClose = true, ...props } = Astro.props\n---\n\n<div\n class={cn(\n \"relative mx-auto flex w-full max-w-[var(--container,var(--container-7xl))] gap-4 px-[var(--gutter,--spacing(4))]\",\n showClose && \"pr-10\",\n className\n )}\n {...props}\n>\n <slot />\n {\n showClose && (\n <button\n type=\"button\"\n class=\"focus-visible:ring-ring/50 rounded-sm text-current/65 hover:text-current focus-visible:text-current focus-visible:ring-2 absolute top-1/2 right-4 z-20 inline-flex shrink-0 -translate-y-1/2 items-center justify-center transition-colors outline-none disabled:pointer-events-none disabled:opacity-50 in-[[data-variant=floating]]:right-5\"\n aria-label=\"Close\"\n data-slot=\"banner-close\"\n >\n <XIcon class=\"size-4\" />\n <span class=\"sr-only\">Close</span>\n </button>\n )\n }\n</div>\n",
|
|
18
18
|
"type": "registry:ui"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"extends": "none",
|
|
4
|
+
"name": "base",
|
|
5
|
+
"title": "Base",
|
|
6
|
+
"description": "Sets up a new project with `shadcn init`: style, registry, theme, class helper, and dependencies.",
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"class-variance-authority",
|
|
9
|
+
"cn",
|
|
10
|
+
"shadcn",
|
|
11
|
+
"tw-animate-css"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "src/lib/utils.ts",
|
|
16
|
+
"content": "export { cn } from \"cn\"\n",
|
|
17
|
+
"type": "registry:lib"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"cssVars": {
|
|
21
|
+
"theme": {
|
|
22
|
+
"font-heading": "var(--font-sans)"
|
|
23
|
+
},
|
|
24
|
+
"light": {
|
|
25
|
+
"background": "oklch(1 0 0)",
|
|
26
|
+
"foreground": "oklch(0.145 0 0)",
|
|
27
|
+
"card": "oklch(1 0 0)",
|
|
28
|
+
"card-foreground": "oklch(0.145 0 0)",
|
|
29
|
+
"popover": "oklch(1 0 0)",
|
|
30
|
+
"popover-foreground": "oklch(0.145 0 0)",
|
|
31
|
+
"primary": "oklch(0.5488 0.2498 261.783)",
|
|
32
|
+
"primary-foreground": "oklch(1 0 0)",
|
|
33
|
+
"secondary": "oklch(0.97 0 0)",
|
|
34
|
+
"secondary-foreground": "oklch(0.205 0 0)",
|
|
35
|
+
"muted": "oklch(0.97 0 0)",
|
|
36
|
+
"muted-foreground": "oklch(0.556 0 0)",
|
|
37
|
+
"accent": "oklch(0.97 0 0)",
|
|
38
|
+
"accent-foreground": "oklch(0.205 0 0)",
|
|
39
|
+
"destructive": "oklch(0.577 0.245 27.325)",
|
|
40
|
+
"border": "oklch(0.922 0 0)",
|
|
41
|
+
"input": "oklch(0.922 0 0)",
|
|
42
|
+
"ring": "oklch(0.708 0 0)",
|
|
43
|
+
"chart-1": "oklch(0.81 0.1 252)",
|
|
44
|
+
"chart-2": "oklch(0.62 0.19 260)",
|
|
45
|
+
"chart-3": "oklch(0.55 0.22 263)",
|
|
46
|
+
"chart-4": "oklch(0.49 0.22 264)",
|
|
47
|
+
"chart-5": "oklch(0.42 0.18 266)",
|
|
48
|
+
"sidebar": "oklch(0.985 0 0)",
|
|
49
|
+
"sidebar-foreground": "oklch(0.145 0 0)",
|
|
50
|
+
"sidebar-primary": "oklch(0.5488 0.2498 261.783)",
|
|
51
|
+
"sidebar-primary-foreground": "oklch(1 0 0)",
|
|
52
|
+
"sidebar-accent": "oklch(0.97 0 0)",
|
|
53
|
+
"sidebar-accent-foreground": "oklch(0.205 0 0)",
|
|
54
|
+
"sidebar-border": "oklch(0.922 0 0)",
|
|
55
|
+
"sidebar-ring": "oklch(0.708 0 0)",
|
|
56
|
+
"radius": "0.625rem",
|
|
57
|
+
"shadow-2xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
58
|
+
"shadow-xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
59
|
+
"shadow-sm": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
60
|
+
"shadow": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
61
|
+
"shadow-md": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1)",
|
|
62
|
+
"shadow-lg": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1)",
|
|
63
|
+
"shadow-xl": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1)",
|
|
64
|
+
"shadow-2xl": "0 1px 3px 0px hsl(0 0% 0% / 0.25)"
|
|
65
|
+
},
|
|
66
|
+
"dark": {
|
|
67
|
+
"background": "oklch(0.145 0 0)",
|
|
68
|
+
"foreground": "oklch(0.985 0 0)",
|
|
69
|
+
"card": "oklch(0.205 0 0)",
|
|
70
|
+
"card-foreground": "oklch(0.985 0 0)",
|
|
71
|
+
"popover": "oklch(0.269 0 0)",
|
|
72
|
+
"popover-foreground": "oklch(0.985 0 0)",
|
|
73
|
+
"primary": "oklch(0.686 0.2105 41.139)",
|
|
74
|
+
"primary-foreground": "oklch(1 0 0)",
|
|
75
|
+
"secondary": "oklch(0.269 0 0)",
|
|
76
|
+
"secondary-foreground": "oklch(0.985 0 0)",
|
|
77
|
+
"muted": "oklch(0.269 0 0)",
|
|
78
|
+
"muted-foreground": "oklch(0.708 0 0)",
|
|
79
|
+
"accent": "oklch(0.371 0 0)",
|
|
80
|
+
"accent-foreground": "oklch(0.985 0 0)",
|
|
81
|
+
"destructive": "oklch(0.704 0.191 22.216)",
|
|
82
|
+
"border": "oklch(0.275 0 0)",
|
|
83
|
+
"input": "oklch(0.325 0 0)",
|
|
84
|
+
"ring": "oklch(0.556 0 0)",
|
|
85
|
+
"chart-1": "oklch(0.81 0.1 252)",
|
|
86
|
+
"chart-2": "oklch(0.62 0.19 260)",
|
|
87
|
+
"chart-3": "oklch(0.55 0.22 263)",
|
|
88
|
+
"chart-4": "oklch(0.49 0.22 264)",
|
|
89
|
+
"chart-5": "oklch(0.42 0.18 266)",
|
|
90
|
+
"sidebar": "oklch(0.205 0 0)",
|
|
91
|
+
"sidebar-foreground": "oklch(0.985 0 0)",
|
|
92
|
+
"sidebar-primary": "oklch(0.686 0.2105 41.139)",
|
|
93
|
+
"sidebar-primary-foreground": "oklch(1 0 0)",
|
|
94
|
+
"sidebar-accent": "oklch(0.269 0 0)",
|
|
95
|
+
"sidebar-accent-foreground": "oklch(0.985 0 0)",
|
|
96
|
+
"sidebar-border": "oklch(0.275 0 0)",
|
|
97
|
+
"sidebar-ring": "oklch(0.439 0 0)",
|
|
98
|
+
"shadow-2xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
99
|
+
"shadow-xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
100
|
+
"shadow-sm": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
101
|
+
"shadow": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
102
|
+
"shadow-md": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1)",
|
|
103
|
+
"shadow-lg": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1)",
|
|
104
|
+
"shadow-xl": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1)",
|
|
105
|
+
"shadow-2xl": "0 1px 3px 0px hsl(0 0% 0% / 0.25)"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"css": {
|
|
109
|
+
"@import \"tw-animate-css\"": {},
|
|
110
|
+
"@import \"shadcn/tailwind.css\"": {},
|
|
111
|
+
"@layer base": {
|
|
112
|
+
"*": {
|
|
113
|
+
"@apply border-border outline-ring/50": {}
|
|
114
|
+
},
|
|
115
|
+
"html": {
|
|
116
|
+
"@apply font-sans": {}
|
|
117
|
+
},
|
|
118
|
+
"body": {
|
|
119
|
+
"@apply bg-background text-foreground": {}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
123
|
+
"*, ::before, ::after": {
|
|
124
|
+
"animation-duration": "0.01ms !important",
|
|
125
|
+
"animation-iteration-count": "1 !important",
|
|
126
|
+
"transition-duration": "0.01ms !important",
|
|
127
|
+
"scroll-behavior": "auto !important"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"docs": "https://ui.full.dev/docs/installation/",
|
|
132
|
+
"type": "registry:base",
|
|
133
|
+
"config": {
|
|
134
|
+
"style": "base-vega",
|
|
135
|
+
"tailwind": {
|
|
136
|
+
"baseColor": "neutral"
|
|
137
|
+
},
|
|
138
|
+
"iconLibrary": "lucide",
|
|
139
|
+
"registries": {
|
|
140
|
+
"@fulldev": "https://ui.full.dev/r/styles/{style}/{name}.json"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
package/public/r/command.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"path": "src/components/ui/command/command-item.astro",
|
|
47
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport CheckIcon from \"@lucide/astro/icons/check\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"a\"> & {\n disabled?: boolean\n href?: string\n value?: string\n label?: string\n keywords?: string | string[]\n forceMount?: boolean\n}\n\nconst {\n class: className,\n disabled,\n href,\n value,\n label,\n keywords,\n forceMount,\n ...props\n} = Astro.props\n\nconst Tag = href ? \"a\" : \"div\"\nconst keywordsValue = Array.isArray(keywords) ? keywords.join(\", \") : keywords\n---\n\n<Tag\n data-slot=\"command-item\"\n data-disabled={disabled ? \"true\" : undefined}\n data-value={value}\n data-label={label}\n data-keywords={keywordsValue}\n data-force-mount={forceMount ? \"true\" : undefined}\n href={href}\n class={cn(\n \"data-selected:bg-muted data-selected:text-foreground data-selected:**:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_svg:not([class*='size-'])]:size-4 group/command-item
|
|
47
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport CheckIcon from \"@lucide/astro/icons/check\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"a\"> & {\n disabled?: boolean\n href?: string\n value?: string\n label?: string\n keywords?: string | string[]\n forceMount?: boolean\n}\n\nconst {\n class: className,\n disabled,\n href,\n value,\n label,\n keywords,\n forceMount,\n ...props\n} = Astro.props\n\nconst Tag = href ? \"a\" : \"div\"\nconst keywordsValue = Array.isArray(keywords) ? keywords.join(\", \") : keywords\n---\n\n<Tag\n data-slot=\"command-item\"\n data-disabled={disabled ? \"true\" : undefined}\n data-value={value}\n data-label={label}\n data-keywords={keywordsValue}\n data-force-mount={forceMount ? \"true\" : undefined}\n href={href}\n class={cn(\n \"data-selected:bg-muted data-selected:text-foreground data-selected:**:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_svg:not([class*='size-'])]:size-4 group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&[href]]:cursor-pointer [&[href]]:no-underline\",\n className\n )}\n {...props}\n>\n <slot />\n <CheckIcon\n class=\"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-selected/command-item:opacity-100\"\n />\n</Tag>\n",
|
|
48
48
|
"type": "registry:ui"
|
|
49
49
|
},
|
|
50
50
|
{
|
package/public/r/field.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "src/components/ui/field/field-label.astro",
|
|
38
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Label } from \"@/components/ui/label\"\n\ntype Props = ComponentProps<typeof Label>\n\nconst { class: className, ...props } = Astro.props\n---\n\n<Label\n data-slot=\"field-label\"\n class={cn(\n \"has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-3 group/field-label peer/field-label flex w-fit\",\n \"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col\",\n className\n )}\n {...props}\n>\n <slot />\n</Label>\n",
|
|
38
|
+
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Label } from \"@/components/ui/label\"\n\ntype Props = ComponentProps<typeof Label>\n\nconst { class: className, ...props } = Astro.props\n---\n\n<Label\n data-slot=\"field-label\"\n class={cn(\n \"has-[[data-checked],:checked]:bg-primary/5 has-[[data-checked],:checked]:border-primary/30 dark:has-[[data-checked],:checked]:border-primary/20 dark:has-[[data-checked],:checked]:bg-primary/10 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-3 group/field-label peer/field-label flex w-fit\",\n \"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col\",\n className\n )}\n {...props}\n>\n <slot />\n</Label>\n",
|
|
39
39
|
"type": "registry:ui"
|
|
40
40
|
},
|
|
41
41
|
{
|
package/public/r/header.json
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
{
|
|
15
15
|
"path": "src/components/ui/header/header.astro",
|
|
16
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"header\"> & VariantProps<typeof variants>\n\nconst variants = cva(\"py-2 relative z-50 flex w-full items-center gap-4\", {\n variants: {\n variant: {\n default: \"\",\n floating:\n \"bg-background my-2 rounded-lg border shadow-sm mx-auto w-[calc(100%-
|
|
16
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"header\"> & VariantProps<typeof variants>\n\nconst variants = cva(\"py-2 relative z-50 flex w-full items-center gap-4\", {\n variants: {\n variant: {\n default: \"\",\n floating:\n \"bg-background my-2 rounded-lg border shadow-sm mx-auto w-[calc(100%-2*var(--gutter,--spacing(4)))] max-w-[calc(var(--container,var(--container-7xl))-2*var(--gutter,--spacing(4)))] overflow-hidden\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n})\n\nconst { class: className, variant, ...props } = Astro.props\n---\n\n<header\n class={cn(variants({ variant }), className)}\n data-slot=\"header\"\n data-variant={variant}\n {...props}\n>\n <slot />\n</header>\n",
|
|
17
17
|
"type": "registry:ui"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"path": "src/components/ui/header/header-container.astro",
|
|
21
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"header-container\"\n class={cn(\"relative mx-auto flex w-full max-w-7xl gap-4 px-4\"
|
|
21
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"header-container\"\n class={cn(\n \"relative mx-auto flex w-full max-w-[var(--container,var(--container-7xl))] gap-4 px-[var(--gutter,--spacing(4))]\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
22
22
|
"type": "registry:ui"
|
|
23
23
|
},
|
|
24
24
|
{
|
package/public/r/init.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
3
|
"name": "init",
|
|
4
4
|
"title": "Init",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Class helper, dependencies, and base styles for an existing project. Leaves theme tokens alone.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"class-variance-authority",
|
|
8
8
|
"cn",
|
|
@@ -14,14 +14,31 @@
|
|
|
14
14
|
"path": "src/lib/utils.ts",
|
|
15
15
|
"content": "export { cn } from \"cn\"\n",
|
|
16
16
|
"type": "registry:lib"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"path": "registry/init/global.css",
|
|
20
|
-
"content": "@import \"tailwindcss\";\n@import \"tw-animate-css\";\n@import \"shadcn/tailwind.css\";\n\n@custom-variant dark (&:where(.dark, .dark *));\n\n:root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.145 0 0);\n --card: oklch(1 0 0);\n --card-foreground: oklch(0.145 0 0);\n --popover: oklch(1 0 0);\n --popover-foreground: oklch(0.145 0 0);\n --primary: oklch(0.5488 0.2498 261.783);\n --primary-foreground: oklch(1 0 0);\n --secondary: oklch(0.97 0 0);\n --secondary-foreground: oklch(0.205 0 0);\n --muted: oklch(0.97 0 0);\n --muted-foreground: oklch(0.556 0 0);\n --accent: oklch(0.97 0 0);\n --accent-foreground: oklch(0.205 0 0);\n --destructive: oklch(0.577 0.245 27.325);\n --destructive-foreground: oklch(1 0 0);\n --border: oklch(0.922 0 0);\n --input: oklch(0.922 0 0);\n --ring: oklch(0.708 0 0);\n --chart-1: oklch(0.81 0.1 252);\n --chart-2: oklch(0.62 0.19 260);\n --chart-3: oklch(0.55 0.22 263);\n --chart-4: oklch(0.49 0.22 264);\n --chart-5: oklch(0.42 0.18 266);\n --sidebar: oklch(0.985 0 0);\n --sidebar-foreground: oklch(0.145 0 0);\n --sidebar-primary: oklch(0.5488 0.2498 261.783);\n --sidebar-primary-foreground: oklch(1 0 0);\n --sidebar-accent: oklch(0.97 0 0);\n --sidebar-accent-foreground: oklch(0.205 0 0);\n --sidebar-border: oklch(0.922 0 0);\n --sidebar-ring: oklch(0.708 0 0);\n --radius: 0.625rem;\n --shadow-x: 0;\n --shadow-y: 1px;\n --shadow-blur: 3px;\n --shadow-spread: 0px;\n --shadow-opacity: 0.1;\n --shadow-color: oklch(0 0 0);\n --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);\n --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);\n --shadow-sm:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);\n --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);\n --shadow-md:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);\n --shadow-lg:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);\n --shadow-xl:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);\n --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);\n --tracking-normal: 0em;\n --spacing: 0.25rem;\n}\n\n.dark {\n --background: oklch(0.145 0 0);\n --foreground: oklch(0.985 0 0);\n --card: oklch(0.205 0 0);\n --card-foreground: oklch(0.985 0 0);\n --popover: oklch(0.269 0 0);\n --popover-foreground: oklch(0.985 0 0);\n --primary: oklch(0.686 0.2105 41.139);\n --primary-foreground: oklch(1 0 0);\n --secondary: oklch(0.269 0 0);\n --secondary-foreground: oklch(0.985 0 0);\n --muted: oklch(0.269 0 0);\n --muted-foreground: oklch(0.708 0 0);\n --accent: oklch(0.371 0 0);\n --accent-foreground: oklch(0.985 0 0);\n --destructive: oklch(0.704 0.191 22.216);\n --destructive-foreground: oklch(0.985 0 0);\n --border: oklch(0.275 0 0);\n --input: oklch(0.325 0 0);\n --ring: oklch(0.556 0 0);\n --chart-1: oklch(0.81 0.1 252);\n --chart-2: oklch(0.62 0.19 260);\n --chart-3: oklch(0.55 0.22 263);\n --chart-4: oklch(0.49 0.22 264);\n --chart-5: oklch(0.42 0.18 266);\n --sidebar: oklch(0.205 0 0);\n --sidebar-foreground: oklch(0.985 0 0);\n --sidebar-primary: oklch(0.686 0.2105 41.139);\n --sidebar-primary-foreground: oklch(1 0 0);\n --sidebar-accent: oklch(0.269 0 0);\n --sidebar-accent-foreground: oklch(0.985 0 0);\n --sidebar-border: oklch(0.275 0 0);\n --sidebar-ring: oklch(0.439 0 0);\n --shadow-x: 0;\n --shadow-y: 1px;\n --shadow-blur: 3px;\n --shadow-spread: 0px;\n --shadow-opacity: 0.1;\n --shadow-color: oklch(0 0 0);\n --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);\n --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);\n --shadow-sm:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);\n --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);\n --shadow-md:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);\n --shadow-lg:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);\n --shadow-xl:\n 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);\n --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);\n}\n\n@theme inline {\n --font-heading: var(--font-sans);\n\n --color-background: var(--background);\n --color-foreground: var(--foreground);\n --color-card: var(--card);\n --color-card-foreground: var(--card-foreground);\n --color-popover: var(--popover);\n --color-popover-foreground: var(--popover-foreground);\n --color-primary: var(--primary);\n --color-primary-foreground: var(--primary-foreground);\n --color-secondary: var(--secondary);\n --color-secondary-foreground: var(--secondary-foreground);\n --color-muted: var(--muted);\n --color-muted-foreground: var(--muted-foreground);\n --color-accent: var(--accent);\n --color-accent-foreground: var(--accent-foreground);\n --color-destructive: var(--destructive);\n --color-destructive-foreground: var(--destructive-foreground);\n --color-border: var(--border);\n --color-input: var(--input);\n --color-ring: var(--ring);\n --color-chart-1: var(--chart-1);\n --color-chart-2: var(--chart-2);\n --color-chart-3: var(--chart-3);\n --color-chart-4: var(--chart-4);\n --color-chart-5: var(--chart-5);\n --color-sidebar: var(--sidebar);\n --color-sidebar-foreground: var(--sidebar-foreground);\n --color-sidebar-primary: var(--sidebar-primary);\n --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);\n --color-sidebar-accent: var(--sidebar-accent);\n --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);\n --color-sidebar-border: var(--sidebar-border);\n --color-sidebar-ring: var(--sidebar-ring);\n\n --radius-sm: calc(var(--radius) - 4px);\n --radius-md: calc(var(--radius) - 2px);\n --radius-lg: var(--radius);\n --radius-xl: calc(var(--radius) + 4px);\n\n --shadow-2xs: var(--shadow-2xs);\n --shadow-xs: var(--shadow-xs);\n --shadow-sm: var(--shadow-sm);\n --shadow: var(--shadow);\n --shadow-md: var(--shadow-md);\n --shadow-lg: var(--shadow-lg);\n --shadow-xl: var(--shadow-xl);\n --shadow-2xl: var(--shadow-2xl);\n}\n\n@layer base {\n * {\n @apply border-border outline-ring/50;\n }\n html {\n @apply font-sans;\n }\n body {\n @apply bg-background text-foreground font-sans;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n *,\n ::before,\n ::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n",
|
|
21
|
-
"type": "registry:style",
|
|
22
|
-
"target": "src/styles/global.css"
|
|
23
17
|
}
|
|
24
18
|
],
|
|
19
|
+
"css": {
|
|
20
|
+
"@import \"tw-animate-css\"": {},
|
|
21
|
+
"@import \"shadcn/tailwind.css\"": {},
|
|
22
|
+
"@layer base": {
|
|
23
|
+
"*": {
|
|
24
|
+
"@apply border-border outline-ring/50": {}
|
|
25
|
+
},
|
|
26
|
+
"html": {
|
|
27
|
+
"@apply font-sans": {}
|
|
28
|
+
},
|
|
29
|
+
"body": {
|
|
30
|
+
"@apply bg-background text-foreground": {}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
34
|
+
"*, ::before, ::after": {
|
|
35
|
+
"animation-duration": "0.01ms !important",
|
|
36
|
+
"animation-iteration-count": "1 !important",
|
|
37
|
+
"transition-duration": "0.01ms !important",
|
|
38
|
+
"scroll-behavior": "auto !important"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
25
42
|
"docs": "https://ui.full.dev/docs/installation/",
|
|
26
|
-
"type": "registry:
|
|
43
|
+
"type": "registry:lib"
|
|
27
44
|
}
|
package/public/r/layout.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
{
|
|
11
11
|
"path": "src/components/ui/layout/layout.astro",
|
|
12
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport \"@/styles/global.css\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"html\">\n\nconst { class: className, lang, ...props } = Astro.props\n---\n\n<html\n class={cn(\n \"bg-background text-foreground has-data-[variant=inset]:bg-sidebar overscroll-none scroll-smooth\",\n className\n )}\n data-slot=\"layout\"\n lang={Astro.currentLocale || \"en\"}\n {...props}\n>\n <slot />\n</html>\n\n<style is:global>\n :root {\n
|
|
12
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport \"@/styles/global.css\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"html\">\n\nconst { class: className, lang, ...props } = Astro.props\n---\n\n<html\n class={cn(\n \"bg-background text-foreground has-data-[variant=inset]:bg-sidebar overscroll-none scroll-smooth\",\n className\n )}\n data-slot=\"layout\"\n lang={Astro.currentLocale || \"en\"}\n {...props}\n>\n <slot />\n</html>\n\n<style is:global>\n :root {\n color-scheme: light;\n }\n\n .dark {\n color-scheme: dark;\n }\n\n @view-transition {\n navigation: auto;\n }\n</style>\n",
|
|
13
13
|
"type": "registry:ui"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"path": "src/components/ui/navigation-menu/navigation-menu-positioner.astro",
|
|
53
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n}\n\nconst {\n class: className,\n side = \"bottom\",\n sideOffset = 8,\n align = \"start\",\n alignOffset = 0,\n ...props\n} = Astro.props\n---\n\n<div data-slot=\"navigation-menu-portal\">\n <div\n {...props}\n data-slot=\"navigation-menu-positioner\"\n data-side={side}\n data-side-offset={sideOffset}\n data-align={align}\n data-align-offset={alignOffset}\n class={cn(\n \"isolate z-[1000] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0\",\n className\n )}\n >\n <div\n data-slot=\"navigation-menu-popup\"\n hidden\n class=\"bg-popover text-popover-foreground ring-foreground/10 rounded-lg shadow ring-1 ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0
|
|
53
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n}\n\nconst {\n class: className,\n side = \"bottom\",\n sideOffset = 8,\n align = \"start\",\n alignOffset = 0,\n ...props\n} = Astro.props\n---\n\n<div data-slot=\"navigation-menu-portal\">\n <div\n {...props}\n data-slot=\"navigation-menu-positioner\"\n data-side={side}\n data-side-offset={sideOffset}\n data-align={align}\n data-align-offset={alignOffset}\n class={cn(\n \"isolate z-[1000] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0\",\n className\n )}\n >\n <div\n data-slot=\"navigation-menu-popup\"\n hidden\n class=\"bg-popover text-popover-foreground ring-foreground/10 rounded-lg shadow ring-1 ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0 relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] data-ending-style:ease-[ease]\"\n >\n <div\n data-slot=\"navigation-menu-viewport\"\n hidden\n class=\"relative size-full overflow-hidden\"\n >\n </div>\n </div>\n </div>\n</div>\n",
|
|
54
54
|
"type": "registry:ui"
|
|
55
55
|
},
|
|
56
56
|
{
|
package/public/r/registry.json
CHANGED
|
@@ -4485,9 +4485,9 @@
|
|
|
4485
4485
|
},
|
|
4486
4486
|
{
|
|
4487
4487
|
"name": "init",
|
|
4488
|
-
"type": "registry:
|
|
4488
|
+
"type": "registry:lib",
|
|
4489
4489
|
"title": "Init",
|
|
4490
|
-
"description": "
|
|
4490
|
+
"description": "Class helper, dependencies, and base styles for an existing project. Leaves theme tokens alone.",
|
|
4491
4491
|
"docs": "https://ui.full.dev/docs/installation/",
|
|
4492
4492
|
"dependencies": [
|
|
4493
4493
|
"class-variance-authority",
|
|
@@ -4499,13 +4499,172 @@
|
|
|
4499
4499
|
{
|
|
4500
4500
|
"path": "src/lib/utils.ts",
|
|
4501
4501
|
"type": "registry:lib"
|
|
4502
|
+
}
|
|
4503
|
+
],
|
|
4504
|
+
"css": {
|
|
4505
|
+
"@import \"tw-animate-css\"": {},
|
|
4506
|
+
"@import \"shadcn/tailwind.css\"": {},
|
|
4507
|
+
"@layer base": {
|
|
4508
|
+
"*": {
|
|
4509
|
+
"@apply border-border outline-ring/50": {}
|
|
4510
|
+
},
|
|
4511
|
+
"html": {
|
|
4512
|
+
"@apply font-sans": {}
|
|
4513
|
+
},
|
|
4514
|
+
"body": {
|
|
4515
|
+
"@apply bg-background text-foreground": {}
|
|
4516
|
+
}
|
|
4517
|
+
},
|
|
4518
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
4519
|
+
"*, ::before, ::after": {
|
|
4520
|
+
"animation-duration": "0.01ms !important",
|
|
4521
|
+
"animation-iteration-count": "1 !important",
|
|
4522
|
+
"transition-duration": "0.01ms !important",
|
|
4523
|
+
"scroll-behavior": "auto !important"
|
|
4524
|
+
}
|
|
4525
|
+
}
|
|
4526
|
+
}
|
|
4527
|
+
},
|
|
4528
|
+
{
|
|
4529
|
+
"name": "base",
|
|
4530
|
+
"type": "registry:base",
|
|
4531
|
+
"extends": "none",
|
|
4532
|
+
"title": "Base",
|
|
4533
|
+
"description": "Sets up a new project with `shadcn init`: style, registry, theme, class helper, and dependencies.",
|
|
4534
|
+
"docs": "https://ui.full.dev/docs/installation/",
|
|
4535
|
+
"config": {
|
|
4536
|
+
"style": "base-vega",
|
|
4537
|
+
"iconLibrary": "lucide",
|
|
4538
|
+
"tailwind": {
|
|
4539
|
+
"baseColor": "neutral"
|
|
4502
4540
|
},
|
|
4541
|
+
"registries": {
|
|
4542
|
+
"@fulldev": "https://ui.full.dev/r/styles/{style}/{name}.json"
|
|
4543
|
+
}
|
|
4544
|
+
},
|
|
4545
|
+
"dependencies": [
|
|
4546
|
+
"class-variance-authority",
|
|
4547
|
+
"cn",
|
|
4548
|
+
"shadcn",
|
|
4549
|
+
"tw-animate-css"
|
|
4550
|
+
],
|
|
4551
|
+
"files": [
|
|
4503
4552
|
{
|
|
4504
|
-
"path": "
|
|
4505
|
-
"type": "registry:
|
|
4506
|
-
"target": "src/styles/global.css"
|
|
4553
|
+
"path": "src/lib/utils.ts",
|
|
4554
|
+
"type": "registry:lib"
|
|
4507
4555
|
}
|
|
4508
|
-
]
|
|
4556
|
+
],
|
|
4557
|
+
"cssVars": {
|
|
4558
|
+
"theme": {
|
|
4559
|
+
"font-heading": "var(--font-sans)"
|
|
4560
|
+
},
|
|
4561
|
+
"light": {
|
|
4562
|
+
"background": "oklch(1 0 0)",
|
|
4563
|
+
"foreground": "oklch(0.145 0 0)",
|
|
4564
|
+
"card": "oklch(1 0 0)",
|
|
4565
|
+
"card-foreground": "oklch(0.145 0 0)",
|
|
4566
|
+
"popover": "oklch(1 0 0)",
|
|
4567
|
+
"popover-foreground": "oklch(0.145 0 0)",
|
|
4568
|
+
"primary": "oklch(0.5488 0.2498 261.783)",
|
|
4569
|
+
"primary-foreground": "oklch(1 0 0)",
|
|
4570
|
+
"secondary": "oklch(0.97 0 0)",
|
|
4571
|
+
"secondary-foreground": "oklch(0.205 0 0)",
|
|
4572
|
+
"muted": "oklch(0.97 0 0)",
|
|
4573
|
+
"muted-foreground": "oklch(0.556 0 0)",
|
|
4574
|
+
"accent": "oklch(0.97 0 0)",
|
|
4575
|
+
"accent-foreground": "oklch(0.205 0 0)",
|
|
4576
|
+
"destructive": "oklch(0.577 0.245 27.325)",
|
|
4577
|
+
"border": "oklch(0.922 0 0)",
|
|
4578
|
+
"input": "oklch(0.922 0 0)",
|
|
4579
|
+
"ring": "oklch(0.708 0 0)",
|
|
4580
|
+
"chart-1": "oklch(0.81 0.1 252)",
|
|
4581
|
+
"chart-2": "oklch(0.62 0.19 260)",
|
|
4582
|
+
"chart-3": "oklch(0.55 0.22 263)",
|
|
4583
|
+
"chart-4": "oklch(0.49 0.22 264)",
|
|
4584
|
+
"chart-5": "oklch(0.42 0.18 266)",
|
|
4585
|
+
"sidebar": "oklch(0.985 0 0)",
|
|
4586
|
+
"sidebar-foreground": "oklch(0.145 0 0)",
|
|
4587
|
+
"sidebar-primary": "oklch(0.5488 0.2498 261.783)",
|
|
4588
|
+
"sidebar-primary-foreground": "oklch(1 0 0)",
|
|
4589
|
+
"sidebar-accent": "oklch(0.97 0 0)",
|
|
4590
|
+
"sidebar-accent-foreground": "oklch(0.205 0 0)",
|
|
4591
|
+
"sidebar-border": "oklch(0.922 0 0)",
|
|
4592
|
+
"sidebar-ring": "oklch(0.708 0 0)",
|
|
4593
|
+
"radius": "0.625rem",
|
|
4594
|
+
"shadow-2xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
4595
|
+
"shadow-xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
4596
|
+
"shadow-sm": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
4597
|
+
"shadow": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
4598
|
+
"shadow-md": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1)",
|
|
4599
|
+
"shadow-lg": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1)",
|
|
4600
|
+
"shadow-xl": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1)",
|
|
4601
|
+
"shadow-2xl": "0 1px 3px 0px hsl(0 0% 0% / 0.25)"
|
|
4602
|
+
},
|
|
4603
|
+
"dark": {
|
|
4604
|
+
"background": "oklch(0.145 0 0)",
|
|
4605
|
+
"foreground": "oklch(0.985 0 0)",
|
|
4606
|
+
"card": "oklch(0.205 0 0)",
|
|
4607
|
+
"card-foreground": "oklch(0.985 0 0)",
|
|
4608
|
+
"popover": "oklch(0.269 0 0)",
|
|
4609
|
+
"popover-foreground": "oklch(0.985 0 0)",
|
|
4610
|
+
"primary": "oklch(0.686 0.2105 41.139)",
|
|
4611
|
+
"primary-foreground": "oklch(1 0 0)",
|
|
4612
|
+
"secondary": "oklch(0.269 0 0)",
|
|
4613
|
+
"secondary-foreground": "oklch(0.985 0 0)",
|
|
4614
|
+
"muted": "oklch(0.269 0 0)",
|
|
4615
|
+
"muted-foreground": "oklch(0.708 0 0)",
|
|
4616
|
+
"accent": "oklch(0.371 0 0)",
|
|
4617
|
+
"accent-foreground": "oklch(0.985 0 0)",
|
|
4618
|
+
"destructive": "oklch(0.704 0.191 22.216)",
|
|
4619
|
+
"border": "oklch(0.275 0 0)",
|
|
4620
|
+
"input": "oklch(0.325 0 0)",
|
|
4621
|
+
"ring": "oklch(0.556 0 0)",
|
|
4622
|
+
"chart-1": "oklch(0.81 0.1 252)",
|
|
4623
|
+
"chart-2": "oklch(0.62 0.19 260)",
|
|
4624
|
+
"chart-3": "oklch(0.55 0.22 263)",
|
|
4625
|
+
"chart-4": "oklch(0.49 0.22 264)",
|
|
4626
|
+
"chart-5": "oklch(0.42 0.18 266)",
|
|
4627
|
+
"sidebar": "oklch(0.205 0 0)",
|
|
4628
|
+
"sidebar-foreground": "oklch(0.985 0 0)",
|
|
4629
|
+
"sidebar-primary": "oklch(0.686 0.2105 41.139)",
|
|
4630
|
+
"sidebar-primary-foreground": "oklch(1 0 0)",
|
|
4631
|
+
"sidebar-accent": "oklch(0.269 0 0)",
|
|
4632
|
+
"sidebar-accent-foreground": "oklch(0.985 0 0)",
|
|
4633
|
+
"sidebar-border": "oklch(0.275 0 0)",
|
|
4634
|
+
"sidebar-ring": "oklch(0.439 0 0)",
|
|
4635
|
+
"shadow-2xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
4636
|
+
"shadow-xs": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
|
|
4637
|
+
"shadow-sm": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
4638
|
+
"shadow": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1)",
|
|
4639
|
+
"shadow-md": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1)",
|
|
4640
|
+
"shadow-lg": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1)",
|
|
4641
|
+
"shadow-xl": "0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1)",
|
|
4642
|
+
"shadow-2xl": "0 1px 3px 0px hsl(0 0% 0% / 0.25)"
|
|
4643
|
+
}
|
|
4644
|
+
},
|
|
4645
|
+
"css": {
|
|
4646
|
+
"@import \"tw-animate-css\"": {},
|
|
4647
|
+
"@import \"shadcn/tailwind.css\"": {},
|
|
4648
|
+
"@layer base": {
|
|
4649
|
+
"*": {
|
|
4650
|
+
"@apply border-border outline-ring/50": {}
|
|
4651
|
+
},
|
|
4652
|
+
"html": {
|
|
4653
|
+
"@apply font-sans": {}
|
|
4654
|
+
},
|
|
4655
|
+
"body": {
|
|
4656
|
+
"@apply bg-background text-foreground": {}
|
|
4657
|
+
}
|
|
4658
|
+
},
|
|
4659
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
4660
|
+
"*, ::before, ::after": {
|
|
4661
|
+
"animation-duration": "0.01ms !important",
|
|
4662
|
+
"animation-iteration-count": "1 !important",
|
|
4663
|
+
"transition-duration": "0.01ms !important",
|
|
4664
|
+
"scroll-behavior": "auto !important"
|
|
4665
|
+
}
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4509
4668
|
},
|
|
4510
4669
|
{
|
|
4511
4670
|
"name": "blocks",
|