@zazz-ui/core 0.1.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 +19 -0
- package/LICENSE +21 -0
- package/README.md +61 -0
- package/dist/sri.json +75 -0
- package/dist/zazz.css +1 -0
- package/dist/zazz.js +1 -0
- package/examples/about.html +590 -0
- package/examples/components.html +1040 -0
- package/examples/forms.html +511 -0
- package/examples/index.html +268 -0
- package/examples/layout.html +320 -0
- package/examples/products.html +846 -0
- package/examples/responsive.html +339 -0
- package/package.json +85 -0
- package/src/base/_layers.css +12 -0
- package/src/base/_layout.css +568 -0
- package/src/base/_reset.css +515 -0
- package/src/base/_typography.css +495 -0
- package/src/base/_utilities.css +6628 -0
- package/src/base/_variables.css +682 -0
- package/src/base/_view-transitions.css +103 -0
- package/src/base/command-score.d.ts +12 -0
- package/src/base/command-score.d.ts.map +1 -0
- package/src/base/command-score.js +151 -0
- package/src/base/command-score.ts +192 -0
- package/src/base/dialog-lifecycle.d.ts +11 -0
- package/src/base/dialog-lifecycle.d.ts.map +1 -0
- package/src/base/dialog-lifecycle.js +65 -0
- package/src/base/dialog-lifecycle.ts +80 -0
- package/src/base/embla.d.ts +90 -0
- package/src/base/embla.d.ts.map +1 -0
- package/src/base/embla.js +643 -0
- package/src/base/embla.ts +791 -0
- package/src/base/hotkeys.d.ts +82 -0
- package/src/base/hotkeys.d.ts.map +1 -0
- package/src/base/hotkeys.js +141 -0
- package/src/base/hotkeys.ts +195 -0
- package/src/base/navigation.d.ts +2 -0
- package/src/base/navigation.d.ts.map +1 -0
- package/src/base/navigation.js +136 -0
- package/src/base/navigation.ts +151 -0
- package/src/base/reveal.d.ts +80 -0
- package/src/base/reveal.d.ts.map +1 -0
- package/src/base/reveal.js +305 -0
- package/src/base/reveal.ts +379 -0
- package/src/base/signals.d.ts +89 -0
- package/src/base/signals.d.ts.map +1 -0
- package/src/base/signals.js +134 -0
- package/src/base/signals.ts +164 -0
- package/src/base/typeahead.d.ts +105 -0
- package/src/base/typeahead.d.ts.map +1 -0
- package/src/base/typeahead.js +411 -0
- package/src/base/typeahead.ts +500 -0
- package/src/base/utils.d.ts +56 -0
- package/src/base/utils.d.ts.map +1 -0
- package/src/base/utils.js +88 -0
- package/src/base/utils.ts +98 -0
- package/src/base/zazz-element.d.ts +44 -0
- package/src/base/zazz-element.d.ts.map +1 -0
- package/src/base/zazz-element.js +59 -0
- package/src/base/zazz-element.ts +73 -0
- package/src/globals.d.ts +148 -0
- package/src/head.d.ts +95 -0
- package/src/head.d.ts.map +1 -0
- package/src/head.js +311 -0
- package/src/head.ts +433 -0
- package/src/index.css +71 -0
- package/src/index.d.ts +36 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +35 -0
- package/src/index.ts +36 -0
- package/src/manifest.d.ts +90 -0
- package/src/manifest.d.ts.map +1 -0
- package/src/manifest.js +614 -0
- package/src/manifest.ts +667 -0
- package/src/primitives/accordion/accordion.css +104 -0
- package/src/primitives/accordion/accordion.html +69 -0
- package/src/primitives/alert-dialog/alert-dialog.css +38 -0
- package/src/primitives/alert-dialog/alert-dialog.html +53 -0
- package/src/primitives/autocomplete/autocomplete-groups.html +77 -0
- package/src/primitives/autocomplete/autocomplete.css +114 -0
- package/src/primitives/autocomplete/autocomplete.d.ts +30 -0
- package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -0
- package/src/primitives/autocomplete/autocomplete.html +66 -0
- package/src/primitives/autocomplete/autocomplete.js +41 -0
- package/src/primitives/autocomplete/autocomplete.ts +46 -0
- package/src/primitives/avatar/avatar.html +44 -0
- package/src/primitives/badge/badge-icon.html +36 -0
- package/src/primitives/badge/badge.css +251 -0
- package/src/primitives/badge/badge.html +7 -0
- package/src/primitives/breadcrumbs/breadcrumbs.html +9 -0
- package/src/primitives/button/button-icon-only.html +84 -0
- package/src/primitives/button/button-icon.html +82 -0
- package/src/primitives/button/button.css +319 -0
- package/src/primitives/button/button.html +8 -0
- package/src/primitives/button-group/button-group-vertical.html +6 -0
- package/src/primitives/button-group/button-group.css +94 -0
- package/src/primitives/button-group/button-group.html +64 -0
- package/src/primitives/card/card-subgrid.html +118 -0
- package/src/primitives/card/card.html +53 -0
- package/src/primitives/carousel/carousel.css +61 -0
- package/src/primitives/carousel/carousel.d.ts +16 -0
- package/src/primitives/carousel/carousel.d.ts.map +1 -0
- package/src/primitives/carousel/carousel.html +315 -0
- package/src/primitives/carousel/carousel.js +73 -0
- package/src/primitives/carousel/carousel.ts +84 -0
- package/src/primitives/checkbox/checkbox-tasklist.html +71 -0
- package/src/primitives/checkbox/checkbox.css +82 -0
- package/src/primitives/checkbox/checkbox.d.ts +21 -0
- package/src/primitives/checkbox/checkbox.d.ts.map +1 -0
- package/src/primitives/checkbox/checkbox.html +17 -0
- package/src/primitives/checkbox/checkbox.js +190 -0
- package/src/primitives/checkbox/checkbox.ts +219 -0
- package/src/primitives/combobox/combobox-multiselect.html +91 -0
- package/src/primitives/combobox/combobox.css +307 -0
- package/src/primitives/combobox/combobox.d.ts +100 -0
- package/src/primitives/combobox/combobox.d.ts.map +1 -0
- package/src/primitives/combobox/combobox.html +73 -0
- package/src/primitives/combobox/combobox.js +503 -0
- package/src/primitives/combobox/combobox.ts +559 -0
- package/src/primitives/command/command-actions.d.ts +31 -0
- package/src/primitives/command/command-actions.d.ts.map +1 -0
- package/src/primitives/command/command-actions.html +89 -0
- package/src/primitives/command/command-actions.js +70 -0
- package/src/primitives/command/command-actions.ts +77 -0
- package/src/primitives/command/command-dialog.html +77 -0
- package/src/primitives/command/command.css +151 -0
- package/src/primitives/command/command.d.ts +52 -0
- package/src/primitives/command/command.d.ts.map +1 -0
- package/src/primitives/command/command.html +119 -0
- package/src/primitives/command/command.js +146 -0
- package/src/primitives/command/command.ts +157 -0
- package/src/primitives/dialog/dialog-with-form.html +200 -0
- package/src/primitives/dialog/dialog.css +229 -0
- package/src/primitives/dialog/dialog.html +90 -0
- package/src/primitives/fields/fields.css +278 -0
- package/src/primitives/input/input-icon-leading.html +19 -0
- package/src/primitives/input/input-icon-trailing.html +18 -0
- package/src/primitives/input/input.css +114 -0
- package/src/primitives/input/input.html +61 -0
- package/src/primitives/input-group/input-group-password-group.html +108 -0
- package/src/primitives/input-group/input-group.css +215 -0
- package/src/primitives/input-group/input-group.html +132 -0
- package/src/primitives/kbd/kbd-group.html +18 -0
- package/src/primitives/kbd/kbd.css +87 -0
- package/src/primitives/kbd/kbd.html +7 -0
- package/src/primitives/lightbox/lightbox.css +459 -0
- package/src/primitives/lightbox/lightbox.d.ts +7 -0
- package/src/primitives/lightbox/lightbox.d.ts.map +1 -0
- package/src/primitives/lightbox/lightbox.html +665 -0
- package/src/primitives/lightbox/lightbox.js +96 -0
- package/src/primitives/lightbox/lightbox.ts +113 -0
- package/src/primitives/menu/menu-interest.html +52 -0
- package/src/primitives/menu/menu.css +55 -0
- package/src/primitives/menu/menu.d.ts +38 -0
- package/src/primitives/menu/menu.d.ts.map +1 -0
- package/src/primitives/menu/menu.html +70 -0
- package/src/primitives/menu/menu.js +117 -0
- package/src/primitives/menu/menu.ts +131 -0
- package/src/primitives/menubar/menubar-help-search.html +103 -0
- package/src/primitives/menubar/menubar.html +166 -0
- package/src/primitives/meter/meter.css +178 -0
- package/src/primitives/meter/meter.html +38 -0
- package/src/primitives/mobile-menu/mobile-menu.css +145 -0
- package/src/primitives/mobile-menu/mobile-menu.html +614 -0
- package/src/primitives/navigation-menu/navigation-menu-featured.html +76 -0
- package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +158 -0
- package/src/primitives/navigation-menu/navigation-menu-interest.html +103 -0
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +141 -0
- package/src/primitives/navigation-menu/navigation-menu-simple.html +96 -0
- package/src/primitives/navigation-menu/navigation-menu.css +295 -0
- package/src/primitives/navigation-menu/navigation-menu.html +576 -0
- package/src/primitives/otp/otp.css +126 -0
- package/src/primitives/otp/otp.d.ts +89 -0
- package/src/primitives/otp/otp.d.ts.map +1 -0
- package/src/primitives/otp/otp.html +22 -0
- package/src/primitives/otp/otp.js +226 -0
- package/src/primitives/otp/otp.ts +279 -0
- package/src/primitives/password-group/password-group.css +238 -0
- package/src/primitives/password-group/password-group.d.ts +25 -0
- package/src/primitives/password-group/password-group.d.ts.map +1 -0
- package/src/primitives/password-group/password-group.html +109 -0
- package/src/primitives/password-group/password-group.js +76 -0
- package/src/primitives/password-group/password-group.ts +95 -0
- package/src/primitives/popover/popover.css +233 -0
- package/src/primitives/progress/progress-indeterminate.html +1 -0
- package/src/primitives/progress/progress.css +105 -0
- package/src/primitives/progress/progress.html +7 -0
- package/src/primitives/prose/prose.html +65 -0
- package/src/primitives/radio/radio.css +84 -0
- package/src/primitives/radio/radio.html +17 -0
- package/src/primitives/reveal/reveal.css +167 -0
- package/src/primitives/select/multiselect.d.ts +43 -0
- package/src/primitives/select/multiselect.d.ts.map +1 -0
- package/src/primitives/select/multiselect.js +147 -0
- package/src/primitives/select/multiselect.ts +188 -0
- package/src/primitives/select/select-align.html +49 -0
- package/src/primitives/select/select-multiple.html +12 -0
- package/src/primitives/select/select-sides.html +65 -0
- package/src/primitives/select/select.css +481 -0
- package/src/primitives/select/select.html +16 -0
- package/src/primitives/separator/separator.css +49 -0
- package/src/primitives/separator/separator.html +16 -0
- package/src/primitives/slider/slider.css +122 -0
- package/src/primitives/slider/slider.html +1 -0
- package/src/primitives/switch/switch.css +126 -0
- package/src/primitives/switch/switch.html +13 -0
- package/src/primitives/table/table-alternating.html +36 -0
- package/src/primitives/table/table-grid.html +30 -0
- package/src/primitives/table/table-size-sm.html +26 -0
- package/src/primitives/table/table.css +158 -0
- package/src/primitives/table/table.html +45 -0
- package/src/primitives/tabs/tabs.css +328 -0
- package/src/primitives/tabs/tabs.d.ts +35 -0
- package/src/primitives/tabs/tabs.d.ts.map +1 -0
- package/src/primitives/tabs/tabs.html +75 -0
- package/src/primitives/tabs/tabs.js +84 -0
- package/src/primitives/tabs/tabs.ts +93 -0
- package/src/primitives/textarea/textarea.css +78 -0
- package/src/primitives/textarea/textarea.html +10 -0
- package/src/primitives/toaster/toaster.css +309 -0
- package/src/primitives/toaster/toaster.d.ts +138 -0
- package/src/primitives/toaster/toaster.d.ts.map +1 -0
- package/src/primitives/toaster/toaster.html +77 -0
- package/src/primitives/toaster/toaster.js +736 -0
- package/src/primitives/toaster/toaster.ts +823 -0
- package/src/primitives/toggle/toggle.css +295 -0
- package/src/primitives/toggle/toggle.html +68 -0
- package/src/primitives/toggle-group/toggle-group-multiple.html +14 -0
- package/src/primitives/toggle-group/toggle-group-vertical.html +14 -0
- package/src/primitives/toggle-group/toggle-group.css +73 -0
- package/src/primitives/toggle-group/toggle-group.html +53 -0
- package/src/primitives/toolbar/toolbar.html +45 -0
- package/src/primitives/tooltip/tooltip-disabled.html +19 -0
- package/src/primitives/tooltip/tooltip-sides.html +57 -0
- package/src/primitives/tooltip/tooltip-with-kbd.html +31 -0
- package/src/primitives/tooltip/tooltip.css +235 -0
- package/src/primitives/tooltip/tooltip.html +12 -0
- package/src/primitives/utilities/aspect-ratio.html +17 -0
- package/src/primitives/utilities/basis.html +27 -0
- package/src/primitives/utilities/col-span.html +23 -0
- package/src/primitives/utilities/compose.html +19 -0
- package/src/primitives/utilities/flex-align.html +26 -0
- package/src/primitives/utilities/flex-direction.html +36 -0
- package/src/primitives/utilities/flex-grow.html +17 -0
- package/src/primitives/utilities/gap.html +62 -0
- package/src/primitives/utilities/grid-cols.html +20 -0
- package/src/primitives/utilities/grid-pile.html +5 -0
- package/src/primitives/utilities/grid-responsive.html +31 -0
- package/src/primitives/utilities/margin-auto.html +13 -0
- package/src/primitives/utilities/object-fit.html +41 -0
- package/src/primitives/utilities/order.html +17 -0
- package/src/primitives/utilities/overflow.html +26 -0
- package/src/primitives/utilities/padding-compose.html +23 -0
- package/src/primitives/utilities/padding.html +30 -0
- package/src/primitives/utilities/position.html +13 -0
- package/src/primitives/utilities/responsive-flex.html +22 -0
- package/src/primitives/utilities/responsive-grid.html +31 -0
- package/src/primitives/utilities/size.html +22 -0
- package/src/primitives/utilities/width.html +22 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<div class="flex flex-wrap items-start gap-md">
|
|
2
|
+
<div class="bg-muted rounded-md p-xs">
|
|
3
|
+
<div
|
|
4
|
+
class="grid place-items-center bg-primary text-primary-foreground rounded-sm p-sm text-xs font-strong aspect-square"
|
|
5
|
+
>
|
|
6
|
+
p-xs
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="bg-muted rounded-md p-sm">
|
|
10
|
+
<div
|
|
11
|
+
class="grid place-items-center bg-primary text-primary-foreground rounded-sm p-sm text-xs font-strong aspect-square"
|
|
12
|
+
>
|
|
13
|
+
p-sm
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="bg-muted rounded-md p-md">
|
|
17
|
+
<div
|
|
18
|
+
class="grid place-items-center bg-primary text-primary-foreground rounded-sm p-sm text-xs font-strong aspect-square"
|
|
19
|
+
>
|
|
20
|
+
p-md
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="bg-muted rounded-md p-lg">
|
|
24
|
+
<div
|
|
25
|
+
class="grid place-items-center bg-primary text-primary-foreground rounded-sm p-sm text-xs font-strong aspect-square"
|
|
26
|
+
>
|
|
27
|
+
p-lg
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div class="relative w-full max-w-xl h-md bg-muted rounded-lg p-md">
|
|
2
|
+
<span class="absolute top-sm left-sm ui-badge" data-variant="primary">top-sm left-sm</span>
|
|
3
|
+
<span class="absolute top-sm right-sm ui-badge" data-variant="muted">top-sm right-sm</span>
|
|
4
|
+
<span class="absolute bottom-sm left-sm ui-badge" data-variant="muted">bottom-sm left-sm</span>
|
|
5
|
+
<span class="absolute bottom-sm right-sm ui-badge" data-variant="primary"
|
|
6
|
+
>bottom-sm right-sm</span
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
class="absolute inset-md flex items-center justify-center border border-dashed rounded-md text-xs text-muted-foreground font-strong"
|
|
10
|
+
>
|
|
11
|
+
absolute inset-md
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div class="flex flex-col gap-xs w-full">
|
|
2
|
+
<span class="text-xs text-muted-foreground font-strong">
|
|
3
|
+
flex-col @sm:flex-row — stacks on a narrow container, rows out on a wide one. Expand to see it.
|
|
4
|
+
</span>
|
|
5
|
+
<div class="flex flex-col @sm:flex-row gap-md w-full">
|
|
6
|
+
<div
|
|
7
|
+
class="flex-1 bg-primary text-primary-foreground rounded-md p-md text-center text-sm font-strong"
|
|
8
|
+
>
|
|
9
|
+
Sidebar
|
|
10
|
+
</div>
|
|
11
|
+
<div
|
|
12
|
+
class="flex-1 bg-muted text-muted-foreground rounded-md p-md text-center text-sm font-strong"
|
|
13
|
+
>
|
|
14
|
+
Content
|
|
15
|
+
</div>
|
|
16
|
+
<div
|
|
17
|
+
class="flex-1 bg-muted text-muted-foreground rounded-md p-md text-center text-sm font-strong"
|
|
18
|
+
>
|
|
19
|
+
Aside
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="flex flex-col gap-xs w-full">
|
|
2
|
+
<span class="text-xs text-muted-foreground font-strong">
|
|
3
|
+
grid-cols-1 @xs:grid-cols-2 @sm:grid-cols-3 @lg:grid-cols-4 — expand to widen the container.
|
|
4
|
+
</span>
|
|
5
|
+
<div class="grid grid-cols-1 @xs:grid-cols-2 @sm:grid-cols-3 @lg:grid-cols-4 gap-md w-full">
|
|
6
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
7
|
+
1
|
|
8
|
+
</div>
|
|
9
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
10
|
+
2
|
|
11
|
+
</div>
|
|
12
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
13
|
+
3
|
|
14
|
+
</div>
|
|
15
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
16
|
+
4
|
|
17
|
+
</div>
|
|
18
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
19
|
+
5
|
|
20
|
+
</div>
|
|
21
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
22
|
+
6
|
|
23
|
+
</div>
|
|
24
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
25
|
+
7
|
|
26
|
+
</div>
|
|
27
|
+
<div class="bg-primary text-primary-foreground rounded-md p-sm text-center text-sm font-strong">
|
|
28
|
+
8
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div class="flex flex-wrap items-end gap-md w-full max-w-xl">
|
|
2
|
+
<div class="flex flex-col items-center gap-xs">
|
|
3
|
+
<div class="size-xs bg-primary rounded-sm"></div>
|
|
4
|
+
<span class="text-xs text-muted-foreground font-strong">size-xs</span>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="flex flex-col items-center gap-xs">
|
|
7
|
+
<div class="size-sm bg-primary rounded-sm"></div>
|
|
8
|
+
<span class="text-xs text-muted-foreground font-strong">size-sm</span>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="flex flex-col items-center gap-xs">
|
|
11
|
+
<div class="size-md bg-primary rounded-sm"></div>
|
|
12
|
+
<span class="text-xs text-muted-foreground font-strong">size-md</span>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="flex flex-col items-center gap-xs">
|
|
15
|
+
<div class="size-lg bg-primary rounded-md"></div>
|
|
16
|
+
<span class="text-xs text-muted-foreground font-strong">size-lg</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="flex flex-col items-center gap-xs">
|
|
19
|
+
<div class="size-xl bg-primary rounded-md"></div>
|
|
20
|
+
<span class="text-xs text-muted-foreground font-strong">size-xl</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div class="flex flex-col gap-sm w-full max-w-xl">
|
|
2
|
+
<div class="flex items-center gap-sm">
|
|
3
|
+
<div class="w-xs h-sm bg-primary rounded-sm"></div>
|
|
4
|
+
<span class="text-xs text-muted-foreground font-strong">w-xs</span>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="flex items-center gap-sm">
|
|
7
|
+
<div class="w-sm h-sm bg-primary rounded-sm"></div>
|
|
8
|
+
<span class="text-xs text-muted-foreground font-strong">w-sm</span>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="flex items-center gap-sm">
|
|
11
|
+
<div class="w-md h-sm bg-primary rounded-sm"></div>
|
|
12
|
+
<span class="text-xs text-muted-foreground font-strong">w-md</span>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="flex items-center gap-sm">
|
|
15
|
+
<div class="w-lg h-sm bg-primary rounded-sm"></div>
|
|
16
|
+
<span class="text-xs text-muted-foreground font-strong">w-lg</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="flex items-center gap-sm">
|
|
19
|
+
<div class="w-full h-sm bg-secondary rounded-sm"></div>
|
|
20
|
+
<span class="text-xs text-muted-foreground font-strong">w-full</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|