fulldev-ui 0.22.2 → 0.23.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 +14 -0
- package/README.md +6 -2
- package/liquid/LICENSE-DATA-SLOT.md +21 -0
- package/liquid/LICENSE-FULLDEV.txt +21 -0
- package/liquid/LICENSE-SHADCN.md +21 -0
- package/liquid/README.md +17 -0
- package/liquid/components/accordion.liquid +5 -0
- package/liquid/components/alert-dialog.liquid +116 -0
- package/liquid/components/alert.liquid +45 -0
- package/liquid/components/aspect-ratio.liquid +28 -0
- package/liquid/components/attachment.liquid +134 -0
- package/liquid/components/avatar.liquid +52 -0
- package/liquid/components/badge.liquid +86 -0
- package/liquid/components/banner.liquid +40 -0
- package/liquid/components/base.liquid +112 -0
- package/liquid/components/breadcrumb.liquid +46 -0
- package/liquid/components/button-group.liquid +56 -0
- package/liquid/components/button.liquid +232 -0
- package/liquid/components/card.liquid +5 -0
- package/liquid/components/carousel.liquid +5 -0
- package/liquid/components/checkbox.liquid +54 -0
- package/liquid/components/collapsible.liquid +3 -0
- package/liquid/components/combobox.liquid +87 -0
- package/liquid/components/command.liquid +86 -0
- package/liquid/components/dialog.liquid +80 -0
- package/liquid/components/drawer.liquid +97 -0
- package/liquid/components/dropdown-menu.liquid +3 -0
- package/liquid/components/empty.liquid +77 -0
- package/liquid/components/field.liquid +5 -0
- package/liquid/components/form.liquid +5 -0
- package/liquid/components/header.liquid +33 -0
- package/liquid/components/hover-card.liquid +3 -0
- package/liquid/components/icon.liquid +5 -0
- package/liquid/components/input-group.liquid +53 -0
- package/liquid/components/input.liquid +84 -0
- package/liquid/components/invalid-controls.liquid +18 -0
- package/liquid/components/item.liquid +114 -0
- package/liquid/components/kbd.liquid +20 -0
- package/liquid/components/logo.liquid +33 -0
- package/liquid/components/marquee.liquid +5 -0
- package/liquid/components/navigation-menu.liquid +5 -0
- package/liquid/components/pagination.liquid +32 -0
- package/liquid/components/popover.liquid +3 -0
- package/liquid/components/popup.liquid +189 -0
- package/liquid/components/price.liquid +5 -0
- package/liquid/components/radio-group.liquid +53 -0
- package/liquid/components/rating.liquid +5 -0
- package/liquid/components/section.liquid +5 -0
- package/liquid/components/select.liquid +51 -0
- package/liquid/components/separator.liquid +19 -0
- package/liquid/components/sheet.liquid +68 -0
- package/liquid/components/skeleton.liquid +17 -0
- package/liquid/components/slider.liquid +50 -0
- package/liquid/components/spinner.liquid +28 -0
- package/liquid/components/switch.liquid +54 -0
- package/liquid/components/table.liquid +64 -0
- package/liquid/components/tabs.liquid +88 -0
- package/liquid/components/toast.liquid +5 -0
- package/liquid/components/toc.liquid +45 -0
- package/liquid/components/toggle-group.liquid +77 -0
- package/liquid/components/toggle.liquid +61 -0
- package/liquid/components/tooltip.liquid +45 -0
- package/liquid/components/triggers.liquid +20 -0
- package/liquid/components/typography.liquid +5 -0
- package/liquid/components/video.liquid +5 -0
- package/liquid/contracts.json +428 -0
- package/liquid/examples/accordion.liquid +10 -0
- package/liquid/examples/alert-dialog.liquid +40 -0
- package/liquid/examples/alert.liquid +4 -0
- package/liquid/examples/aspect-ratio.liquid +1 -0
- package/liquid/examples/attachment.liquid +22 -0
- package/liquid/examples/avatar.liquid +1 -0
- package/liquid/examples/badge.liquid +5 -0
- package/liquid/examples/banner.liquid +3 -0
- package/liquid/examples/breadcrumb.liquid +7 -0
- package/liquid/examples/button-group.liquid +6 -0
- package/liquid/examples/button.liquid +8 -0
- package/liquid/examples/card.liquid +11 -0
- package/liquid/examples/carousel.liquid +12 -0
- package/liquid/examples/checkbox.liquid +4 -0
- package/liquid/examples/collapsible.liquid +29 -0
- package/liquid/examples/combobox.liquid +13 -0
- package/liquid/examples/command.liquid +10 -0
- package/liquid/examples/dependencies.json +60 -0
- package/liquid/examples/dialog.liquid +11 -0
- package/liquid/examples/drawer.liquid +18 -0
- package/liquid/examples/dropdown-menu.liquid +88 -0
- package/liquid/examples/empty.liquid +9 -0
- package/liquid/examples/field.liquid +105 -0
- package/liquid/examples/form.liquid +9 -0
- package/liquid/examples/header.liquid +8 -0
- package/liquid/examples/hover-card.liquid +16 -0
- package/liquid/examples/icon.liquid +3 -0
- package/liquid/examples/input-group.liquid +6 -0
- package/liquid/examples/input.liquid +4 -0
- package/liquid/examples/item.liquid +72 -0
- package/liquid/examples/kbd.liquid +1 -0
- package/liquid/examples/label.liquid +3 -0
- package/liquid/examples/logo.liquid +3 -0
- package/liquid/examples/marquee.liquid +5 -0
- package/liquid/examples/native-select.liquid +8 -0
- package/liquid/examples/navigation-menu.liquid +11 -0
- package/liquid/examples/pagination.liquid +11 -0
- package/liquid/examples/popover.liquid +14 -0
- package/liquid/examples/price.liquid +1 -0
- package/liquid/examples/radio-group.liquid +62 -0
- package/liquid/examples/rating.liquid +17 -0
- package/liquid/examples/section.liquid +9 -0
- package/liquid/examples/select.liquid +105 -0
- package/liquid/examples/separator.liquid +3 -0
- package/liquid/examples/sheet.liquid +11 -0
- package/liquid/examples/skeleton.liquid +5 -0
- package/liquid/examples/slider.liquid +46 -0
- package/liquid/examples/spinner.liquid +11 -0
- package/liquid/examples/switch.liquid +7 -0
- package/liquid/examples/table.liquid +37 -0
- package/liquid/examples/tabs.liquid +21 -0
- package/liquid/examples/textarea.liquid +9 -0
- package/liquid/examples/toast.liquid +47 -0
- package/liquid/examples/toc.liquid +11 -0
- package/liquid/examples/toggle-group.liquid +50 -0
- package/liquid/examples/toggle.liquid +21 -0
- package/liquid/examples/tooltip.liquid +33 -0
- package/liquid/examples/typography.liquid +9 -0
- package/liquid/examples/video.liquid +7 -0
- package/liquid/licenses.json +14 -0
- package/liquid/manifest.json +110 -0
- package/liquid/registry.json +1295 -0
- package/liquid/runtime/ui-carousel.js +44 -0
- package/liquid/runtime/ui-controls.js +195 -0
- package/liquid/runtime/ui-lifecycle.js +107 -0
- package/liquid/runtime/ui-motion.js +45 -0
- package/liquid/runtime/ui-start.js +37 -0
- package/liquid/snippets/init.liquid +6 -0
- package/liquid/snippets/runtime.liquid +9 -0
- package/liquid/snippets/ui.liquid +68 -0
- package/liquid/styles/accordion.css +66 -0
- package/liquid/styles/card.css +114 -0
- package/liquid/styles/carousel.css +58 -0
- package/liquid/styles/field.css +70 -0
- package/liquid/styles/form.css +14 -0
- package/liquid/styles/icon.css +32 -0
- package/liquid/styles/marquee.css +65 -0
- package/liquid/styles/navigation-menu.css +235 -0
- package/liquid/styles/price.css +41 -0
- package/liquid/styles/primitives.css +53 -0
- package/liquid/styles/rating.css +23 -0
- package/liquid/styles/section.css +92 -0
- package/liquid/styles/toast.css +125 -0
- package/liquid/styles/tokens.css +118 -0
- package/liquid/styles/typography.css +670 -0
- package/liquid/styles/video.css +10 -0
- package/liquid/vendor/data-slot-accordion.js +1 -0
- package/liquid/vendor/data-slot-alert-dialog.js +1 -0
- package/liquid/vendor/data-slot-carousel.js +1 -0
- package/liquid/vendor/data-slot-collapsible.js +1 -0
- package/liquid/vendor/data-slot-combobox.js +1 -0
- package/liquid/vendor/data-slot-command.js +1 -0
- package/liquid/vendor/data-slot-core.js +1 -0
- package/liquid/vendor/data-slot-dialog.js +1 -0
- package/liquid/vendor/data-slot-drawer.js +1 -0
- package/liquid/vendor/data-slot-dropdown-menu.js +1 -0
- package/liquid/vendor/data-slot-hover-card.js +1 -0
- package/liquid/vendor/data-slot-navigation-menu.js +1 -0
- package/liquid/vendor/data-slot-popover.js +1 -0
- package/liquid/vendor/data-slot-radio-group.js +1 -0
- package/liquid/vendor/data-slot-select.js +1 -0
- package/liquid/vendor/data-slot-slider.js +1 -0
- package/liquid/vendor/data-slot-switch.js +1 -0
- package/liquid/vendor/data-slot-tabs.js +1 -0
- package/liquid/vendor/data-slot-toast.js +8 -0
- package/liquid/vendor/data-slot-toggle-group.js +1 -0
- package/liquid/vendor/data-slot-toggle.js +1 -0
- package/liquid/vendor/data-slot-tooltip.js +1 -0
- package/liquid/vendor.json +180 -0
- package/package.json +16 -10
- package/public/r/liquid/accordion.json +25 -0
- package/public/r/liquid/alert-dialog.json +21 -0
- package/public/r/liquid/alert.json +18 -0
- package/public/r/liquid/aspect-ratio.json +18 -0
- package/public/r/liquid/attachment.json +20 -0
- package/public/r/liquid/avatar.json +18 -0
- package/public/r/liquid/badge.json +18 -0
- package/public/r/liquid/banner.json +18 -0
- package/public/r/liquid/breadcrumb.json +18 -0
- package/public/r/liquid/button-group.json +19 -0
- package/public/r/liquid/button.json +18 -0
- package/public/r/liquid/card.json +25 -0
- package/public/r/liquid/carousel.json +26 -0
- package/public/r/liquid/checkbox.json +19 -0
- package/public/r/liquid/collapsible.json +19 -0
- package/public/r/liquid/combobox.json +21 -0
- package/public/r/liquid/command.json +19 -0
- package/public/r/liquid/components.json +83 -0
- package/public/r/liquid/dialog.json +19 -0
- package/public/r/liquid/drawer.json +21 -0
- package/public/r/liquid/dropdown-menu.json +21 -0
- package/public/r/liquid/empty.json +18 -0
- package/public/r/liquid/field.json +25 -0
- package/public/r/liquid/form.json +25 -0
- package/public/r/liquid/header.json +19 -0
- package/public/r/liquid/hover-card.json +20 -0
- package/public/r/liquid/icon.json +24 -0
- package/public/r/liquid/init.json +34 -0
- package/public/r/liquid/input-group.json +20 -0
- package/public/r/liquid/input.json +18 -0
- package/public/r/liquid/invalid-controls.json +18 -0
- package/public/r/liquid/item.json +18 -0
- package/public/r/liquid/kbd.json +18 -0
- package/public/r/liquid/label.json +11 -0
- package/public/r/liquid/logo.json +18 -0
- package/public/r/liquid/marquee.json +25 -0
- package/public/r/liquid/native-select.json +11 -0
- package/public/r/liquid/navigation-menu.json +26 -0
- package/public/r/liquid/pagination.json +18 -0
- package/public/r/liquid/popover.json +21 -0
- package/public/r/liquid/popup.json +18 -0
- package/public/r/liquid/price.json +24 -0
- package/public/r/liquid/radio-group.json +20 -0
- package/public/r/liquid/rating.json +24 -0
- package/public/r/liquid/registry.json +1295 -0
- package/public/r/liquid/runtime.json +180 -0
- package/public/r/liquid/section.json +24 -0
- package/public/r/liquid/select.json +22 -0
- package/public/r/liquid/separator.json +18 -0
- package/public/r/liquid/sheet.json +20 -0
- package/public/r/liquid/skeleton.json +18 -0
- package/public/r/liquid/slider.json +19 -0
- package/public/r/liquid/spinner.json +18 -0
- package/public/r/liquid/switch.json +20 -0
- package/public/r/liquid/table.json +18 -0
- package/public/r/liquid/tabs.json +20 -0
- package/public/r/liquid/textarea.json +11 -0
- package/public/r/liquid/toast.json +27 -0
- package/public/r/liquid/toc.json +18 -0
- package/public/r/liquid/toggle-group.json +21 -0
- package/public/r/liquid/toggle.json +20 -0
- package/public/r/liquid/tooltip.json +20 -0
- package/public/r/liquid/triggers.json +18 -0
- package/public/r/liquid/typography.json +24 -0
- package/public/r/liquid/video.json +25 -0
- package/public/r/styles/base-luma/theme-toggle.json +1 -1
- package/public/r/styles/base-lyra/theme-toggle.json +1 -1
- package/public/r/styles/base-maia/theme-toggle.json +1 -1
- package/public/r/styles/base-mira/theme-toggle.json +1 -1
- package/public/r/styles/base-nova/theme-toggle.json +1 -1
- package/public/r/styles/base-rhea/theme-toggle.json +1 -1
- package/public/r/styles/base-sera/theme-toggle.json +1 -1
- package/public/r/styles/base-vega/theme-toggle.json +1 -1
- package/public/r/theme-toggle.json +1 -1
- package/src/components/ui/theme-toggle/theme-provider.astro +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Fulldev UI
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#286](https://github.com/fulldotdev/ui/pull/286) [`faea5fb`](https://github.com/fulldotdev/ui/commit/faea5fbe3ada71a1b40115156252847c95988e01) Thanks [@silveltman](https://github.com/silveltman)! - Add a native Liquid registry for Shopify themes with handwritten component styles, shared neutral tokens, data-slot ES modules and editor lifecycle. Universal shadcn items install directly into theme assets and snippets without Tailwind or a consuming build step.
|
|
8
|
+
|
|
9
|
+
Integrate Liquid as the third docs framework, with its own navigation, 58 component pages, native rendered previews, usage and installation examples, Markdown endpoints and AI indexes.
|
|
10
|
+
|
|
11
|
+
## 0.22.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#282](https://github.com/fulldotdev/ui/pull/282) [`068e1e9`](https://github.com/fulldotdev/ui/commit/068e1e977cbfa86eba6fdf843fffd36af979a94e) Thanks [@silveltman](https://github.com/silveltman)! - `ThemeProvider` keeps the theme across Astro `<ClientRouter />` navigation. Before, each navigation briefly showed the light theme and saved it as the visitor's choice, so a dark theme was lost.
|
|
16
|
+
|
|
3
17
|
## 0.22.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
# Fulldev UI
|
|
2
2
|
|
|
3
|
-
A shadcn-compatible
|
|
3
|
+
A shadcn-compatible UI library for Astro, React and native Shopify Liquid.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- **Vanilla Astro Components** — No framework dependencies, pure Astro components
|
|
8
8
|
- **shadcn Compatible** — Uses the shadcn CLI and registry system for easy installation
|
|
9
|
-
- **Content-First** — Built for content-driven websites with components like sections and
|
|
9
|
+
- **Content-First** — Built for content-driven websites with components like sections, typography and prices
|
|
10
10
|
- **100+ Components & Blocks** — Ready-to-use UI components and pre-built page blocks
|
|
11
11
|
- **Tailwind CSS v4** — Styled with the latest Tailwind CSS
|
|
12
12
|
- **TypeScript** — Full TypeScript support
|
|
13
13
|
- **React extension**: the Fulldev extras and blocks for official shadcn/ui React projects; see [react/README.md](react/README.md)
|
|
14
14
|
|
|
15
|
+
## Native Liquid
|
|
16
|
+
|
|
17
|
+
Install into a Shopify theme with `vp dlx shadcn@latest add https://ui.full.dev/r/liquid/components.json`, then render `ui` once in the layout head. Readable CSS, native ES modules and shared tokens, with no theme build step. See [Liquid](https://ui.full.dev/liquid/) and [liquid/README.md](liquid/README.md).
|
|
18
|
+
|
|
15
19
|
## Installation
|
|
16
20
|
|
|
17
21
|
### Prerequisites
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bejamas
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Fulldev, Sil Veltman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 shadcn
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/liquid/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Fulldev UI for Liquid
|
|
2
|
+
|
|
3
|
+
Native Shopify Liquid, readable CSS and ES modules. The consumer needs no Tailwind, framework, package manifest or build step. See the [installation and API guide](https://ui.full.dev/liquid/).
|
|
4
|
+
|
|
5
|
+
`components/` owns each component's styles and optional markup. Most use Shopify's `{% stylesheet %}` tag. Components with global classes, such as typography's `typeset`, keep their CSS in `styles/`, so Shopify Theme Check can resolve those classes across snippets. Shopify bundles the stylesheet tags; the source stays small and separate. Card parts remain native HTML, styled through `data-slot`.
|
|
6
|
+
|
|
7
|
+
`runtime/` owns initialization, native form fallbacks, asynchronous imports, cleanup, editor section events and block selection. It uses unmodified data-slot controllers in `vendor/`. `snippets/ui.liquid` loads the complete component set once. A theme with commerce adapters uses `runtime: false` and imports the lifecycle and control adapters into its existing initializer.
|
|
8
|
+
|
|
9
|
+
`registry.json` is the install contract. Every item is universal, every file has an explicit `~/assets/` or `~/snippets/` target, and dependencies use full Liquid registry URLs. Individual items install their prerequisites, including shared popup styles and runtime where needed. `components` is the complete set. `init` is tokens and base styles only.
|
|
10
|
+
|
|
11
|
+
Only shared neutral palette tokens, the part inventory, licenses and file hashes are generated by `scripts/registry-liquid.mjs`. CSS and Liquid are maintained by hand. The palette comes from `registry/styles/shadcn/themes.json`; `styles/primitives.css` holds native sizes, radii, shadows and media roles. Theme colors, settings, content, Shopify forms and layouts remain theme-owned. A consumer loads its scheme overrides after `ui`, and `custom.css` after `content_for_header`.
|
|
12
|
+
|
|
13
|
+
Run `pnpm registry:liquid` after a source change. Commit `public/r/liquid`, `contracts.json`, `styles/tokens.css`, `licenses.json` and `manifest.json`. `pnpm test:liquid` verifies the real CLI, the dependency closures, token parity and repeat installs. `pnpm test:browser` verifies a CLI-installed copy in Chromium, Firefox and WebKit, including native forms and editor lifecycle. The local renderer is LiquidJS with explicit Shopify filter substitutes. It does not verify a store's commerce objects or Shopify's stylesheet subsetting.
|
|
14
|
+
|
|
15
|
+
This first port follows Vega and the complete reusable storefront layer from `fulldotdev/liquid-template` at `e13fc25`. Sidebar, Resizable, Menubar, Scroll Area and React-only app components are outside this native storefront set. Shopify blocks, commerce adapters, translation keys and settings are not installed by the UI registry. The existing storefront media and card variants are additive to the shared component contract. Other Tailwind presets are not translated automatically.
|
|
16
|
+
|
|
17
|
+
Vendored modules stay byte-identical to data-slot 1.1.1. Update them together with `vendor.json` and verify the recorded SHA-256 hashes. Every installation includes `assets/ui-licenses.json`, including the original shadcn/ui and data-slot notices. The complete install includes `assets/ui-manifest.json`; consumers can check those hashes to detect drift. Store customizations belong in their own files.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI alert-dialog styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* A confirmation over the page, as Vega's alert dialog: a centered stack on phones and in the small
|
|
7
|
+
size; from 640px the default size aligns text left with the media beside the title and description. */
|
|
8
|
+
[data-slot='alert-dialog-overlay'] {
|
|
9
|
+
position: fixed;
|
|
10
|
+
inset: 0;
|
|
11
|
+
z-index: calc(var(--alert-dialog-overlay-stack-index, 0) * 2 + 100);
|
|
12
|
+
background: var(--scrim);
|
|
13
|
+
transition: opacity 100ms;
|
|
14
|
+
}
|
|
15
|
+
@supports (backdrop-filter: blur(4px)) {
|
|
16
|
+
[data-slot='alert-dialog-overlay'] {
|
|
17
|
+
backdrop-filter: blur(4px);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
[data-slot='alert-dialog-content'] {
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 50%;
|
|
23
|
+
left: 50%;
|
|
24
|
+
z-index: calc(var(--alert-dialog-content-stack-index, 0) * 2 + 101);
|
|
25
|
+
display: grid;
|
|
26
|
+
gap: calc(var(--spacing) * 6);
|
|
27
|
+
width: calc(100% - 2rem);
|
|
28
|
+
max-width: 20rem;
|
|
29
|
+
padding: calc(var(--spacing) * 6);
|
|
30
|
+
border-radius: var(--radius-xl);
|
|
31
|
+
background: var(--popover);
|
|
32
|
+
color: var(--popover-foreground);
|
|
33
|
+
font-size: 0.875rem;
|
|
34
|
+
box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent);
|
|
35
|
+
outline: none;
|
|
36
|
+
translate: -50% -50%;
|
|
37
|
+
transition:
|
|
38
|
+
opacity 100ms,
|
|
39
|
+
scale 100ms;
|
|
40
|
+
}
|
|
41
|
+
[data-slot='alert-dialog-overlay']:is([data-starting-style], [data-ending-style]) {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
[data-slot='alert-dialog-content']:is([data-starting-style], [data-ending-style]) {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
scale: 0.95;
|
|
47
|
+
}
|
|
48
|
+
[data-slot='alert-dialog-header'] {
|
|
49
|
+
display: grid;
|
|
50
|
+
grid-template-rows: auto 1fr;
|
|
51
|
+
place-items: center;
|
|
52
|
+
gap: calc(var(--spacing) * 1.5);
|
|
53
|
+
text-align: center;
|
|
54
|
+
}
|
|
55
|
+
[data-slot='alert-dialog-header']:has([data-slot='alert-dialog-media']) {
|
|
56
|
+
grid-template-rows: auto auto 1fr;
|
|
57
|
+
column-gap: calc(var(--spacing) * 6);
|
|
58
|
+
}
|
|
59
|
+
[data-slot='alert-dialog-media'] {
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
width: calc(var(--spacing) * 16);
|
|
64
|
+
height: calc(var(--spacing) * 16);
|
|
65
|
+
margin-bottom: calc(var(--spacing) * 2);
|
|
66
|
+
border-radius: var(--radius-md);
|
|
67
|
+
background: var(--muted);
|
|
68
|
+
}
|
|
69
|
+
[data-slot='alert-dialog-media'] > .icon {
|
|
70
|
+
width: calc(var(--spacing) * 8);
|
|
71
|
+
height: calc(var(--spacing) * 8);
|
|
72
|
+
}
|
|
73
|
+
[data-slot='alert-dialog-title'] {
|
|
74
|
+
font-size: 1.125rem;
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
letter-spacing: var(--tracking-normal);
|
|
77
|
+
}
|
|
78
|
+
[data-slot='alert-dialog-description'] {
|
|
79
|
+
color: var(--muted-foreground);
|
|
80
|
+
text-wrap: balance;
|
|
81
|
+
}
|
|
82
|
+
[data-slot='alert-dialog-footer'] {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column-reverse;
|
|
85
|
+
gap: calc(var(--spacing) * 2);
|
|
86
|
+
}
|
|
87
|
+
[data-slot='alert-dialog-content'][data-size='sm'] [data-slot='alert-dialog-footer'] {
|
|
88
|
+
display: grid;
|
|
89
|
+
grid-template-columns: 1fr 1fr;
|
|
90
|
+
}
|
|
91
|
+
@media (min-width: 640px) {
|
|
92
|
+
[data-slot='alert-dialog-content']:not([data-size='sm']) {
|
|
93
|
+
max-width: 32rem;
|
|
94
|
+
}
|
|
95
|
+
[data-slot='alert-dialog-content']:not([data-size='sm']) [data-slot='alert-dialog-header'] {
|
|
96
|
+
place-items: start;
|
|
97
|
+
text-align: left;
|
|
98
|
+
}
|
|
99
|
+
[data-slot='alert-dialog-content']:not([data-size='sm'])
|
|
100
|
+
[data-slot='alert-dialog-header']:has([data-slot='alert-dialog-media']) {
|
|
101
|
+
grid-template-rows: auto 1fr;
|
|
102
|
+
}
|
|
103
|
+
[data-slot='alert-dialog-content']:not([data-size='sm']) [data-slot='alert-dialog-media'] {
|
|
104
|
+
grid-row: span 2;
|
|
105
|
+
}
|
|
106
|
+
[data-slot='alert-dialog-content']:not([data-size='sm'])
|
|
107
|
+
[data-slot='alert-dialog-header']:has([data-slot='alert-dialog-media'])
|
|
108
|
+
> [data-slot='alert-dialog-title'] {
|
|
109
|
+
grid-column-start: 2;
|
|
110
|
+
}
|
|
111
|
+
[data-slot='alert-dialog-content']:not([data-size='sm']) [data-slot='alert-dialog-footer'] {
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
justify-content: flex-end;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI alert styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
[data-slot='alert'] {
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: calc(var(--spacing) * 0.5);
|
|
9
|
+
padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4);
|
|
10
|
+
border: 1px solid var(--border);
|
|
11
|
+
border-radius: var(--radius-lg);
|
|
12
|
+
background: var(--card);
|
|
13
|
+
color: var(--card-foreground);
|
|
14
|
+
font-size: 0.875rem;
|
|
15
|
+
text-align: left;
|
|
16
|
+
}
|
|
17
|
+
[data-slot='alert']:has(> .icon) {
|
|
18
|
+
grid-template-columns: auto 1fr;
|
|
19
|
+
column-gap: calc(var(--spacing) * 2.5);
|
|
20
|
+
}
|
|
21
|
+
[data-slot='alert'] > .icon {
|
|
22
|
+
grid-row: span 2;
|
|
23
|
+
width: calc(var(--spacing) * 4);
|
|
24
|
+
height: calc(var(--spacing) * 4);
|
|
25
|
+
translate: 0 calc(var(--spacing) * 0.5);
|
|
26
|
+
color: currentcolor;
|
|
27
|
+
}
|
|
28
|
+
[data-slot='alert'][data-variant='destructive'] {
|
|
29
|
+
color: var(--destructive);
|
|
30
|
+
}
|
|
31
|
+
[data-slot='alert-title'] {
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
}
|
|
34
|
+
[data-slot='alert-description'] {
|
|
35
|
+
color: var(--muted-foreground);
|
|
36
|
+
text-wrap: balance;
|
|
37
|
+
}
|
|
38
|
+
[data-slot='alert'][data-variant='destructive'] [data-slot='alert-description'] {
|
|
39
|
+
color: color-mix(in oklch, var(--destructive) 90%, transparent);
|
|
40
|
+
}
|
|
41
|
+
[data-slot='alert'] ul {
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding-left: calc(var(--spacing) * 4.5);
|
|
44
|
+
}
|
|
45
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI aspect-ratio styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* Media at a fixed ratio, covered by its image on a muted fill until it loads. The caller rounds it
|
|
7
|
+
as its Fulldev UI block does; framed adds the rounded border of Fulldev UI's video. */
|
|
8
|
+
[data-slot='aspect-ratio'] {
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
aspect-ratio: var(--ratio, 4 / 3);
|
|
12
|
+
background: var(--muted);
|
|
13
|
+
}
|
|
14
|
+
[data-slot='aspect-ratio'][data-variant='framed'] {
|
|
15
|
+
border: 1px solid var(--border);
|
|
16
|
+
border-radius: var(--radius-xl);
|
|
17
|
+
}
|
|
18
|
+
[data-slot='aspect-ratio'] > :is(img, svg, video, iframe, picture) {
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
object-fit: cover;
|
|
24
|
+
}
|
|
25
|
+
[data-slot='aspect-ratio'] > svg {
|
|
26
|
+
fill: color-mix(in oklch, var(--muted-foreground) 35%, transparent);
|
|
27
|
+
}
|
|
28
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI attachment styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* A file with its icon or preview, name and actions, as Fulldev UI's attachment. The caller sets
|
|
7
|
+
data-state: idle (dashed), uploading or processing (pulsing name), error, or done. */
|
|
8
|
+
[data-slot='attachment'] {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: calc(var(--spacing) * 2);
|
|
15
|
+
width: fit-content;
|
|
16
|
+
min-width: 10rem;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
border: 1px solid var(--border);
|
|
19
|
+
border-radius: var(--radius-xl);
|
|
20
|
+
background: var(--card);
|
|
21
|
+
color: var(--card-foreground);
|
|
22
|
+
font-size: 0.875rem;
|
|
23
|
+
transition: background-color 150ms;
|
|
24
|
+
}
|
|
25
|
+
[data-slot='attachment']:has([data-slot='attachment-content']) {
|
|
26
|
+
padding: calc(var(--spacing) * 2) calc(var(--spacing) * 2.5);
|
|
27
|
+
}
|
|
28
|
+
[data-slot='attachment']:focus-within {
|
|
29
|
+
box-shadow: 0 0 0 1px color-mix(in oklch, var(--ring) 50%, transparent);
|
|
30
|
+
}
|
|
31
|
+
[data-slot='attachment']:has([data-slot='attachment-trigger']):hover {
|
|
32
|
+
background: color-mix(in oklch, var(--muted) 50%, transparent);
|
|
33
|
+
}
|
|
34
|
+
[data-slot='attachment'][data-state='idle'] {
|
|
35
|
+
border-style: dashed;
|
|
36
|
+
}
|
|
37
|
+
[data-slot='attachment'][data-state='error'] {
|
|
38
|
+
border-color: color-mix(in oklch, var(--destructive) 30%, transparent);
|
|
39
|
+
}
|
|
40
|
+
[data-slot='attachment'][data-size='sm'] {
|
|
41
|
+
gap: calc(var(--spacing) * 2.5);
|
|
42
|
+
font-size: 0.75rem;
|
|
43
|
+
}
|
|
44
|
+
[data-slot='attachment'][data-size='sm']:has([data-slot='attachment-content']) {
|
|
45
|
+
padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2);
|
|
46
|
+
}
|
|
47
|
+
[data-slot='attachment-media'] {
|
|
48
|
+
position: relative;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
width: calc(var(--spacing) * 10);
|
|
54
|
+
aspect-ratio: 1;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
border-radius: var(--radius-lg);
|
|
57
|
+
background: var(--muted);
|
|
58
|
+
color: var(--foreground);
|
|
59
|
+
}
|
|
60
|
+
[data-slot='attachment-media'] > .icon {
|
|
61
|
+
width: calc(var(--spacing) * 4);
|
|
62
|
+
height: calc(var(--spacing) * 4);
|
|
63
|
+
}
|
|
64
|
+
[data-slot='attachment'][data-size='sm'] [data-slot='attachment-media'] {
|
|
65
|
+
width: calc(var(--spacing) * 8);
|
|
66
|
+
}
|
|
67
|
+
[data-slot='attachment'][data-state='error'] [data-slot='attachment-media'] {
|
|
68
|
+
background: color-mix(in oklch, var(--destructive) 10%, transparent);
|
|
69
|
+
color: var(--destructive);
|
|
70
|
+
}
|
|
71
|
+
[data-slot='attachment-content'] {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex: 1;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
line-height: 1.25;
|
|
77
|
+
}
|
|
78
|
+
[data-slot='attachment-title'],
|
|
79
|
+
[data-slot='attachment-description'] {
|
|
80
|
+
display: block;
|
|
81
|
+
max-width: 100%;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
}
|
|
86
|
+
[data-slot='attachment-title'] {
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
}
|
|
89
|
+
/* The skeleton's pulse reads at about 3.6:1 at 0.5; the name pulses to 0.65 to keep 4.5:1. */
|
|
90
|
+
[data-slot='attachment'][data-state='uploading'] [data-slot='attachment-title'] {
|
|
91
|
+
animation: attachment-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
92
|
+
}
|
|
93
|
+
@keyframes attachment-pulse {
|
|
94
|
+
50% {
|
|
95
|
+
opacity: 0.65;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
[data-slot='attachment-description'] {
|
|
99
|
+
margin-top: calc(var(--spacing) * 0.5);
|
|
100
|
+
color: var(--muted-foreground);
|
|
101
|
+
font-size: 0.75rem;
|
|
102
|
+
}
|
|
103
|
+
[data-slot='attachment'][data-state='error'] [data-slot='attachment-description'] {
|
|
104
|
+
color: var(--destructive);
|
|
105
|
+
}
|
|
106
|
+
[data-slot='attachment-actions'] {
|
|
107
|
+
position: relative;
|
|
108
|
+
z-index: 2;
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
align-items: center;
|
|
112
|
+
}
|
|
113
|
+
/* A link or button that covers the whole attachment, under its actions. */
|
|
114
|
+
[data-slot='attachment-trigger'] {
|
|
115
|
+
position: absolute;
|
|
116
|
+
inset: 0;
|
|
117
|
+
z-index: 1;
|
|
118
|
+
border-radius: inherit;
|
|
119
|
+
outline: none;
|
|
120
|
+
}
|
|
121
|
+
[data-slot='attachment-group'] {
|
|
122
|
+
display: flex;
|
|
123
|
+
gap: calc(var(--spacing) * 3);
|
|
124
|
+
min-width: 0;
|
|
125
|
+
overflow-x: auto;
|
|
126
|
+
overscroll-behavior-x: contain;
|
|
127
|
+
padding-block: var(--spacing);
|
|
128
|
+
scroll-snap-type: x mandatory;
|
|
129
|
+
}
|
|
130
|
+
[data-slot='attachment-group'] > [data-slot='attachment'] {
|
|
131
|
+
flex: none;
|
|
132
|
+
scroll-snap-align: start;
|
|
133
|
+
}
|
|
134
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI avatar styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
[data-slot='avatar'] {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: grid;
|
|
9
|
+
flex: none;
|
|
10
|
+
place-items: center;
|
|
11
|
+
width: calc(var(--spacing) * 8);
|
|
12
|
+
height: calc(var(--spacing) * 8);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
font-size: 0.75rem;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
}
|
|
18
|
+
[data-slot='avatar'][data-size='sm'] {
|
|
19
|
+
width: calc(var(--spacing) * 6);
|
|
20
|
+
height: calc(var(--spacing) * 6);
|
|
21
|
+
}
|
|
22
|
+
[data-slot='avatar'][data-size='lg'] {
|
|
23
|
+
width: calc(var(--spacing) * 10);
|
|
24
|
+
height: calc(var(--spacing) * 10);
|
|
25
|
+
font-size: 0.875rem;
|
|
26
|
+
}
|
|
27
|
+
[data-slot='avatar-image'] {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
object-fit: cover;
|
|
32
|
+
}
|
|
33
|
+
/* Overlapping avatars, each ringed with the background. */
|
|
34
|
+
[data-slot='avatar-group'] {
|
|
35
|
+
display: flex;
|
|
36
|
+
}
|
|
37
|
+
[data-slot='avatar-group'] > [data-slot='avatar'] {
|
|
38
|
+
box-shadow: 0 0 0 2px var(--background);
|
|
39
|
+
}
|
|
40
|
+
[data-slot='avatar-group'] > [data-slot='avatar'] + [data-slot='avatar'] {
|
|
41
|
+
margin-inline-start: calc(var(--spacing) * -2);
|
|
42
|
+
}
|
|
43
|
+
[data-slot='avatar-fallback'] {
|
|
44
|
+
display: grid;
|
|
45
|
+
place-items: center;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
background: var(--muted);
|
|
50
|
+
color: var(--muted-foreground);
|
|
51
|
+
}
|
|
52
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI badge styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* A label wider than its container wraps, as a button does; one line keeps Vega's 20px. */
|
|
7
|
+
[data-slot='badge'] {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
gap: var(--spacing);
|
|
13
|
+
width: fit-content;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
min-height: calc(var(--spacing) * 5);
|
|
16
|
+
padding: calc(var(--spacing) * 0.5) calc(var(--spacing) * 2);
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
border: 1px solid transparent;
|
|
19
|
+
border-radius: var(--radius-4xl);
|
|
20
|
+
background: var(--primary);
|
|
21
|
+
color: var(--primary-foreground);
|
|
22
|
+
font-size: 0.75rem;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
line-height: calc(var(--spacing) * 3.5);
|
|
25
|
+
text-align: center;
|
|
26
|
+
overflow-wrap: anywhere;
|
|
27
|
+
text-underline-offset: 4px;
|
|
28
|
+
transition:
|
|
29
|
+
background-color 150ms,
|
|
30
|
+
color 150ms;
|
|
31
|
+
}
|
|
32
|
+
[data-slot='badge'] > .icon {
|
|
33
|
+
width: calc(var(--spacing) * 3);
|
|
34
|
+
height: calc(var(--spacing) * 3);
|
|
35
|
+
}
|
|
36
|
+
a[data-slot='badge']:hover {
|
|
37
|
+
background: color-mix(in oklch, var(--primary) 80%, transparent);
|
|
38
|
+
}
|
|
39
|
+
a[data-slot='badge']:focus-visible {
|
|
40
|
+
border-color: var(--ring);
|
|
41
|
+
outline: none;
|
|
42
|
+
box-shadow: var(--focus-ring);
|
|
43
|
+
}
|
|
44
|
+
[data-slot='badge'][data-variant='secondary'] {
|
|
45
|
+
background: var(--secondary);
|
|
46
|
+
color: var(--secondary-foreground);
|
|
47
|
+
}
|
|
48
|
+
a[data-slot='badge'][data-variant='secondary']:hover {
|
|
49
|
+
background: color-mix(in oklch, var(--secondary) 80%, transparent);
|
|
50
|
+
}
|
|
51
|
+
[data-slot='badge'][data-variant='outline'] {
|
|
52
|
+
border-color: var(--border);
|
|
53
|
+
background: transparent;
|
|
54
|
+
color: var(--foreground);
|
|
55
|
+
}
|
|
56
|
+
a[data-slot='badge'][data-variant='outline']:hover {
|
|
57
|
+
background: var(--muted);
|
|
58
|
+
color: var(--muted-foreground);
|
|
59
|
+
}
|
|
60
|
+
[data-slot='badge'][data-variant='destructive'] {
|
|
61
|
+
background: light-dark(
|
|
62
|
+
color-mix(in oklch, var(--destructive) 10%, transparent),
|
|
63
|
+
color-mix(in oklch, var(--destructive) 20%, transparent)
|
|
64
|
+
);
|
|
65
|
+
color: var(--destructive);
|
|
66
|
+
}
|
|
67
|
+
a[data-slot='badge'][data-variant='destructive']:hover {
|
|
68
|
+
background: color-mix(in oklch, var(--destructive) 20%, transparent);
|
|
69
|
+
}
|
|
70
|
+
[data-slot='badge'][data-variant='ghost'] {
|
|
71
|
+
background: transparent;
|
|
72
|
+
color: var(--foreground);
|
|
73
|
+
}
|
|
74
|
+
a[data-slot='badge'][data-variant='ghost']:hover {
|
|
75
|
+
background: light-dark(var(--muted), color-mix(in oklch, var(--muted) 50%, transparent));
|
|
76
|
+
color: var(--muted-foreground);
|
|
77
|
+
}
|
|
78
|
+
[data-slot='badge'][data-variant='link'] {
|
|
79
|
+
background: transparent;
|
|
80
|
+
color: var(--primary);
|
|
81
|
+
}
|
|
82
|
+
a[data-slot='badge'][data-variant='link']:hover {
|
|
83
|
+
background: transparent;
|
|
84
|
+
text-decoration: underline;
|
|
85
|
+
}
|
|
86
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI banner styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* Fulldev UI's banner: inverted across the page, or a floating framed panel inset by the gutter. */
|
|
7
|
+
[data-slot='banner'] {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
width: 100%;
|
|
12
|
+
padding-block: 8px;
|
|
13
|
+
background: var(--foreground);
|
|
14
|
+
color: var(--background);
|
|
15
|
+
}
|
|
16
|
+
[data-slot='banner'][data-variant='floating'] {
|
|
17
|
+
width: calc(100% - 2 * var(--gutter));
|
|
18
|
+
max-width: calc(var(--container) - 2 * var(--gutter));
|
|
19
|
+
margin: 8px auto;
|
|
20
|
+
border: 1px solid var(--border);
|
|
21
|
+
border-radius: var(--radius-lg);
|
|
22
|
+
background: var(--background);
|
|
23
|
+
color: var(--foreground);
|
|
24
|
+
box-shadow: var(--shadow-sm);
|
|
25
|
+
}
|
|
26
|
+
[data-slot='banner-container'] {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: 16px;
|
|
30
|
+
width: 100%;
|
|
31
|
+
max-width: var(--container);
|
|
32
|
+
margin-inline: auto;
|
|
33
|
+
padding-inline: var(--gutter);
|
|
34
|
+
}
|
|
35
|
+
[data-slot='banner'] a:not([data-slot]) {
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
text-decoration: underline;
|
|
38
|
+
text-underline-offset: 4px;
|
|
39
|
+
}
|
|
40
|
+
{% endstylesheet %}
|