fulldev-ui 0.22.3 → 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 +8 -0
- package/README.md +5 -1
- 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 +14 -8
- 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
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI base styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
*,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
border-color: var(--border);
|
|
11
|
+
}
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
min-height: 100svh;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
background: var(--background);
|
|
18
|
+
color: var(--foreground);
|
|
19
|
+
font: 16px/1.5 var(--font-sans);
|
|
20
|
+
-webkit-font-smoothing: antialiased;
|
|
21
|
+
text-rendering: optimizelegibility;
|
|
22
|
+
}
|
|
23
|
+
main {
|
|
24
|
+
flex: 1;
|
|
25
|
+
}
|
|
26
|
+
img,
|
|
27
|
+
video,
|
|
28
|
+
svg,
|
|
29
|
+
iframe {
|
|
30
|
+
max-width: 100%;
|
|
31
|
+
}
|
|
32
|
+
img,
|
|
33
|
+
video,
|
|
34
|
+
svg {
|
|
35
|
+
display: block;
|
|
36
|
+
height: auto;
|
|
37
|
+
}
|
|
38
|
+
a {
|
|
39
|
+
color: inherit;
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
text-underline-offset: 4px;
|
|
42
|
+
}
|
|
43
|
+
button,
|
|
44
|
+
input,
|
|
45
|
+
select,
|
|
46
|
+
textarea {
|
|
47
|
+
font: inherit;
|
|
48
|
+
color: inherit;
|
|
49
|
+
}
|
|
50
|
+
button,
|
|
51
|
+
summary {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
button {
|
|
55
|
+
border: 0;
|
|
56
|
+
background: none;
|
|
57
|
+
padding: 0;
|
|
58
|
+
border-radius: 0;
|
|
59
|
+
}
|
|
60
|
+
:focus-visible {
|
|
61
|
+
outline: 2px solid color-mix(in oklch, var(--ring) 50%, transparent);
|
|
62
|
+
outline-offset: 2px;
|
|
63
|
+
}
|
|
64
|
+
[hidden] {
|
|
65
|
+
display: none !important;
|
|
66
|
+
}
|
|
67
|
+
h1,
|
|
68
|
+
h2,
|
|
69
|
+
h3,
|
|
70
|
+
h4,
|
|
71
|
+
p,
|
|
72
|
+
figure,
|
|
73
|
+
blockquote,
|
|
74
|
+
fieldset,
|
|
75
|
+
dl,
|
|
76
|
+
dd {
|
|
77
|
+
margin: 0;
|
|
78
|
+
}
|
|
79
|
+
fieldset {
|
|
80
|
+
border: 0;
|
|
81
|
+
padding: 0;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
/* Lists that a part or layout styles with a class; merchant rich text keeps its markers. */
|
|
85
|
+
:where(ul, ol)[class] {
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: 0;
|
|
88
|
+
list-style: none;
|
|
89
|
+
}
|
|
90
|
+
legend {
|
|
91
|
+
padding: 0;
|
|
92
|
+
}
|
|
93
|
+
p,
|
|
94
|
+
h1,
|
|
95
|
+
h2,
|
|
96
|
+
h3,
|
|
97
|
+
h4,
|
|
98
|
+
a,
|
|
99
|
+
li {
|
|
100
|
+
overflow-wrap: anywhere;
|
|
101
|
+
}
|
|
102
|
+
@media (prefers-reduced-motion: reduce) {
|
|
103
|
+
*,
|
|
104
|
+
*::before,
|
|
105
|
+
*::after {
|
|
106
|
+
scroll-behavior: auto !important;
|
|
107
|
+
animation-duration: 0.01ms !important;
|
|
108
|
+
animation-iteration-count: 1 !important;
|
|
109
|
+
transition-duration: 0.01ms !important;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI breadcrumb styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* The breadcrumb nav; long page titles wrap inside it. */
|
|
7
|
+
[data-slot='breadcrumb'] {
|
|
8
|
+
min-width: 0;
|
|
9
|
+
overflow-wrap: anywhere;
|
|
10
|
+
}
|
|
11
|
+
[data-slot='breadcrumb-list'] {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: calc(var(--spacing) * 1.5);
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
19
|
+
font-size: 0.875rem;
|
|
20
|
+
color: var(--muted-foreground);
|
|
21
|
+
overflow-wrap: anywhere;
|
|
22
|
+
}
|
|
23
|
+
@media (min-width: 640px) {
|
|
24
|
+
[data-slot='breadcrumb-list'] {
|
|
25
|
+
gap: calc(var(--spacing) * 2.5);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
[data-slot='breadcrumb-item'] {
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: calc(var(--spacing) * 1.5);
|
|
32
|
+
}
|
|
33
|
+
[data-slot='breadcrumb-link'] {
|
|
34
|
+
transition: color 150ms;
|
|
35
|
+
}
|
|
36
|
+
[data-slot='breadcrumb-link']:hover {
|
|
37
|
+
color: var(--foreground);
|
|
38
|
+
}
|
|
39
|
+
[data-slot='breadcrumb-page'] {
|
|
40
|
+
color: var(--foreground);
|
|
41
|
+
}
|
|
42
|
+
[data-slot='breadcrumb-separator'] > .icon {
|
|
43
|
+
width: calc(var(--spacing) * 3.5);
|
|
44
|
+
height: calc(var(--spacing) * 3.5);
|
|
45
|
+
}
|
|
46
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI button-group styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
[data-slot='button-group'] {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: stretch;
|
|
9
|
+
width: fit-content;
|
|
10
|
+
}
|
|
11
|
+
[data-slot='button-group'] > :focus-visible {
|
|
12
|
+
position: relative;
|
|
13
|
+
z-index: 1;
|
|
14
|
+
}
|
|
15
|
+
[data-slot='button-group'] > input {
|
|
16
|
+
flex: 1;
|
|
17
|
+
}
|
|
18
|
+
[data-slot='button-group']:not([data-orientation='vertical']) > [data-slot]:not(:last-child) {
|
|
19
|
+
border-top-right-radius: 0;
|
|
20
|
+
border-bottom-right-radius: 0;
|
|
21
|
+
}
|
|
22
|
+
[data-slot='button-group']:not([data-orientation='vertical']) > [data-slot] ~ [data-slot] {
|
|
23
|
+
border-left-width: 0;
|
|
24
|
+
border-top-left-radius: 0;
|
|
25
|
+
border-bottom-left-radius: 0;
|
|
26
|
+
}
|
|
27
|
+
[data-slot='button-group'][data-orientation='vertical'] {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
}
|
|
30
|
+
[data-slot='button-group'][data-orientation='vertical'] > [data-slot]:not(:last-child) {
|
|
31
|
+
border-bottom-right-radius: 0;
|
|
32
|
+
border-bottom-left-radius: 0;
|
|
33
|
+
}
|
|
34
|
+
[data-slot='button-group'][data-orientation='vertical'] > [data-slot] ~ [data-slot] {
|
|
35
|
+
border-top-width: 0;
|
|
36
|
+
border-top-left-radius: 0;
|
|
37
|
+
border-top-right-radius: 0;
|
|
38
|
+
}
|
|
39
|
+
[data-slot='button-group-text'] {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: calc(var(--spacing) * 2);
|
|
43
|
+
padding-inline: calc(var(--spacing) * 2.5);
|
|
44
|
+
border: 1px solid var(--border);
|
|
45
|
+
border-radius: var(--radius-md);
|
|
46
|
+
background: var(--muted);
|
|
47
|
+
font-size: 0.875rem;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
box-shadow: var(--shadow-xs);
|
|
50
|
+
}
|
|
51
|
+
[data-slot='button-group-separator'] {
|
|
52
|
+
align-self: stretch;
|
|
53
|
+
width: 1px;
|
|
54
|
+
background: var(--input);
|
|
55
|
+
}
|
|
56
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
A button or link. Omitting label registers its styles for native data-slot markup.
|
|
3
|
+
|
|
4
|
+
@param {string} [label] - Plain text label, escaped.
|
|
5
|
+
@param {string} [href] - Link destination.
|
|
6
|
+
@param {string} [variant] - Visual variant.
|
|
7
|
+
@param {string} [size] - Button size.
|
|
8
|
+
@param {string} [type] - Native button type, defaults to button.
|
|
9
|
+
@param {boolean} [disabled] - Disable the button.
|
|
10
|
+
{% enddoc %}
|
|
11
|
+
|
|
12
|
+
{% if label != blank %}
|
|
13
|
+
{% if href != blank %}
|
|
14
|
+
<a
|
|
15
|
+
href='{{ href | escape }}'
|
|
16
|
+
data-slot='button'
|
|
17
|
+
data-variant='{{ variant | default: 'default' | escape }}'
|
|
18
|
+
data-size='{{ size | default: 'default' | escape }}'
|
|
19
|
+
>
|
|
20
|
+
{{- label | escape -}}
|
|
21
|
+
</a>
|
|
22
|
+
{% else %}
|
|
23
|
+
<button
|
|
24
|
+
type='{{ type | default: 'button' | escape }}'
|
|
25
|
+
data-slot='button'
|
|
26
|
+
data-variant='{{ variant | default: 'default' | escape }}'
|
|
27
|
+
data-size='{{ size | default: 'default' | escape }}'
|
|
28
|
+
{% if disabled %}
|
|
29
|
+
disabled
|
|
30
|
+
{% endif %}
|
|
31
|
+
>
|
|
32
|
+
{{ label | escape }}
|
|
33
|
+
</button>
|
|
34
|
+
{% endif %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
37
|
+
{% stylesheet %}
|
|
38
|
+
/* A part that keeps a behavioral data-slot of its own, such as dialog-close or carousel-next,
|
|
39
|
+
takes the button look with data-button and the same data-variant and data-size values. */
|
|
40
|
+
/* Merchant labels can be long: a label wider than its container wraps inside the button, which
|
|
41
|
+
then grows from its fixed height. One line keeps the Vega height in every size. */
|
|
42
|
+
:is([data-slot='button'], [data-button]) {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
gap: calc(var(--spacing) * 1.5);
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
min-height: calc(var(--spacing) * 9);
|
|
50
|
+
padding: calc(var(--spacing) * 2) calc(var(--spacing) * 2.5);
|
|
51
|
+
border: 1px solid transparent;
|
|
52
|
+
border-radius: var(--radius-md);
|
|
53
|
+
background: var(--primary);
|
|
54
|
+
background-clip: padding-box;
|
|
55
|
+
color: var(--primary-foreground);
|
|
56
|
+
font-size: 0.875rem;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
line-height: 1.25;
|
|
59
|
+
text-align: center;
|
|
60
|
+
overflow-wrap: anywhere;
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
text-underline-offset: 4px;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
user-select: none;
|
|
65
|
+
outline: none;
|
|
66
|
+
transition:
|
|
67
|
+
background-color 150ms,
|
|
68
|
+
color 150ms,
|
|
69
|
+
border-color 150ms,
|
|
70
|
+
box-shadow 150ms,
|
|
71
|
+
translate 150ms;
|
|
72
|
+
}
|
|
73
|
+
:is([data-slot='button'], [data-button]) > .icon {
|
|
74
|
+
width: calc(var(--spacing) * 4);
|
|
75
|
+
height: calc(var(--spacing) * 4);
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
:is([data-slot='button'], [data-button]):where(:has(> .icon:last-child:not(:first-child))) {
|
|
79
|
+
padding-right: calc(var(--spacing) * 2);
|
|
80
|
+
}
|
|
81
|
+
:is([data-slot='button'], [data-button]):where(:has(> .icon:first-child:not(:last-child))) {
|
|
82
|
+
padding-left: calc(var(--spacing) * 2);
|
|
83
|
+
}
|
|
84
|
+
:is([data-slot='button'], [data-button]):hover {
|
|
85
|
+
background-color: color-mix(in oklch, var(--primary) 80%, transparent);
|
|
86
|
+
}
|
|
87
|
+
:is([data-slot='button'], [data-button]):focus-visible {
|
|
88
|
+
border-color: var(--ring);
|
|
89
|
+
box-shadow: var(--focus-ring);
|
|
90
|
+
}
|
|
91
|
+
:is([data-slot='button'], [data-button])[aria-invalid='true'] {
|
|
92
|
+
border-color: light-dark(var(--destructive), color-mix(in oklch, var(--destructive) 50%, transparent));
|
|
93
|
+
box-shadow: 0 0 0 3px
|
|
94
|
+
light-dark(
|
|
95
|
+
color-mix(in oklch, var(--destructive) 20%, transparent),
|
|
96
|
+
color-mix(in oklch, var(--destructive) 40%, transparent)
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
:is([data-slot='button'], [data-button]):active:not([aria-haspopup]) {
|
|
100
|
+
translate: 0 1px;
|
|
101
|
+
}
|
|
102
|
+
:is([data-slot='button'], [data-button]):disabled,
|
|
103
|
+
:is([data-slot='button'], [data-button])[aria-disabled='true'] {
|
|
104
|
+
opacity: 0.5;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
}
|
|
107
|
+
:is([data-slot='button'], [data-button])[data-variant='outline'] {
|
|
108
|
+
border-color: light-dark(var(--border), var(--input));
|
|
109
|
+
background-color: light-dark(var(--background), color-mix(in oklch, var(--input) 30%, transparent));
|
|
110
|
+
color: var(--foreground);
|
|
111
|
+
box-shadow: var(--shadow-xs);
|
|
112
|
+
}
|
|
113
|
+
:is([data-slot='button'], [data-button])[data-variant='outline']:hover {
|
|
114
|
+
background-color: light-dark(var(--muted), color-mix(in oklch, var(--input) 50%, transparent));
|
|
115
|
+
color: var(--foreground);
|
|
116
|
+
}
|
|
117
|
+
:is([data-slot='button'], [data-button])[data-variant='outline'][aria-expanded='true'] {
|
|
118
|
+
background-color: var(--muted);
|
|
119
|
+
}
|
|
120
|
+
:is([data-slot='button'], [data-button])[data-variant='outline']:focus-visible {
|
|
121
|
+
border-color: var(--ring);
|
|
122
|
+
box-shadow: var(--focus-ring);
|
|
123
|
+
}
|
|
124
|
+
:is([data-slot='button'], [data-button])[data-variant='secondary'] {
|
|
125
|
+
background-color: var(--secondary);
|
|
126
|
+
color: var(--secondary-foreground);
|
|
127
|
+
}
|
|
128
|
+
:is([data-slot='button'], [data-button])[data-variant='secondary']:hover {
|
|
129
|
+
background-color: color-mix(in oklch, var(--secondary), var(--foreground) 5%);
|
|
130
|
+
}
|
|
131
|
+
:is([data-slot='button'], [data-button])[data-variant='ghost'] {
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
color: inherit;
|
|
134
|
+
}
|
|
135
|
+
:is([data-slot='button'], [data-button])[data-variant='ghost']:hover {
|
|
136
|
+
background-color: light-dark(var(--muted), color-mix(in oklch, var(--muted) 50%, transparent));
|
|
137
|
+
color: var(--foreground);
|
|
138
|
+
}
|
|
139
|
+
:is([data-slot='button'], [data-button])[data-variant='ghost'][aria-expanded='true'] {
|
|
140
|
+
background-color: var(--muted);
|
|
141
|
+
color: var(--foreground);
|
|
142
|
+
}
|
|
143
|
+
:is([data-slot='button'], [data-button])[data-variant='destructive'] {
|
|
144
|
+
background-color: light-dark(
|
|
145
|
+
color-mix(in oklch, var(--destructive) 10%, transparent),
|
|
146
|
+
color-mix(in oklch, var(--destructive) 20%, transparent)
|
|
147
|
+
);
|
|
148
|
+
/* Vega's destructive text on its own tint is about 4:1; mixing in the foreground keeps 4.5:1. */
|
|
149
|
+
color: color-mix(in oklch, var(--destructive) 65%, var(--foreground));
|
|
150
|
+
}
|
|
151
|
+
:is([data-slot='button'], [data-button])[data-variant='destructive']:hover {
|
|
152
|
+
background-color: light-dark(
|
|
153
|
+
color-mix(in oklch, var(--destructive) 20%, transparent),
|
|
154
|
+
color-mix(in oklch, var(--destructive) 30%, transparent)
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
:is([data-slot='button'], [data-button])[data-variant='destructive']:focus-visible {
|
|
158
|
+
border-color: color-mix(in oklch, var(--destructive) 40%, transparent);
|
|
159
|
+
box-shadow: 0 0 0 3px
|
|
160
|
+
light-dark(
|
|
161
|
+
color-mix(in oklch, var(--destructive) 20%, transparent),
|
|
162
|
+
color-mix(in oklch, var(--destructive) 40%, transparent)
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
:is([data-slot='button'], [data-button])[data-variant='link'] {
|
|
166
|
+
background: none;
|
|
167
|
+
color: var(--primary);
|
|
168
|
+
}
|
|
169
|
+
:is([data-slot='button'], [data-button])[data-variant='link']:hover {
|
|
170
|
+
text-decoration: underline;
|
|
171
|
+
}
|
|
172
|
+
/* A fixed white button on photos and video. */
|
|
173
|
+
:is([data-slot='button'], [data-button])[data-variant='media'] {
|
|
174
|
+
background-color: var(--media-button);
|
|
175
|
+
color: var(--media-button-foreground);
|
|
176
|
+
}
|
|
177
|
+
:is([data-slot='button'], [data-button])[data-variant='media']:hover {
|
|
178
|
+
background-color: var(--media-button-hover);
|
|
179
|
+
}
|
|
180
|
+
/* The secondary button on photos: a translucent white fill. */
|
|
181
|
+
:is([data-slot='button'], [data-button])[data-variant='media-secondary'] {
|
|
182
|
+
background-color: var(--media-secondary);
|
|
183
|
+
color: var(--on-media);
|
|
184
|
+
}
|
|
185
|
+
:is([data-slot='button'], [data-button])[data-variant='media-secondary']:hover {
|
|
186
|
+
background-color: var(--media-secondary-hover);
|
|
187
|
+
}
|
|
188
|
+
:is([data-slot='button'], [data-button])[data-size='xs'] {
|
|
189
|
+
gap: var(--spacing);
|
|
190
|
+
min-height: calc(var(--spacing) * 6);
|
|
191
|
+
padding: calc(var(--spacing) * 0.75) calc(var(--spacing) * 2);
|
|
192
|
+
border-radius: min(var(--radius-md), 8px);
|
|
193
|
+
font-size: 0.75rem;
|
|
194
|
+
}
|
|
195
|
+
:is([data-slot='button'], [data-button])[data-size='xs'] > .icon {
|
|
196
|
+
width: calc(var(--spacing) * 3);
|
|
197
|
+
height: calc(var(--spacing) * 3);
|
|
198
|
+
}
|
|
199
|
+
:is([data-slot='button'], [data-button])[data-size='sm'] {
|
|
200
|
+
gap: var(--spacing);
|
|
201
|
+
min-height: calc(var(--spacing) * 8);
|
|
202
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
203
|
+
border-radius: min(var(--radius-md), 10px);
|
|
204
|
+
}
|
|
205
|
+
:is([data-slot='button'], [data-button])[data-size='lg'] {
|
|
206
|
+
min-height: calc(var(--spacing) * 10);
|
|
207
|
+
}
|
|
208
|
+
:is([data-slot='button'], [data-button])[data-size^='icon'] {
|
|
209
|
+
width: calc(var(--spacing) * 9);
|
|
210
|
+
height: calc(var(--spacing) * 9);
|
|
211
|
+
min-height: 0;
|
|
212
|
+
padding: 0;
|
|
213
|
+
}
|
|
214
|
+
:is([data-slot='button'], [data-button])[data-size='icon-xs'] {
|
|
215
|
+
width: calc(var(--spacing) * 6);
|
|
216
|
+
height: calc(var(--spacing) * 6);
|
|
217
|
+
border-radius: min(var(--radius-md), 8px);
|
|
218
|
+
}
|
|
219
|
+
:is([data-slot='button'], [data-button])[data-size='icon-xs'] > .icon {
|
|
220
|
+
width: calc(var(--spacing) * 3);
|
|
221
|
+
height: calc(var(--spacing) * 3);
|
|
222
|
+
}
|
|
223
|
+
:is([data-slot='button'], [data-button])[data-size='icon-sm'] {
|
|
224
|
+
width: calc(var(--spacing) * 8);
|
|
225
|
+
height: calc(var(--spacing) * 8);
|
|
226
|
+
border-radius: min(var(--radius-md), 10px);
|
|
227
|
+
}
|
|
228
|
+
:is([data-slot='button'], [data-button])[data-size='icon-lg'] {
|
|
229
|
+
width: calc(var(--spacing) * 10);
|
|
230
|
+
height: calc(var(--spacing) * 10);
|
|
231
|
+
}
|
|
232
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI checkbox styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* Fulldev UI's checkbox: a native checkbox with Vega's box and a check mark. */
|
|
7
|
+
[data-slot='checkbox'] {
|
|
8
|
+
position: relative;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
appearance: none;
|
|
11
|
+
border: 1px solid var(--input);
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
background-color: light-dark(transparent, color-mix(in oklch, var(--input) 30%, transparent));
|
|
14
|
+
color: var(--primary-foreground);
|
|
15
|
+
box-shadow: var(--shadow-xs);
|
|
16
|
+
outline: none;
|
|
17
|
+
transition: box-shadow 150ms;
|
|
18
|
+
}
|
|
19
|
+
[data-slot='checkbox']::before {
|
|
20
|
+
content: '';
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
margin: auto;
|
|
24
|
+
width: 14px;
|
|
25
|
+
height: 14px;
|
|
26
|
+
background-color: currentcolor;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E")
|
|
29
|
+
center / 14px no-repeat;
|
|
30
|
+
}
|
|
31
|
+
[data-slot='checkbox']:checked {
|
|
32
|
+
border-color: var(--primary);
|
|
33
|
+
background-color: var(--primary);
|
|
34
|
+
}
|
|
35
|
+
[data-slot='checkbox']:checked::before {
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
38
|
+
[data-slot='checkbox']:focus-visible {
|
|
39
|
+
border-color: var(--ring);
|
|
40
|
+
box-shadow: var(--focus-ring);
|
|
41
|
+
}
|
|
42
|
+
[data-slot='checkbox'][aria-invalid='true'] {
|
|
43
|
+
border-color: light-dark(var(--destructive), color-mix(in oklch, var(--destructive) 50%, transparent));
|
|
44
|
+
box-shadow: 0 0 0 3px
|
|
45
|
+
light-dark(
|
|
46
|
+
color-mix(in oklch, var(--destructive) 20%, transparent),
|
|
47
|
+
color-mix(in oklch, var(--destructive) 40%, transparent)
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
/* As Fulldev UI's compiled checkbox: checked keeps the primary border, except in dark mode. */
|
|
51
|
+
[data-slot='checkbox'][aria-invalid='true']:checked {
|
|
52
|
+
border-color: light-dark(var(--primary), color-mix(in oklch, var(--destructive) 50%, transparent));
|
|
53
|
+
}
|
|
54
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI combobox styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
/* The list of a data-slot combobox, after Vega's combobox. The positioner and the content are
|
|
7
|
+
portaled to the body, so the caller puts its scheme class on combobox-portal. */
|
|
8
|
+
[data-slot='combobox-positioner'] {
|
|
9
|
+
z-index: 1000;
|
|
10
|
+
isolation: isolate;
|
|
11
|
+
}
|
|
12
|
+
[data-slot='combobox-content'] {
|
|
13
|
+
width: var(--anchor-width);
|
|
14
|
+
min-width: 9rem;
|
|
15
|
+
max-width: var(--available-width);
|
|
16
|
+
max-height: min(18rem, var(--available-height));
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
border-radius: var(--radius-md);
|
|
19
|
+
background: var(--popover);
|
|
20
|
+
color: var(--popover-foreground);
|
|
21
|
+
box-shadow:
|
|
22
|
+
0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent),
|
|
23
|
+
var(--shadow-md);
|
|
24
|
+
opacity: 1;
|
|
25
|
+
transform: scale(1);
|
|
26
|
+
transform-origin: var(--transform-origin);
|
|
27
|
+
transition:
|
|
28
|
+
opacity 100ms,
|
|
29
|
+
transform 100ms;
|
|
30
|
+
}
|
|
31
|
+
[data-slot='combobox-content'][data-starting-style],
|
|
32
|
+
[data-slot='combobox-content'][data-ending-style] {
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transform: scale(0.95);
|
|
35
|
+
}
|
|
36
|
+
[data-slot='combobox-list'] {
|
|
37
|
+
max-height: min(18rem, var(--available-height));
|
|
38
|
+
overflow-y: auto;
|
|
39
|
+
overscroll-behavior: contain;
|
|
40
|
+
padding: 4px;
|
|
41
|
+
scroll-padding-block: 4px;
|
|
42
|
+
scrollbar-width: none;
|
|
43
|
+
}
|
|
44
|
+
[data-slot='combobox-list'][data-empty] {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
[data-slot='combobox-item'] {
|
|
48
|
+
position: relative;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 8px;
|
|
52
|
+
padding: 6px 32px 6px 8px;
|
|
53
|
+
border-radius: var(--radius-sm);
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
cursor: default;
|
|
56
|
+
user-select: none;
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
[data-slot='combobox-item'][data-highlighted] {
|
|
60
|
+
background: var(--accent);
|
|
61
|
+
color: var(--accent-foreground);
|
|
62
|
+
}
|
|
63
|
+
[data-slot='combobox-item'][data-disabled] {
|
|
64
|
+
opacity: 0.5;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
}
|
|
67
|
+
[data-slot='combobox-item-indicator'] {
|
|
68
|
+
position: absolute;
|
|
69
|
+
right: 8px;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
width: 16px;
|
|
74
|
+
height: 16px;
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
}
|
|
77
|
+
[data-slot='combobox-item-indicator'] .icon {
|
|
78
|
+
width: 16px;
|
|
79
|
+
height: 16px;
|
|
80
|
+
}
|
|
81
|
+
[data-slot='combobox-empty'] {
|
|
82
|
+
padding: 8px;
|
|
83
|
+
text-align: center;
|
|
84
|
+
font-size: 0.875rem;
|
|
85
|
+
color: var(--muted-foreground);
|
|
86
|
+
}
|
|
87
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Fulldev UI command styles. Use native markup with its data-slot parts.
|
|
3
|
+
{% enddoc %}
|
|
4
|
+
|
|
5
|
+
{% stylesheet %}
|
|
6
|
+
[data-slot='command'] {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-slot='command-input-wrapper'] {
|
|
13
|
+
padding: 4px 4px 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-slot='command-input'] {
|
|
17
|
+
flex: 1;
|
|
18
|
+
height: 100%;
|
|
19
|
+
padding: 0 4px;
|
|
20
|
+
border: 0;
|
|
21
|
+
border-radius: 0;
|
|
22
|
+
background: transparent;
|
|
23
|
+
box-shadow: none;
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot='command-input']:focus-visible {
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
outline: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot='command-input']::-webkit-search-cancel-button {
|
|
33
|
+
appearance: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-slot='command-list'] {
|
|
37
|
+
height: var(--search-results-height, auto);
|
|
38
|
+
max-height: 18rem;
|
|
39
|
+
overflow: hidden auto;
|
|
40
|
+
scroll-padding-block: 4px;
|
|
41
|
+
scrollbar-width: none;
|
|
42
|
+
transition: height 150ms ease-out;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-slot='command-group'] {
|
|
46
|
+
padding: 4px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-slot='command-group'] + [data-slot='command-group'] {
|
|
50
|
+
border-top: 1px solid var(--border);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-slot='command-group-heading'] {
|
|
54
|
+
padding: 6px 8px;
|
|
55
|
+
font-size: 0.75rem;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
color: var(--muted-foreground);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-slot='command-item'] {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
gap: 8px;
|
|
66
|
+
padding: 6px 8px;
|
|
67
|
+
border-radius: var(--radius-lg);
|
|
68
|
+
cursor: default;
|
|
69
|
+
user-select: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot='command-item'][data-selected] {
|
|
73
|
+
background: var(--muted);
|
|
74
|
+
color: var(--foreground);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-slot='command-item'] > .icon {
|
|
78
|
+
width: 16px;
|
|
79
|
+
height: 16px;
|
|
80
|
+
color: var(--muted-foreground);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[data-slot='command-item'][data-selected] > .icon {
|
|
84
|
+
color: var(--foreground);
|
|
85
|
+
}
|
|
86
|
+
{% endstylesheet %}
|