fulldev-ui 0.26.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/liquid/assets/data-slot-command.js +1 -1
- package/liquid/assets/data-slot-toast.js +1 -1
- package/liquid/assets/ui-carousel.css +32 -0
- package/liquid/assets/ui-carousel.js +29 -1
- package/liquid/assets/ui-controls.js +112 -0
- package/liquid/assets/ui-licenses.json +1 -1
- package/liquid/assets/ui-manifest.json +12 -10
- package/liquid/assets/ui-rating.css +5 -2
- package/liquid/contracts.json +14 -1
- package/liquid/examples/carousel.liquid +46 -0
- package/liquid/examples/dependencies.json +3 -1
- package/liquid/examples/number-field.liquid +67 -0
- package/liquid/examples/rating.liquid +11 -8
- package/liquid/examples/swatch.liquid +25 -0
- package/liquid/registry.json +39 -1
- package/liquid/snippets/ui-input-group.liquid +47 -8
- package/liquid/snippets/ui-input.liquid +3 -1
- package/liquid/snippets/ui-number-field.liquid +26 -0
- package/liquid/snippets/ui-swatch.liquid +19 -0
- package/liquid/snippets/ui.liquid +2 -0
- package/package.json +25 -25
- package/public/r/liquid/carousel.json +1 -1
- package/public/r/liquid/components.json +5 -3
- package/public/r/liquid/init.json +1 -1
- package/public/r/liquid/input-group.json +1 -1
- package/public/r/liquid/input.json +1 -1
- package/public/r/liquid/number-field.json +23 -0
- package/public/r/liquid/rating.json +1 -1
- package/public/r/liquid/registry.json +41 -1
- package/public/r/liquid/runtime.json +4 -4
- package/public/r/liquid/swatch.json +19 -0
- package/public/r/react/styles/base-luma/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-luma/components.json +3 -0
- package/public/r/react/styles/base-luma/number-field.json +26 -0
- package/public/r/react/styles/base-luma/registry.json +68 -0
- package/public/r/react/styles/base-luma/swatch.json +21 -0
- package/public/r/react/styles/base-lyra/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-lyra/components.json +3 -0
- package/public/r/react/styles/base-lyra/number-field.json +26 -0
- package/public/r/react/styles/base-lyra/registry.json +68 -0
- package/public/r/react/styles/base-lyra/swatch.json +21 -0
- package/public/r/react/styles/base-maia/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-maia/components.json +3 -0
- package/public/r/react/styles/base-maia/number-field.json +26 -0
- package/public/r/react/styles/base-maia/registry.json +68 -0
- package/public/r/react/styles/base-maia/swatch.json +21 -0
- package/public/r/react/styles/base-mira/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-mira/components.json +3 -0
- package/public/r/react/styles/base-mira/number-field.json +26 -0
- package/public/r/react/styles/base-mira/registry.json +68 -0
- package/public/r/react/styles/base-mira/swatch.json +21 -0
- package/public/r/react/styles/base-nova/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-nova/components.json +3 -0
- package/public/r/react/styles/base-nova/number-field.json +26 -0
- package/public/r/react/styles/base-nova/registry.json +68 -0
- package/public/r/react/styles/base-nova/swatch.json +21 -0
- package/public/r/react/styles/base-rhea/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-rhea/components.json +3 -0
- package/public/r/react/styles/base-rhea/number-field.json +26 -0
- package/public/r/react/styles/base-rhea/registry.json +68 -0
- package/public/r/react/styles/base-rhea/swatch.json +21 -0
- package/public/r/react/styles/base-sera/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-sera/components.json +3 -0
- package/public/r/react/styles/base-sera/number-field.json +26 -0
- package/public/r/react/styles/base-sera/registry.json +68 -0
- package/public/r/react/styles/base-sera/swatch.json +21 -0
- package/public/r/react/styles/base-vega/carousel-indicator.json +24 -0
- package/public/r/react/styles/base-vega/components.json +3 -0
- package/public/r/react/styles/base-vega/number-field.json +26 -0
- package/public/r/react/styles/base-vega/registry.json +68 -0
- package/public/r/react/styles/base-vega/swatch.json +21 -0
- package/public/r/styles/base-luma/accordion.json +1 -1
- package/public/r/styles/base-luma/alert-dialog.json +1 -1
- package/public/r/styles/base-luma/carousel.json +7 -2
- package/public/r/styles/base-luma/collapsible.json +1 -1
- package/public/r/styles/base-luma/combobox.json +2 -2
- package/public/r/styles/base-luma/command.json +2 -2
- package/public/r/styles/base-luma/components.json +2 -0
- package/public/r/styles/base-luma/dialog.json +1 -1
- package/public/r/styles/base-luma/drawer.json +1 -1
- package/public/r/styles/base-luma/dropdown-menu.json +1 -1
- package/public/r/styles/base-luma/hover-card.json +2 -2
- package/public/r/styles/base-luma/navigation-menu.json +1 -1
- package/public/r/styles/base-luma/number-field.json +44 -0
- package/public/r/styles/base-luma/popover.json +1 -1
- package/public/r/styles/base-luma/radio-group.json +1 -1
- package/public/r/styles/base-luma/registry.json +90 -26
- package/public/r/styles/base-luma/resizable.json +1 -1
- package/public/r/styles/base-luma/select.json +1 -1
- package/public/r/styles/base-luma/sheet.json +1 -1
- package/public/r/styles/base-luma/sidebar.json +1 -1
- package/public/r/styles/base-luma/slider.json +1 -1
- package/public/r/styles/base-luma/swatch.json +23 -0
- package/public/r/styles/base-luma/switch.json +1 -1
- package/public/r/styles/base-luma/tabs.json +1 -1
- package/public/r/styles/base-luma/toast.json +1 -1
- package/public/r/styles/base-luma/toggle-group.json +1 -1
- package/public/r/styles/base-luma/toggle.json +1 -1
- package/public/r/styles/base-luma/tooltip.json +1 -1
- package/public/r/styles/base-lyra/accordion.json +1 -1
- package/public/r/styles/base-lyra/alert-dialog.json +1 -1
- package/public/r/styles/base-lyra/carousel.json +7 -2
- package/public/r/styles/base-lyra/collapsible.json +1 -1
- package/public/r/styles/base-lyra/combobox.json +2 -2
- package/public/r/styles/base-lyra/command.json +2 -2
- package/public/r/styles/base-lyra/components.json +2 -0
- package/public/r/styles/base-lyra/dialog.json +1 -1
- package/public/r/styles/base-lyra/drawer.json +1 -1
- package/public/r/styles/base-lyra/dropdown-menu.json +1 -1
- package/public/r/styles/base-lyra/hover-card.json +2 -2
- package/public/r/styles/base-lyra/navigation-menu.json +1 -1
- package/public/r/styles/base-lyra/number-field.json +44 -0
- package/public/r/styles/base-lyra/popover.json +1 -1
- package/public/r/styles/base-lyra/radio-group.json +1 -1
- package/public/r/styles/base-lyra/registry.json +90 -26
- package/public/r/styles/base-lyra/resizable.json +1 -1
- package/public/r/styles/base-lyra/select.json +1 -1
- package/public/r/styles/base-lyra/sheet.json +1 -1
- package/public/r/styles/base-lyra/sidebar.json +1 -1
- package/public/r/styles/base-lyra/slider.json +1 -1
- package/public/r/styles/base-lyra/swatch.json +23 -0
- package/public/r/styles/base-lyra/switch.json +1 -1
- package/public/r/styles/base-lyra/tabs.json +1 -1
- package/public/r/styles/base-lyra/toast.json +1 -1
- package/public/r/styles/base-lyra/toggle-group.json +1 -1
- package/public/r/styles/base-lyra/toggle.json +1 -1
- package/public/r/styles/base-lyra/tooltip.json +1 -1
- package/public/r/styles/base-maia/accordion.json +1 -1
- package/public/r/styles/base-maia/alert-dialog.json +1 -1
- package/public/r/styles/base-maia/carousel.json +7 -2
- package/public/r/styles/base-maia/collapsible.json +1 -1
- package/public/r/styles/base-maia/combobox.json +2 -2
- package/public/r/styles/base-maia/command.json +2 -2
- package/public/r/styles/base-maia/components.json +2 -0
- package/public/r/styles/base-maia/dialog.json +1 -1
- package/public/r/styles/base-maia/drawer.json +1 -1
- package/public/r/styles/base-maia/dropdown-menu.json +1 -1
- package/public/r/styles/base-maia/hover-card.json +2 -2
- package/public/r/styles/base-maia/navigation-menu.json +1 -1
- package/public/r/styles/base-maia/number-field.json +44 -0
- package/public/r/styles/base-maia/popover.json +1 -1
- package/public/r/styles/base-maia/radio-group.json +1 -1
- package/public/r/styles/base-maia/registry.json +90 -26
- package/public/r/styles/base-maia/resizable.json +1 -1
- package/public/r/styles/base-maia/select.json +1 -1
- package/public/r/styles/base-maia/sheet.json +1 -1
- package/public/r/styles/base-maia/sidebar.json +1 -1
- package/public/r/styles/base-maia/slider.json +1 -1
- package/public/r/styles/base-maia/swatch.json +23 -0
- package/public/r/styles/base-maia/switch.json +1 -1
- package/public/r/styles/base-maia/tabs.json +1 -1
- package/public/r/styles/base-maia/toast.json +1 -1
- package/public/r/styles/base-maia/toggle-group.json +1 -1
- package/public/r/styles/base-maia/toggle.json +1 -1
- package/public/r/styles/base-maia/tooltip.json +1 -1
- package/public/r/styles/base-mira/accordion.json +1 -1
- package/public/r/styles/base-mira/alert-dialog.json +1 -1
- package/public/r/styles/base-mira/carousel.json +7 -2
- package/public/r/styles/base-mira/collapsible.json +1 -1
- package/public/r/styles/base-mira/combobox.json +2 -2
- package/public/r/styles/base-mira/command.json +2 -2
- package/public/r/styles/base-mira/components.json +2 -0
- package/public/r/styles/base-mira/dialog.json +1 -1
- package/public/r/styles/base-mira/drawer.json +1 -1
- package/public/r/styles/base-mira/dropdown-menu.json +1 -1
- package/public/r/styles/base-mira/hover-card.json +2 -2
- package/public/r/styles/base-mira/navigation-menu.json +1 -1
- package/public/r/styles/base-mira/number-field.json +44 -0
- package/public/r/styles/base-mira/popover.json +1 -1
- package/public/r/styles/base-mira/radio-group.json +1 -1
- package/public/r/styles/base-mira/registry.json +90 -26
- package/public/r/styles/base-mira/resizable.json +1 -1
- package/public/r/styles/base-mira/select.json +1 -1
- package/public/r/styles/base-mira/sheet.json +1 -1
- package/public/r/styles/base-mira/sidebar.json +1 -1
- package/public/r/styles/base-mira/slider.json +1 -1
- package/public/r/styles/base-mira/swatch.json +23 -0
- package/public/r/styles/base-mira/switch.json +1 -1
- package/public/r/styles/base-mira/tabs.json +1 -1
- package/public/r/styles/base-mira/toast.json +1 -1
- package/public/r/styles/base-mira/toggle-group.json +1 -1
- package/public/r/styles/base-mira/toggle.json +1 -1
- package/public/r/styles/base-mira/tooltip.json +1 -1
- package/public/r/styles/base-nova/accordion.json +1 -1
- package/public/r/styles/base-nova/alert-dialog.json +1 -1
- package/public/r/styles/base-nova/carousel.json +7 -2
- package/public/r/styles/base-nova/collapsible.json +1 -1
- package/public/r/styles/base-nova/combobox.json +2 -2
- package/public/r/styles/base-nova/command.json +2 -2
- package/public/r/styles/base-nova/components.json +2 -0
- package/public/r/styles/base-nova/dialog.json +1 -1
- package/public/r/styles/base-nova/drawer.json +1 -1
- package/public/r/styles/base-nova/dropdown-menu.json +1 -1
- package/public/r/styles/base-nova/hover-card.json +2 -2
- package/public/r/styles/base-nova/navigation-menu.json +1 -1
- package/public/r/styles/base-nova/number-field.json +44 -0
- package/public/r/styles/base-nova/popover.json +1 -1
- package/public/r/styles/base-nova/radio-group.json +1 -1
- package/public/r/styles/base-nova/registry.json +90 -26
- package/public/r/styles/base-nova/resizable.json +1 -1
- package/public/r/styles/base-nova/select.json +1 -1
- package/public/r/styles/base-nova/sheet.json +1 -1
- package/public/r/styles/base-nova/sidebar.json +1 -1
- package/public/r/styles/base-nova/slider.json +1 -1
- package/public/r/styles/base-nova/swatch.json +23 -0
- package/public/r/styles/base-nova/switch.json +1 -1
- package/public/r/styles/base-nova/tabs.json +1 -1
- package/public/r/styles/base-nova/toast.json +1 -1
- package/public/r/styles/base-nova/toggle-group.json +1 -1
- package/public/r/styles/base-nova/toggle.json +1 -1
- package/public/r/styles/base-nova/tooltip.json +1 -1
- package/public/r/styles/base-rhea/accordion.json +1 -1
- package/public/r/styles/base-rhea/alert-dialog.json +1 -1
- package/public/r/styles/base-rhea/carousel.json +7 -2
- package/public/r/styles/base-rhea/collapsible.json +1 -1
- package/public/r/styles/base-rhea/combobox.json +2 -2
- package/public/r/styles/base-rhea/command.json +2 -2
- package/public/r/styles/base-rhea/components.json +2 -0
- package/public/r/styles/base-rhea/dialog.json +1 -1
- package/public/r/styles/base-rhea/drawer.json +1 -1
- package/public/r/styles/base-rhea/dropdown-menu.json +1 -1
- package/public/r/styles/base-rhea/hover-card.json +2 -2
- package/public/r/styles/base-rhea/navigation-menu.json +1 -1
- package/public/r/styles/base-rhea/number-field.json +44 -0
- package/public/r/styles/base-rhea/popover.json +1 -1
- package/public/r/styles/base-rhea/radio-group.json +1 -1
- package/public/r/styles/base-rhea/registry.json +90 -26
- package/public/r/styles/base-rhea/resizable.json +1 -1
- package/public/r/styles/base-rhea/select.json +1 -1
- package/public/r/styles/base-rhea/sheet.json +1 -1
- package/public/r/styles/base-rhea/sidebar.json +1 -1
- package/public/r/styles/base-rhea/slider.json +1 -1
- package/public/r/styles/base-rhea/swatch.json +23 -0
- package/public/r/styles/base-rhea/switch.json +1 -1
- package/public/r/styles/base-rhea/tabs.json +1 -1
- package/public/r/styles/base-rhea/toast.json +1 -1
- package/public/r/styles/base-rhea/toggle-group.json +1 -1
- package/public/r/styles/base-rhea/toggle.json +1 -1
- package/public/r/styles/base-rhea/tooltip.json +1 -1
- package/public/r/styles/base-sera/accordion.json +1 -1
- package/public/r/styles/base-sera/alert-dialog.json +1 -1
- package/public/r/styles/base-sera/carousel.json +7 -2
- package/public/r/styles/base-sera/collapsible.json +1 -1
- package/public/r/styles/base-sera/combobox.json +2 -2
- package/public/r/styles/base-sera/command.json +2 -2
- package/public/r/styles/base-sera/components.json +2 -0
- package/public/r/styles/base-sera/dialog.json +1 -1
- package/public/r/styles/base-sera/drawer.json +1 -1
- package/public/r/styles/base-sera/dropdown-menu.json +1 -1
- package/public/r/styles/base-sera/hover-card.json +2 -2
- package/public/r/styles/base-sera/navigation-menu.json +1 -1
- package/public/r/styles/base-sera/number-field.json +44 -0
- package/public/r/styles/base-sera/popover.json +1 -1
- package/public/r/styles/base-sera/radio-group.json +1 -1
- package/public/r/styles/base-sera/registry.json +90 -26
- package/public/r/styles/base-sera/resizable.json +1 -1
- package/public/r/styles/base-sera/select.json +1 -1
- package/public/r/styles/base-sera/sheet.json +1 -1
- package/public/r/styles/base-sera/sidebar.json +1 -1
- package/public/r/styles/base-sera/slider.json +1 -1
- package/public/r/styles/base-sera/swatch.json +23 -0
- package/public/r/styles/base-sera/switch.json +1 -1
- package/public/r/styles/base-sera/tabs.json +1 -1
- package/public/r/styles/base-sera/toast.json +1 -1
- package/public/r/styles/base-sera/toggle-group.json +1 -1
- package/public/r/styles/base-sera/toggle.json +1 -1
- package/public/r/styles/base-sera/tooltip.json +1 -1
- package/public/r/styles/base-vega/accordion.json +1 -1
- package/public/r/styles/base-vega/alert-dialog.json +1 -1
- package/public/r/styles/base-vega/carousel.json +7 -2
- package/public/r/styles/base-vega/collapsible.json +1 -1
- package/public/r/styles/base-vega/combobox.json +2 -2
- package/public/r/styles/base-vega/command.json +2 -2
- package/public/r/styles/base-vega/components.json +2 -0
- package/public/r/styles/base-vega/dialog.json +1 -1
- package/public/r/styles/base-vega/drawer.json +1 -1
- package/public/r/styles/base-vega/dropdown-menu.json +1 -1
- package/public/r/styles/base-vega/hover-card.json +2 -2
- package/public/r/styles/base-vega/navigation-menu.json +1 -1
- package/public/r/styles/base-vega/number-field.json +44 -0
- package/public/r/styles/base-vega/popover.json +1 -1
- package/public/r/styles/base-vega/radio-group.json +1 -1
- package/public/r/styles/base-vega/registry.json +90 -26
- package/public/r/styles/base-vega/resizable.json +1 -1
- package/public/r/styles/base-vega/select.json +1 -1
- package/public/r/styles/base-vega/sheet.json +1 -1
- package/public/r/styles/base-vega/sidebar.json +1 -1
- package/public/r/styles/base-vega/slider.json +1 -1
- package/public/r/styles/base-vega/swatch.json +23 -0
- package/public/r/styles/base-vega/switch.json +1 -1
- package/public/r/styles/base-vega/tabs.json +1 -1
- package/public/r/styles/base-vega/toast.json +1 -1
- package/public/r/styles/base-vega/toggle-group.json +1 -1
- package/public/r/styles/base-vega/toggle.json +1 -1
- package/public/r/styles/base-vega/tooltip.json +1 -1
|
@@ -3,6 +3,71 @@
|
|
|
3
3
|
"name": "fulldev-react",
|
|
4
4
|
"homepage": "https://ui.full.dev/react/",
|
|
5
5
|
"items": [
|
|
6
|
+
{
|
|
7
|
+
"name": "carousel-indicator",
|
|
8
|
+
"type": "registry:ui",
|
|
9
|
+
"title": "Carousel Indicator",
|
|
10
|
+
"description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.",
|
|
11
|
+
"categories": [
|
|
12
|
+
"ui"
|
|
13
|
+
],
|
|
14
|
+
"docs": "https://ui.full.dev/react/components/carousel-indicator/",
|
|
15
|
+
"dependencies": [
|
|
16
|
+
"cn"
|
|
17
|
+
],
|
|
18
|
+
"registryDependencies": [
|
|
19
|
+
"carousel"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
{
|
|
23
|
+
"path": "src/components/ui/carousel-indicator.tsx",
|
|
24
|
+
"type": "registry:ui"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "number-field",
|
|
30
|
+
"type": "registry:ui",
|
|
31
|
+
"title": "Number Field",
|
|
32
|
+
"description": "A number input with decrement and increment buttons.",
|
|
33
|
+
"categories": [
|
|
34
|
+
"ui"
|
|
35
|
+
],
|
|
36
|
+
"docs": "https://ui.full.dev/react/components/number-field/",
|
|
37
|
+
"dependencies": [
|
|
38
|
+
"@base-ui/react",
|
|
39
|
+
"cn",
|
|
40
|
+
"lucide-react"
|
|
41
|
+
],
|
|
42
|
+
"registryDependencies": [
|
|
43
|
+
"input-group"
|
|
44
|
+
],
|
|
45
|
+
"files": [
|
|
46
|
+
{
|
|
47
|
+
"path": "src/components/ui/number-field.tsx",
|
|
48
|
+
"type": "registry:ui"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "swatch",
|
|
54
|
+
"type": "registry:ui",
|
|
55
|
+
"title": "Swatch",
|
|
56
|
+
"description": "A color or pattern beside an option or filter value.",
|
|
57
|
+
"categories": [
|
|
58
|
+
"ui"
|
|
59
|
+
],
|
|
60
|
+
"docs": "https://ui.full.dev/react/components/swatch/",
|
|
61
|
+
"dependencies": [
|
|
62
|
+
"cn"
|
|
63
|
+
],
|
|
64
|
+
"files": [
|
|
65
|
+
{
|
|
66
|
+
"path": "src/components/ui/swatch.tsx",
|
|
67
|
+
"type": "registry:ui"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
6
71
|
{
|
|
7
72
|
"name": "components",
|
|
8
73
|
"type": "registry:item",
|
|
@@ -11,14 +76,17 @@
|
|
|
11
76
|
"docs": "https://ui.full.dev/react/components/",
|
|
12
77
|
"registryDependencies": [
|
|
13
78
|
"@fulldev/banner",
|
|
79
|
+
"@fulldev/carousel-indicator",
|
|
14
80
|
"@fulldev/header",
|
|
15
81
|
"@fulldev/icon",
|
|
16
82
|
"@fulldev/layout",
|
|
17
83
|
"@fulldev/logo",
|
|
18
84
|
"@fulldev/marquee",
|
|
85
|
+
"@fulldev/number-field",
|
|
19
86
|
"@fulldev/price",
|
|
20
87
|
"@fulldev/rating",
|
|
21
88
|
"@fulldev/section",
|
|
89
|
+
"@fulldev/swatch",
|
|
22
90
|
"@fulldev/theme-toggle",
|
|
23
91
|
"@fulldev/toc",
|
|
24
92
|
"@fulldev/typography",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "swatch",
|
|
4
|
+
"title": "Swatch",
|
|
5
|
+
"description": "A color or pattern beside an option or filter value.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"cn"
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{
|
|
11
|
+
"path": "src/components/ui/swatch.tsx",
|
|
12
|
+
"content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n <span\n data-slot=\"swatch\"\n aria-hidden=\"true\"\n className={cn(\n \"rounded-full ring-1 ring-foreground/15 ring-inset inline-block size-4 shrink-0 bg-cover bg-center\",\n className\n )}\n style={{\n backgroundColor: color,\n backgroundImage: image ? `url(${JSON.stringify(image)})` : undefined,\n ...style,\n }}\n {...props}\n />\n )\n}\n\nexport { Swatch }\n",
|
|
13
|
+
"type": "registry:ui"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"docs": "https://ui.full.dev/react/components/swatch/",
|
|
17
|
+
"categories": [
|
|
18
|
+
"ui"
|
|
19
|
+
],
|
|
20
|
+
"type": "registry:ui"
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "carousel-indicator",
|
|
4
|
+
"title": "Carousel Indicator",
|
|
5
|
+
"description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"cn"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"carousel"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "src/components/ui/carousel-indicator.tsx",
|
|
15
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api, opts } = useCarousel()\n const [selected, setSelected] = React.useState(opts?.startIndex ?? 0)\n const [positions, setPositions] = React.useState<number>()\n const [inactive, setInactive] = React.useState(false)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => {\n setSelected(api.selectedScrollSnap())\n setPositions(api.scrollSnapList().length)\n setInactive(api.internalEngine().options.active === false)\n }\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = !inactive && selected === index\n // As in data-slot, an indicator without a scroll position, such as the last\n // thumbnails when several slides show, is hidden, and all are while Embla is\n // inactive at the current breakpoint.\n const hidden =\n inactive ||\n !Number.isInteger(index) ||\n (positions !== undefined && (index < 0 || index >= positions))\n\n return (\n <button\n type=\"button\"\n data-slot=\"carousel-indicator\"\n data-index={index}\n data-state={active ? \"active\" : \"inactive\"}\n aria-current={active ? \"true\" : undefined}\n aria-label={ariaLabel}\n hidden={hidden || undefined}\n className={cn(\n \"rounded-xl bg-muted outline-2 outline-offset-2 outline-transparent transition-[outline-color,box-shadow] focus-visible:ring-3 focus-visible:ring-ring/50 data-[state=active]:not-focus-visible:outline-foreground relative block shrink-0 cursor-pointer overflow-hidden [&>img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (event.defaultPrevented || hidden) return\n const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\")\n api?.scrollTo(index, reduce.matches)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n",
|
|
16
|
+
"type": "registry:ui"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"docs": "https://ui.full.dev/react/components/carousel-indicator/",
|
|
20
|
+
"categories": [
|
|
21
|
+
"ui"
|
|
22
|
+
],
|
|
23
|
+
"type": "registry:ui"
|
|
24
|
+
}
|
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
"description": "Installs every Fulldev UI React extra.",
|
|
6
6
|
"registryDependencies": [
|
|
7
7
|
"@fulldev/banner",
|
|
8
|
+
"@fulldev/carousel-indicator",
|
|
8
9
|
"@fulldev/header",
|
|
9
10
|
"@fulldev/icon",
|
|
10
11
|
"@fulldev/layout",
|
|
11
12
|
"@fulldev/logo",
|
|
12
13
|
"@fulldev/marquee",
|
|
14
|
+
"@fulldev/number-field",
|
|
13
15
|
"@fulldev/price",
|
|
14
16
|
"@fulldev/rating",
|
|
15
17
|
"@fulldev/section",
|
|
18
|
+
"@fulldev/swatch",
|
|
16
19
|
"@fulldev/theme-toggle",
|
|
17
20
|
"@fulldev/toc",
|
|
18
21
|
"@fulldev/typography",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "number-field",
|
|
4
|
+
"title": "Number Field",
|
|
5
|
+
"description": "A number input with decrement and increment buttons.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"@base-ui/react",
|
|
8
|
+
"cn",
|
|
9
|
+
"lucide-react"
|
|
10
|
+
],
|
|
11
|
+
"registryDependencies": [
|
|
12
|
+
"input-group"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "src/components/ui/number-field.tsx",
|
|
17
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: Omit<NumberFieldPrimitive.Root.Props, \"className\"> & {\n className?: string\n}) {\n return (\n <NumberFieldPrimitive.Root\n data-slot=\"number-field\"\n data-disabled={disabled ? \"true\" : undefined}\n role=\"group\"\n disabled={disabled}\n className={cn(\n \"border-input bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-9 rounded-4xl border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-2xl has-data-[align=block-start]:rounded-2xl has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[textarea]:rounded-xl has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: Omit<NumberFieldPrimitive.Input.Props, \"className\"> & {\n className?: string\n}) {\n return (\n <NumberFieldPrimitive.Input\n data-slot=\"input-group-control\"\n className={cn(\n \"border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 px-3 py-1 text-base transition-colors file:h-7 file:text-sm file:font-medium md:text-sm rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent w-full min-w-0 flex-1 text-center tabular-nums outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n <InputGroupAddon align=\"inline-start\">\n <NumberFieldPrimitive.Decrement\n data-slot=\"number-field-decrement\"\n aria-label={ariaLabel}\n render={\n <InputGroupButton\n size=\"icon-xs\"\n className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n />\n }\n {...props}\n >\n {children ?? <MinusIcon aria-hidden=\"true\" />}\n </NumberFieldPrimitive.Decrement>\n </InputGroupAddon>\n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n <InputGroupAddon align=\"inline-end\">\n <NumberFieldPrimitive.Increment\n data-slot=\"number-field-increment\"\n aria-label={ariaLabel}\n render={\n <InputGroupButton\n size=\"icon-xs\"\n className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n />\n }\n {...props}\n >\n {children ?? <PlusIcon aria-hidden=\"true\" />}\n </NumberFieldPrimitive.Increment>\n </InputGroupAddon>\n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n",
|
|
18
|
+
"type": "registry:ui"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"docs": "https://ui.full.dev/react/components/number-field/",
|
|
22
|
+
"categories": [
|
|
23
|
+
"ui"
|
|
24
|
+
],
|
|
25
|
+
"type": "registry:ui"
|
|
26
|
+
}
|
|
@@ -3,6 +3,71 @@
|
|
|
3
3
|
"name": "fulldev-react",
|
|
4
4
|
"homepage": "https://ui.full.dev/react/",
|
|
5
5
|
"items": [
|
|
6
|
+
{
|
|
7
|
+
"name": "carousel-indicator",
|
|
8
|
+
"type": "registry:ui",
|
|
9
|
+
"title": "Carousel Indicator",
|
|
10
|
+
"description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.",
|
|
11
|
+
"categories": [
|
|
12
|
+
"ui"
|
|
13
|
+
],
|
|
14
|
+
"docs": "https://ui.full.dev/react/components/carousel-indicator/",
|
|
15
|
+
"dependencies": [
|
|
16
|
+
"cn"
|
|
17
|
+
],
|
|
18
|
+
"registryDependencies": [
|
|
19
|
+
"carousel"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
{
|
|
23
|
+
"path": "src/components/ui/carousel-indicator.tsx",
|
|
24
|
+
"type": "registry:ui"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "number-field",
|
|
30
|
+
"type": "registry:ui",
|
|
31
|
+
"title": "Number Field",
|
|
32
|
+
"description": "A number input with decrement and increment buttons.",
|
|
33
|
+
"categories": [
|
|
34
|
+
"ui"
|
|
35
|
+
],
|
|
36
|
+
"docs": "https://ui.full.dev/react/components/number-field/",
|
|
37
|
+
"dependencies": [
|
|
38
|
+
"@base-ui/react",
|
|
39
|
+
"cn",
|
|
40
|
+
"lucide-react"
|
|
41
|
+
],
|
|
42
|
+
"registryDependencies": [
|
|
43
|
+
"input-group"
|
|
44
|
+
],
|
|
45
|
+
"files": [
|
|
46
|
+
{
|
|
47
|
+
"path": "src/components/ui/number-field.tsx",
|
|
48
|
+
"type": "registry:ui"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "swatch",
|
|
54
|
+
"type": "registry:ui",
|
|
55
|
+
"title": "Swatch",
|
|
56
|
+
"description": "A color or pattern beside an option or filter value.",
|
|
57
|
+
"categories": [
|
|
58
|
+
"ui"
|
|
59
|
+
],
|
|
60
|
+
"docs": "https://ui.full.dev/react/components/swatch/",
|
|
61
|
+
"dependencies": [
|
|
62
|
+
"cn"
|
|
63
|
+
],
|
|
64
|
+
"files": [
|
|
65
|
+
{
|
|
66
|
+
"path": "src/components/ui/swatch.tsx",
|
|
67
|
+
"type": "registry:ui"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
6
71
|
{
|
|
7
72
|
"name": "components",
|
|
8
73
|
"type": "registry:item",
|
|
@@ -11,14 +76,17 @@
|
|
|
11
76
|
"docs": "https://ui.full.dev/react/components/",
|
|
12
77
|
"registryDependencies": [
|
|
13
78
|
"@fulldev/banner",
|
|
79
|
+
"@fulldev/carousel-indicator",
|
|
14
80
|
"@fulldev/header",
|
|
15
81
|
"@fulldev/icon",
|
|
16
82
|
"@fulldev/layout",
|
|
17
83
|
"@fulldev/logo",
|
|
18
84
|
"@fulldev/marquee",
|
|
85
|
+
"@fulldev/number-field",
|
|
19
86
|
"@fulldev/price",
|
|
20
87
|
"@fulldev/rating",
|
|
21
88
|
"@fulldev/section",
|
|
89
|
+
"@fulldev/swatch",
|
|
22
90
|
"@fulldev/theme-toggle",
|
|
23
91
|
"@fulldev/toc",
|
|
24
92
|
"@fulldev/typography",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "swatch",
|
|
4
|
+
"title": "Swatch",
|
|
5
|
+
"description": "A color or pattern beside an option or filter value.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"cn"
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{
|
|
11
|
+
"path": "src/components/ui/swatch.tsx",
|
|
12
|
+
"content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n <span\n data-slot=\"swatch\"\n aria-hidden=\"true\"\n className={cn(\n \"rounded-full ring-1 ring-foreground/15 ring-inset inline-block size-4 shrink-0 bg-cover bg-center\",\n className\n )}\n style={{\n backgroundColor: color,\n backgroundImage: image ? `url(${JSON.stringify(image)})` : undefined,\n ...style,\n }}\n {...props}\n />\n )\n}\n\nexport { Swatch }\n",
|
|
13
|
+
"type": "registry:ui"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"docs": "https://ui.full.dev/react/components/swatch/",
|
|
17
|
+
"categories": [
|
|
18
|
+
"ui"
|
|
19
|
+
],
|
|
20
|
+
"type": "registry:ui"
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "carousel-indicator",
|
|
4
|
+
"title": "Carousel Indicator",
|
|
5
|
+
"description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"cn"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"carousel"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "src/components/ui/carousel-indicator.tsx",
|
|
15
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api, opts } = useCarousel()\n const [selected, setSelected] = React.useState(opts?.startIndex ?? 0)\n const [positions, setPositions] = React.useState<number>()\n const [inactive, setInactive] = React.useState(false)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => {\n setSelected(api.selectedScrollSnap())\n setPositions(api.scrollSnapList().length)\n setInactive(api.internalEngine().options.active === false)\n }\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = !inactive && selected === index\n // As in data-slot, an indicator without a scroll position, such as the last\n // thumbnails when several slides show, is hidden, and all are while Embla is\n // inactive at the current breakpoint.\n const hidden =\n inactive ||\n !Number.isInteger(index) ||\n (positions !== undefined && (index < 0 || index >= positions))\n\n return (\n <button\n type=\"button\"\n data-slot=\"carousel-indicator\"\n data-index={index}\n data-state={active ? \"active\" : \"inactive\"}\n aria-current={active ? \"true\" : undefined}\n aria-label={ariaLabel}\n hidden={hidden || undefined}\n className={cn(\n \"rounded-sm bg-muted outline-2 outline-offset-2 outline-transparent transition-[outline-color,box-shadow] focus-visible:ring-3 focus-visible:ring-ring/50 data-[state=active]:not-focus-visible:outline-foreground relative block shrink-0 cursor-pointer overflow-hidden [&>img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (event.defaultPrevented || hidden) return\n const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\")\n api?.scrollTo(index, reduce.matches)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n",
|
|
16
|
+
"type": "registry:ui"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"docs": "https://ui.full.dev/react/components/carousel-indicator/",
|
|
20
|
+
"categories": [
|
|
21
|
+
"ui"
|
|
22
|
+
],
|
|
23
|
+
"type": "registry:ui"
|
|
24
|
+
}
|
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
"description": "Installs every Fulldev UI React extra.",
|
|
6
6
|
"registryDependencies": [
|
|
7
7
|
"@fulldev/banner",
|
|
8
|
+
"@fulldev/carousel-indicator",
|
|
8
9
|
"@fulldev/header",
|
|
9
10
|
"@fulldev/icon",
|
|
10
11
|
"@fulldev/layout",
|
|
11
12
|
"@fulldev/logo",
|
|
12
13
|
"@fulldev/marquee",
|
|
14
|
+
"@fulldev/number-field",
|
|
13
15
|
"@fulldev/price",
|
|
14
16
|
"@fulldev/rating",
|
|
15
17
|
"@fulldev/section",
|
|
18
|
+
"@fulldev/swatch",
|
|
16
19
|
"@fulldev/theme-toggle",
|
|
17
20
|
"@fulldev/toc",
|
|
18
21
|
"@fulldev/typography",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "number-field",
|
|
4
|
+
"title": "Number Field",
|
|
5
|
+
"description": "A number input with decrement and increment buttons.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"@base-ui/react",
|
|
8
|
+
"cn",
|
|
9
|
+
"lucide-react"
|
|
10
|
+
],
|
|
11
|
+
"registryDependencies": [
|
|
12
|
+
"input-group"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "src/components/ui/number-field.tsx",
|
|
17
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: Omit<NumberFieldPrimitive.Root.Props, \"className\"> & {\n className?: string\n}) {\n return (\n <NumberFieldPrimitive.Root\n data-slot=\"number-field\"\n data-disabled={disabled ? \"true\" : undefined}\n role=\"group\"\n disabled={disabled}\n className={cn(\n \"border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot][aria-invalid=true]]:ring-2 has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: Omit<NumberFieldPrimitive.Input.Props, \"className\"> & {\n className?: string\n}) {\n return (\n <NumberFieldPrimitive.Input\n data-slot=\"input-group-control\"\n className={cn(\n \"border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium md:text-xs/relaxed rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent w-full min-w-0 flex-1 text-center tabular-nums outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n <InputGroupAddon align=\"inline-start\">\n <NumberFieldPrimitive.Decrement\n data-slot=\"number-field-decrement\"\n aria-label={ariaLabel}\n render={\n <InputGroupButton\n size=\"icon-xs\"\n className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n />\n }\n {...props}\n >\n {children ?? <MinusIcon aria-hidden=\"true\" />}\n </NumberFieldPrimitive.Decrement>\n </InputGroupAddon>\n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n <InputGroupAddon align=\"inline-end\">\n <NumberFieldPrimitive.Increment\n data-slot=\"number-field-increment\"\n aria-label={ariaLabel}\n render={\n <InputGroupButton\n size=\"icon-xs\"\n className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n />\n }\n {...props}\n >\n {children ?? <PlusIcon aria-hidden=\"true\" />}\n </NumberFieldPrimitive.Increment>\n </InputGroupAddon>\n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n",
|
|
18
|
+
"type": "registry:ui"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"docs": "https://ui.full.dev/react/components/number-field/",
|
|
22
|
+
"categories": [
|
|
23
|
+
"ui"
|
|
24
|
+
],
|
|
25
|
+
"type": "registry:ui"
|
|
26
|
+
}
|
|
@@ -3,6 +3,71 @@
|
|
|
3
3
|
"name": "fulldev-react",
|
|
4
4
|
"homepage": "https://ui.full.dev/react/",
|
|
5
5
|
"items": [
|
|
6
|
+
{
|
|
7
|
+
"name": "carousel-indicator",
|
|
8
|
+
"type": "registry:ui",
|
|
9
|
+
"title": "Carousel Indicator",
|
|
10
|
+
"description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.",
|
|
11
|
+
"categories": [
|
|
12
|
+
"ui"
|
|
13
|
+
],
|
|
14
|
+
"docs": "https://ui.full.dev/react/components/carousel-indicator/",
|
|
15
|
+
"dependencies": [
|
|
16
|
+
"cn"
|
|
17
|
+
],
|
|
18
|
+
"registryDependencies": [
|
|
19
|
+
"carousel"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
{
|
|
23
|
+
"path": "src/components/ui/carousel-indicator.tsx",
|
|
24
|
+
"type": "registry:ui"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "number-field",
|
|
30
|
+
"type": "registry:ui",
|
|
31
|
+
"title": "Number Field",
|
|
32
|
+
"description": "A number input with decrement and increment buttons.",
|
|
33
|
+
"categories": [
|
|
34
|
+
"ui"
|
|
35
|
+
],
|
|
36
|
+
"docs": "https://ui.full.dev/react/components/number-field/",
|
|
37
|
+
"dependencies": [
|
|
38
|
+
"@base-ui/react",
|
|
39
|
+
"cn",
|
|
40
|
+
"lucide-react"
|
|
41
|
+
],
|
|
42
|
+
"registryDependencies": [
|
|
43
|
+
"input-group"
|
|
44
|
+
],
|
|
45
|
+
"files": [
|
|
46
|
+
{
|
|
47
|
+
"path": "src/components/ui/number-field.tsx",
|
|
48
|
+
"type": "registry:ui"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "swatch",
|
|
54
|
+
"type": "registry:ui",
|
|
55
|
+
"title": "Swatch",
|
|
56
|
+
"description": "A color or pattern beside an option or filter value.",
|
|
57
|
+
"categories": [
|
|
58
|
+
"ui"
|
|
59
|
+
],
|
|
60
|
+
"docs": "https://ui.full.dev/react/components/swatch/",
|
|
61
|
+
"dependencies": [
|
|
62
|
+
"cn"
|
|
63
|
+
],
|
|
64
|
+
"files": [
|
|
65
|
+
{
|
|
66
|
+
"path": "src/components/ui/swatch.tsx",
|
|
67
|
+
"type": "registry:ui"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
6
71
|
{
|
|
7
72
|
"name": "components",
|
|
8
73
|
"type": "registry:item",
|
|
@@ -11,14 +76,17 @@
|
|
|
11
76
|
"docs": "https://ui.full.dev/react/components/",
|
|
12
77
|
"registryDependencies": [
|
|
13
78
|
"@fulldev/banner",
|
|
79
|
+
"@fulldev/carousel-indicator",
|
|
14
80
|
"@fulldev/header",
|
|
15
81
|
"@fulldev/icon",
|
|
16
82
|
"@fulldev/layout",
|
|
17
83
|
"@fulldev/logo",
|
|
18
84
|
"@fulldev/marquee",
|
|
85
|
+
"@fulldev/number-field",
|
|
19
86
|
"@fulldev/price",
|
|
20
87
|
"@fulldev/rating",
|
|
21
88
|
"@fulldev/section",
|
|
89
|
+
"@fulldev/swatch",
|
|
22
90
|
"@fulldev/theme-toggle",
|
|
23
91
|
"@fulldev/toc",
|
|
24
92
|
"@fulldev/typography",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "swatch",
|
|
4
|
+
"title": "Swatch",
|
|
5
|
+
"description": "A color or pattern beside an option or filter value.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"cn"
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{
|
|
11
|
+
"path": "src/components/ui/swatch.tsx",
|
|
12
|
+
"content": "import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction Swatch({\n className,\n color,\n image,\n style,\n ...props\n}: React.ComponentProps<\"span\"> & {\n color?: string\n image?: string\n}) {\n return (\n <span\n data-slot=\"swatch\"\n aria-hidden=\"true\"\n className={cn(\n \"rounded-full ring-1 ring-foreground/15 ring-inset inline-block size-4 shrink-0 bg-cover bg-center\",\n className\n )}\n style={{\n backgroundColor: color,\n backgroundImage: image ? `url(${JSON.stringify(image)})` : undefined,\n ...style,\n }}\n {...props}\n />\n )\n}\n\nexport { Swatch }\n",
|
|
13
|
+
"type": "registry:ui"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"docs": "https://ui.full.dev/react/components/swatch/",
|
|
17
|
+
"categories": [
|
|
18
|
+
"ui"
|
|
19
|
+
],
|
|
20
|
+
"type": "registry:ui"
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "carousel-indicator",
|
|
4
|
+
"title": "Carousel Indicator",
|
|
5
|
+
"description": "A thumbnail or dot that shows one slide of the shadcn/ui carousel and marks the current one.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"cn"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"carousel"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "src/components/ui/carousel-indicator.tsx",
|
|
15
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"cn\"\n\nimport { useCarousel } from \"@/components/ui/carousel\"\n\nfunction CarouselIndicator({\n className,\n index,\n onClick,\n \"aria-label\": ariaLabel = `Go to slide ${index + 1}`,\n ...props\n}: React.ComponentProps<\"button\"> & {\n index: number\n}) {\n const { api, opts } = useCarousel()\n const [selected, setSelected] = React.useState(opts?.startIndex ?? 0)\n const [positions, setPositions] = React.useState<number>()\n const [inactive, setInactive] = React.useState(false)\n\n React.useEffect(() => {\n if (!api) return\n const update = () => {\n setSelected(api.selectedScrollSnap())\n setPositions(api.scrollSnapList().length)\n setInactive(api.internalEngine().options.active === false)\n }\n update()\n api.on(\"select\", update)\n api.on(\"reInit\", update)\n return () => {\n api.off(\"select\", update)\n api.off(\"reInit\", update)\n }\n }, [api])\n\n const active = !inactive && selected === index\n // As in data-slot, an indicator without a scroll position, such as the last\n // thumbnails when several slides show, is hidden, and all are while Embla is\n // inactive at the current breakpoint.\n const hidden =\n inactive ||\n !Number.isInteger(index) ||\n (positions !== undefined && (index < 0 || index >= positions))\n\n return (\n <button\n type=\"button\"\n data-slot=\"carousel-indicator\"\n data-index={index}\n data-state={active ? \"active\" : \"inactive\"}\n aria-current={active ? \"true\" : undefined}\n aria-label={ariaLabel}\n hidden={hidden || undefined}\n className={cn(\n \"rounded-md bg-muted outline-2 outline-offset-2 outline-transparent transition-[outline-color,box-shadow] focus-visible:ring-3 focus-visible:ring-ring/50 data-[state=active]:not-focus-visible:outline-foreground relative block shrink-0 cursor-pointer overflow-hidden [&>img]:size-full [&>img]:object-cover\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n if (event.defaultPrevented || hidden) return\n const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\")\n api?.scrollTo(index, reduce.matches)\n }}\n {...props}\n />\n )\n}\n\nexport { CarouselIndicator }\n",
|
|
16
|
+
"type": "registry:ui"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"docs": "https://ui.full.dev/react/components/carousel-indicator/",
|
|
20
|
+
"categories": [
|
|
21
|
+
"ui"
|
|
22
|
+
],
|
|
23
|
+
"type": "registry:ui"
|
|
24
|
+
}
|
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
"description": "Installs every Fulldev UI React extra.",
|
|
6
6
|
"registryDependencies": [
|
|
7
7
|
"@fulldev/banner",
|
|
8
|
+
"@fulldev/carousel-indicator",
|
|
8
9
|
"@fulldev/header",
|
|
9
10
|
"@fulldev/icon",
|
|
10
11
|
"@fulldev/layout",
|
|
11
12
|
"@fulldev/logo",
|
|
12
13
|
"@fulldev/marquee",
|
|
14
|
+
"@fulldev/number-field",
|
|
13
15
|
"@fulldev/price",
|
|
14
16
|
"@fulldev/rating",
|
|
15
17
|
"@fulldev/section",
|
|
18
|
+
"@fulldev/swatch",
|
|
16
19
|
"@fulldev/theme-toggle",
|
|
17
20
|
"@fulldev/toc",
|
|
18
21
|
"@fulldev/typography",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "number-field",
|
|
4
|
+
"title": "Number Field",
|
|
5
|
+
"description": "A number input with decrement and increment buttons.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"@base-ui/react",
|
|
8
|
+
"cn",
|
|
9
|
+
"lucide-react"
|
|
10
|
+
],
|
|
11
|
+
"registryDependencies": [
|
|
12
|
+
"input-group"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "src/components/ui/number-field.tsx",
|
|
17
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { NumberField as NumberFieldPrimitive } from \"@base-ui/react/number-field\"\nimport { cn } from \"cn\"\nimport { MinusIcon, PlusIcon } from \"lucide-react\"\n\nimport { InputGroupAddon, InputGroupButton } from \"@/components/ui/input-group\"\n\nfunction NumberField({\n className,\n disabled,\n ...props\n}: Omit<NumberFieldPrimitive.Root.Props, \"className\"> & {\n className?: string\n}) {\n return (\n <NumberFieldPrimitive.Root\n data-slot=\"number-field\"\n data-disabled={disabled ? \"true\" : undefined}\n role=\"group\"\n disabled={disabled}\n className={cn(\n \"border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[[data-slot=input-group-control]:disabled]:bg-input/50 dark:has-[[data-slot=input-group-control]:disabled]:bg-input/80 h-8 rounded-lg border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5 group/input-group relative flex w-32 min-w-0 items-center outline-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldInput({\n className,\n ...props\n}: Omit<NumberFieldPrimitive.Input.Props, \"className\"> & {\n className?: string\n}) {\n return (\n <NumberFieldPrimitive.Input\n data-slot=\"input-group-control\"\n className={cn(\n \"border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium md:text-sm rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent w-full min-w-0 flex-1 text-center tabular-nums outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction NumberFieldDecrement({\n children,\n \"aria-label\": ariaLabel = \"Decrease\",\n ...props\n}: NumberFieldPrimitive.Decrement.Props) {\n return (\n <InputGroupAddon align=\"inline-start\">\n <NumberFieldPrimitive.Decrement\n data-slot=\"number-field-decrement\"\n aria-label={ariaLabel}\n render={\n <InputGroupButton\n size=\"icon-xs\"\n className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n />\n }\n {...props}\n >\n {children ?? <MinusIcon aria-hidden=\"true\" />}\n </NumberFieldPrimitive.Decrement>\n </InputGroupAddon>\n )\n}\n\nfunction NumberFieldIncrement({\n children,\n \"aria-label\": ariaLabel = \"Increase\",\n ...props\n}: NumberFieldPrimitive.Increment.Props) {\n return (\n <InputGroupAddon align=\"inline-end\">\n <NumberFieldPrimitive.Increment\n data-slot=\"number-field-increment\"\n aria-label={ariaLabel}\n render={\n <InputGroupButton\n size=\"icon-xs\"\n className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n />\n }\n {...props}\n >\n {children ?? <PlusIcon aria-hidden=\"true\" />}\n </NumberFieldPrimitive.Increment>\n </InputGroupAddon>\n )\n}\n\nexport {\n NumberField,\n NumberFieldDecrement,\n NumberFieldIncrement,\n NumberFieldInput,\n}\n",
|
|
18
|
+
"type": "registry:ui"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"docs": "https://ui.full.dev/react/components/number-field/",
|
|
22
|
+
"categories": [
|
|
23
|
+
"ui"
|
|
24
|
+
],
|
|
25
|
+
"type": "registry:ui"
|
|
26
|
+
}
|