fulldev-ui 0.22.2 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +6 -2
- package/liquid/LICENSE-DATA-SLOT.md +21 -0
- package/liquid/LICENSE-FULLDEV.txt +21 -0
- package/liquid/LICENSE-SHADCN.md +21 -0
- package/liquid/README.md +17 -0
- package/liquid/components/accordion.liquid +5 -0
- package/liquid/components/alert-dialog.liquid +116 -0
- package/liquid/components/alert.liquid +45 -0
- package/liquid/components/aspect-ratio.liquid +28 -0
- package/liquid/components/attachment.liquid +134 -0
- package/liquid/components/avatar.liquid +52 -0
- package/liquid/components/badge.liquid +86 -0
- package/liquid/components/banner.liquid +40 -0
- package/liquid/components/base.liquid +112 -0
- package/liquid/components/breadcrumb.liquid +46 -0
- package/liquid/components/button-group.liquid +56 -0
- package/liquid/components/button.liquid +232 -0
- package/liquid/components/card.liquid +5 -0
- package/liquid/components/carousel.liquid +5 -0
- package/liquid/components/checkbox.liquid +54 -0
- package/liquid/components/collapsible.liquid +3 -0
- package/liquid/components/combobox.liquid +87 -0
- package/liquid/components/command.liquid +86 -0
- package/liquid/components/dialog.liquid +80 -0
- package/liquid/components/drawer.liquid +97 -0
- package/liquid/components/dropdown-menu.liquid +3 -0
- package/liquid/components/empty.liquid +77 -0
- package/liquid/components/field.liquid +5 -0
- package/liquid/components/form.liquid +5 -0
- package/liquid/components/header.liquid +33 -0
- package/liquid/components/hover-card.liquid +3 -0
- package/liquid/components/icon.liquid +5 -0
- package/liquid/components/input-group.liquid +53 -0
- package/liquid/components/input.liquid +84 -0
- package/liquid/components/invalid-controls.liquid +18 -0
- package/liquid/components/item.liquid +114 -0
- package/liquid/components/kbd.liquid +20 -0
- package/liquid/components/logo.liquid +33 -0
- package/liquid/components/marquee.liquid +5 -0
- package/liquid/components/navigation-menu.liquid +5 -0
- package/liquid/components/pagination.liquid +32 -0
- package/liquid/components/popover.liquid +3 -0
- package/liquid/components/popup.liquid +189 -0
- package/liquid/components/price.liquid +5 -0
- package/liquid/components/radio-group.liquid +53 -0
- package/liquid/components/rating.liquid +5 -0
- package/liquid/components/section.liquid +5 -0
- package/liquid/components/select.liquid +51 -0
- package/liquid/components/separator.liquid +19 -0
- package/liquid/components/sheet.liquid +68 -0
- package/liquid/components/skeleton.liquid +17 -0
- package/liquid/components/slider.liquid +50 -0
- package/liquid/components/spinner.liquid +28 -0
- package/liquid/components/switch.liquid +54 -0
- package/liquid/components/table.liquid +64 -0
- package/liquid/components/tabs.liquid +88 -0
- package/liquid/components/toast.liquid +5 -0
- package/liquid/components/toc.liquid +45 -0
- package/liquid/components/toggle-group.liquid +77 -0
- package/liquid/components/toggle.liquid +61 -0
- package/liquid/components/tooltip.liquid +45 -0
- package/liquid/components/triggers.liquid +20 -0
- package/liquid/components/typography.liquid +5 -0
- package/liquid/components/video.liquid +5 -0
- package/liquid/contracts.json +428 -0
- package/liquid/examples/accordion.liquid +10 -0
- package/liquid/examples/alert-dialog.liquid +40 -0
- package/liquid/examples/alert.liquid +4 -0
- package/liquid/examples/aspect-ratio.liquid +1 -0
- package/liquid/examples/attachment.liquid +22 -0
- package/liquid/examples/avatar.liquid +1 -0
- package/liquid/examples/badge.liquid +5 -0
- package/liquid/examples/banner.liquid +3 -0
- package/liquid/examples/breadcrumb.liquid +7 -0
- package/liquid/examples/button-group.liquid +6 -0
- package/liquid/examples/button.liquid +8 -0
- package/liquid/examples/card.liquid +11 -0
- package/liquid/examples/carousel.liquid +12 -0
- package/liquid/examples/checkbox.liquid +4 -0
- package/liquid/examples/collapsible.liquid +29 -0
- package/liquid/examples/combobox.liquid +13 -0
- package/liquid/examples/command.liquid +10 -0
- package/liquid/examples/dependencies.json +60 -0
- package/liquid/examples/dialog.liquid +11 -0
- package/liquid/examples/drawer.liquid +18 -0
- package/liquid/examples/dropdown-menu.liquid +88 -0
- package/liquid/examples/empty.liquid +9 -0
- package/liquid/examples/field.liquid +105 -0
- package/liquid/examples/form.liquid +9 -0
- package/liquid/examples/header.liquid +8 -0
- package/liquid/examples/hover-card.liquid +16 -0
- package/liquid/examples/icon.liquid +3 -0
- package/liquid/examples/input-group.liquid +6 -0
- package/liquid/examples/input.liquid +4 -0
- package/liquid/examples/item.liquid +72 -0
- package/liquid/examples/kbd.liquid +1 -0
- package/liquid/examples/label.liquid +3 -0
- package/liquid/examples/logo.liquid +3 -0
- package/liquid/examples/marquee.liquid +5 -0
- package/liquid/examples/native-select.liquid +8 -0
- package/liquid/examples/navigation-menu.liquid +11 -0
- package/liquid/examples/pagination.liquid +11 -0
- package/liquid/examples/popover.liquid +14 -0
- package/liquid/examples/price.liquid +1 -0
- package/liquid/examples/radio-group.liquid +62 -0
- package/liquid/examples/rating.liquid +17 -0
- package/liquid/examples/section.liquid +9 -0
- package/liquid/examples/select.liquid +105 -0
- package/liquid/examples/separator.liquid +3 -0
- package/liquid/examples/sheet.liquid +11 -0
- package/liquid/examples/skeleton.liquid +5 -0
- package/liquid/examples/slider.liquid +46 -0
- package/liquid/examples/spinner.liquid +11 -0
- package/liquid/examples/switch.liquid +7 -0
- package/liquid/examples/table.liquid +37 -0
- package/liquid/examples/tabs.liquid +21 -0
- package/liquid/examples/textarea.liquid +9 -0
- package/liquid/examples/toast.liquid +47 -0
- package/liquid/examples/toc.liquid +11 -0
- package/liquid/examples/toggle-group.liquid +50 -0
- package/liquid/examples/toggle.liquid +21 -0
- package/liquid/examples/tooltip.liquid +33 -0
- package/liquid/examples/typography.liquid +9 -0
- package/liquid/examples/video.liquid +7 -0
- package/liquid/licenses.json +14 -0
- package/liquid/manifest.json +110 -0
- package/liquid/registry.json +1295 -0
- package/liquid/runtime/ui-carousel.js +44 -0
- package/liquid/runtime/ui-controls.js +195 -0
- package/liquid/runtime/ui-lifecycle.js +107 -0
- package/liquid/runtime/ui-motion.js +45 -0
- package/liquid/runtime/ui-start.js +37 -0
- package/liquid/snippets/init.liquid +6 -0
- package/liquid/snippets/runtime.liquid +9 -0
- package/liquid/snippets/ui.liquid +68 -0
- package/liquid/styles/accordion.css +66 -0
- package/liquid/styles/card.css +114 -0
- package/liquid/styles/carousel.css +58 -0
- package/liquid/styles/field.css +70 -0
- package/liquid/styles/form.css +14 -0
- package/liquid/styles/icon.css +32 -0
- package/liquid/styles/marquee.css +65 -0
- package/liquid/styles/navigation-menu.css +235 -0
- package/liquid/styles/price.css +41 -0
- package/liquid/styles/primitives.css +53 -0
- package/liquid/styles/rating.css +23 -0
- package/liquid/styles/section.css +92 -0
- package/liquid/styles/toast.css +125 -0
- package/liquid/styles/tokens.css +118 -0
- package/liquid/styles/typography.css +670 -0
- package/liquid/styles/video.css +10 -0
- package/liquid/vendor/data-slot-accordion.js +1 -0
- package/liquid/vendor/data-slot-alert-dialog.js +1 -0
- package/liquid/vendor/data-slot-carousel.js +1 -0
- package/liquid/vendor/data-slot-collapsible.js +1 -0
- package/liquid/vendor/data-slot-combobox.js +1 -0
- package/liquid/vendor/data-slot-command.js +1 -0
- package/liquid/vendor/data-slot-core.js +1 -0
- package/liquid/vendor/data-slot-dialog.js +1 -0
- package/liquid/vendor/data-slot-drawer.js +1 -0
- package/liquid/vendor/data-slot-dropdown-menu.js +1 -0
- package/liquid/vendor/data-slot-hover-card.js +1 -0
- package/liquid/vendor/data-slot-navigation-menu.js +1 -0
- package/liquid/vendor/data-slot-popover.js +1 -0
- package/liquid/vendor/data-slot-radio-group.js +1 -0
- package/liquid/vendor/data-slot-select.js +1 -0
- package/liquid/vendor/data-slot-slider.js +1 -0
- package/liquid/vendor/data-slot-switch.js +1 -0
- package/liquid/vendor/data-slot-tabs.js +1 -0
- package/liquid/vendor/data-slot-toast.js +8 -0
- package/liquid/vendor/data-slot-toggle-group.js +1 -0
- package/liquid/vendor/data-slot-toggle.js +1 -0
- package/liquid/vendor/data-slot-tooltip.js +1 -0
- package/liquid/vendor.json +180 -0
- package/package.json +16 -10
- package/public/r/liquid/accordion.json +25 -0
- package/public/r/liquid/alert-dialog.json +21 -0
- package/public/r/liquid/alert.json +18 -0
- package/public/r/liquid/aspect-ratio.json +18 -0
- package/public/r/liquid/attachment.json +20 -0
- package/public/r/liquid/avatar.json +18 -0
- package/public/r/liquid/badge.json +18 -0
- package/public/r/liquid/banner.json +18 -0
- package/public/r/liquid/breadcrumb.json +18 -0
- package/public/r/liquid/button-group.json +19 -0
- package/public/r/liquid/button.json +18 -0
- package/public/r/liquid/card.json +25 -0
- package/public/r/liquid/carousel.json +26 -0
- package/public/r/liquid/checkbox.json +19 -0
- package/public/r/liquid/collapsible.json +19 -0
- package/public/r/liquid/combobox.json +21 -0
- package/public/r/liquid/command.json +19 -0
- package/public/r/liquid/components.json +83 -0
- package/public/r/liquid/dialog.json +19 -0
- package/public/r/liquid/drawer.json +21 -0
- package/public/r/liquid/dropdown-menu.json +21 -0
- package/public/r/liquid/empty.json +18 -0
- package/public/r/liquid/field.json +25 -0
- package/public/r/liquid/form.json +25 -0
- package/public/r/liquid/header.json +19 -0
- package/public/r/liquid/hover-card.json +20 -0
- package/public/r/liquid/icon.json +24 -0
- package/public/r/liquid/init.json +34 -0
- package/public/r/liquid/input-group.json +20 -0
- package/public/r/liquid/input.json +18 -0
- package/public/r/liquid/invalid-controls.json +18 -0
- package/public/r/liquid/item.json +18 -0
- package/public/r/liquid/kbd.json +18 -0
- package/public/r/liquid/label.json +11 -0
- package/public/r/liquid/logo.json +18 -0
- package/public/r/liquid/marquee.json +25 -0
- package/public/r/liquid/native-select.json +11 -0
- package/public/r/liquid/navigation-menu.json +26 -0
- package/public/r/liquid/pagination.json +18 -0
- package/public/r/liquid/popover.json +21 -0
- package/public/r/liquid/popup.json +18 -0
- package/public/r/liquid/price.json +24 -0
- package/public/r/liquid/radio-group.json +20 -0
- package/public/r/liquid/rating.json +24 -0
- package/public/r/liquid/registry.json +1295 -0
- package/public/r/liquid/runtime.json +180 -0
- package/public/r/liquid/section.json +24 -0
- package/public/r/liquid/select.json +22 -0
- package/public/r/liquid/separator.json +18 -0
- package/public/r/liquid/sheet.json +20 -0
- package/public/r/liquid/skeleton.json +18 -0
- package/public/r/liquid/slider.json +19 -0
- package/public/r/liquid/spinner.json +18 -0
- package/public/r/liquid/switch.json +20 -0
- package/public/r/liquid/table.json +18 -0
- package/public/r/liquid/tabs.json +20 -0
- package/public/r/liquid/textarea.json +11 -0
- package/public/r/liquid/toast.json +27 -0
- package/public/r/liquid/toc.json +18 -0
- package/public/r/liquid/toggle-group.json +21 -0
- package/public/r/liquid/toggle.json +20 -0
- package/public/r/liquid/tooltip.json +20 -0
- package/public/r/liquid/triggers.json +18 -0
- package/public/r/liquid/typography.json +24 -0
- package/public/r/liquid/video.json +25 -0
- package/public/r/styles/base-luma/theme-toggle.json +1 -1
- package/public/r/styles/base-lyra/theme-toggle.json +1 -1
- package/public/r/styles/base-maia/theme-toggle.json +1 -1
- package/public/r/styles/base-mira/theme-toggle.json +1 -1
- package/public/r/styles/base-nova/theme-toggle.json +1 -1
- package/public/r/styles/base-rhea/theme-toggle.json +1 -1
- package/public/r/styles/base-sera/theme-toggle.json +1 -1
- package/public/r/styles/base-vega/theme-toggle.json +1 -1
- package/public/r/theme-toggle.json +1 -1
- package/src/components/ui/theme-toggle/theme-provider.astro +14 -0
|
@@ -0,0 +1,670 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
h2,
|
|
3
|
+
h3,
|
|
4
|
+
h4 {
|
|
5
|
+
font-family: var(--font-heading);
|
|
6
|
+
font-weight: var(--heading-weight);
|
|
7
|
+
letter-spacing: var(--tracking-tight);
|
|
8
|
+
scroll-margin-top: 80px;
|
|
9
|
+
}
|
|
10
|
+
h1 {
|
|
11
|
+
font-size: 2.25rem;
|
|
12
|
+
line-height: 2.5rem;
|
|
13
|
+
text-wrap: balance;
|
|
14
|
+
}
|
|
15
|
+
h2 {
|
|
16
|
+
font-size: 1.875rem;
|
|
17
|
+
line-height: 2.25rem;
|
|
18
|
+
}
|
|
19
|
+
h3 {
|
|
20
|
+
font-size: 1.5rem;
|
|
21
|
+
line-height: 2rem;
|
|
22
|
+
}
|
|
23
|
+
h4 {
|
|
24
|
+
font-size: 1.25rem;
|
|
25
|
+
line-height: 1.75rem;
|
|
26
|
+
}
|
|
27
|
+
[data-size='sm']:is(h1) {
|
|
28
|
+
font-size: 1.875rem;
|
|
29
|
+
line-height: 2.25rem;
|
|
30
|
+
}
|
|
31
|
+
[data-size='sm']:is(h2) {
|
|
32
|
+
font-size: 1.5rem;
|
|
33
|
+
line-height: 2rem;
|
|
34
|
+
}
|
|
35
|
+
[data-size='sm']:is(h3) {
|
|
36
|
+
font-size: 1.25rem;
|
|
37
|
+
line-height: 1.75rem;
|
|
38
|
+
}
|
|
39
|
+
[data-size='sm']:is(h4) {
|
|
40
|
+
font-size: 1.125rem;
|
|
41
|
+
line-height: 1.75rem;
|
|
42
|
+
}
|
|
43
|
+
[data-size='lg']:is(h1) {
|
|
44
|
+
font-size: 3rem;
|
|
45
|
+
line-height: 1;
|
|
46
|
+
}
|
|
47
|
+
.muted {
|
|
48
|
+
color: var(--muted-foreground);
|
|
49
|
+
}
|
|
50
|
+
.link {
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
}
|
|
54
|
+
.link:hover {
|
|
55
|
+
text-decoration-thickness: 2px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Rich text from the editor or Shopify content: Fulldev UI's typography, shadcn/ui's typeset.
|
|
59
|
+
Text is 18px below 768px and 16px from there (sm 14px, lg 18px), headings scale in em, and the
|
|
60
|
+
flow sets the space between blocks. Theme tokens set the colors and fonts, images and videos
|
|
61
|
+
keep square corners, and a wide table scrolls. [data-not-typeset] keeps a part out.
|
|
62
|
+
The typeset class gives merchant rich text inside another part, such as a section or card
|
|
63
|
+
description, the same flow, headings, lists and links at that part's size, leading and color. */
|
|
64
|
+
:is([data-slot='typography'], .typeset) {
|
|
65
|
+
--typeset-font-heading: var(--font-heading);
|
|
66
|
+
--typeset-font-mono: var(--font-mono);
|
|
67
|
+
--typeset-flow: 1.25em;
|
|
68
|
+
--typeset-heading: currentcolor;
|
|
69
|
+
--typeset-muted: currentcolor;
|
|
70
|
+
--typeset-rule: var(--border);
|
|
71
|
+
|
|
72
|
+
overflow-wrap: break-word;
|
|
73
|
+
}
|
|
74
|
+
[data-slot='typography'] {
|
|
75
|
+
--typeset-font-body: inherit;
|
|
76
|
+
--typeset-size: 1rem;
|
|
77
|
+
--typeset-leading: 1.75;
|
|
78
|
+
--typeset-heading: var(--foreground);
|
|
79
|
+
--typeset-muted: var(--muted-foreground);
|
|
80
|
+
|
|
81
|
+
font-family: var(--typeset-font-body);
|
|
82
|
+
font-size: calc(var(--typeset-size) * 1.125);
|
|
83
|
+
line-height: var(--typeset-leading);
|
|
84
|
+
color: var(--foreground);
|
|
85
|
+
}
|
|
86
|
+
@media (min-width: 768px), print {
|
|
87
|
+
[data-slot='typography'] {
|
|
88
|
+
font-size: var(--typeset-size);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
[data-slot='typography'][data-size='sm'] {
|
|
92
|
+
--typeset-size: 0.875rem;
|
|
93
|
+
--typeset-leading: 1.7;
|
|
94
|
+
--typeset-flow: 1.125em;
|
|
95
|
+
}
|
|
96
|
+
[data-slot='typography'][data-size='lg'] {
|
|
97
|
+
--typeset-size: 1.125rem;
|
|
98
|
+
--typeset-leading: 1.8;
|
|
99
|
+
--typeset-flow: 1.5em;
|
|
100
|
+
}
|
|
101
|
+
[data-slot='typography'][data-variant='muted'] {
|
|
102
|
+
color: var(--muted-foreground);
|
|
103
|
+
}
|
|
104
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(p) {
|
|
105
|
+
margin-block: var(--typeset-flow) 0;
|
|
106
|
+
}
|
|
107
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h1),
|
|
108
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h2),
|
|
109
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h3),
|
|
110
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h4),
|
|
111
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h5),
|
|
112
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h6) {
|
|
113
|
+
color: var(--typeset-heading);
|
|
114
|
+
font-family: var(--typeset-font-heading);
|
|
115
|
+
font-weight: var(--heading-weight);
|
|
116
|
+
letter-spacing: var(--tracking-normal);
|
|
117
|
+
margin-block-end: 0;
|
|
118
|
+
}
|
|
119
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h1) {
|
|
120
|
+
font-size: 1.75em;
|
|
121
|
+
line-height: 1.3;
|
|
122
|
+
margin-block-start: var(--typeset-flow);
|
|
123
|
+
}
|
|
124
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h2) {
|
|
125
|
+
font-size: 1.25em;
|
|
126
|
+
line-height: 1.4;
|
|
127
|
+
margin-block-start: calc(var(--typeset-flow) * 1.4);
|
|
128
|
+
}
|
|
129
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h3) {
|
|
130
|
+
font-size: 1.125em;
|
|
131
|
+
line-height: 1.45;
|
|
132
|
+
margin-block-start: var(--typeset-flow);
|
|
133
|
+
}
|
|
134
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h4) {
|
|
135
|
+
font-size: 1em;
|
|
136
|
+
line-height: 1.5;
|
|
137
|
+
margin-block-start: var(--typeset-flow);
|
|
138
|
+
}
|
|
139
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h5) {
|
|
140
|
+
font-size: 0.875em;
|
|
141
|
+
line-height: 1.5;
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
color: var(--typeset-muted);
|
|
144
|
+
margin-block-start: calc(var(--typeset-flow) / 0.875);
|
|
145
|
+
}
|
|
146
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h6) {
|
|
147
|
+
font-size: 0.8125em;
|
|
148
|
+
line-height: 1.5;
|
|
149
|
+
font-weight: 500;
|
|
150
|
+
letter-spacing: 0.08em;
|
|
151
|
+
text-transform: uppercase;
|
|
152
|
+
color: var(--typeset-muted);
|
|
153
|
+
margin-block-start: calc(var(--typeset-flow) / 0.8125);
|
|
154
|
+
}
|
|
155
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where([id]) {
|
|
156
|
+
scroll-margin-block-start: var(--typeset-flow);
|
|
157
|
+
}
|
|
158
|
+
:is([data-slot='typography'], .typeset)
|
|
159
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {
|
|
160
|
+
margin-block-start: 1em;
|
|
161
|
+
}
|
|
162
|
+
:is([data-slot='typography'], .typeset)
|
|
163
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(:is(h1, h2, h3, h4) :is(code)) {
|
|
164
|
+
font-size: 0.9em;
|
|
165
|
+
}
|
|
166
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(a) {
|
|
167
|
+
color: inherit;
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
text-decoration-line: underline;
|
|
170
|
+
}
|
|
171
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(a:hover) {
|
|
172
|
+
text-decoration-thickness: 2px;
|
|
173
|
+
}
|
|
174
|
+
:is([data-slot='typography'], .typeset)
|
|
175
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
|
|
176
|
+
font-weight: inherit;
|
|
177
|
+
}
|
|
178
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(strong, b) {
|
|
179
|
+
font-weight: 600;
|
|
180
|
+
}
|
|
181
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(mark) {
|
|
182
|
+
padding: 0.05em 0.15em;
|
|
183
|
+
border-radius: 0.2em;
|
|
184
|
+
background-color: color-mix(in oklab, var(--primary) 15%, transparent);
|
|
185
|
+
color: inherit;
|
|
186
|
+
}
|
|
187
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(abbr[title]) {
|
|
188
|
+
text-decoration-line: underline;
|
|
189
|
+
text-decoration-style: dotted;
|
|
190
|
+
text-underline-offset: 0.2em;
|
|
191
|
+
cursor: help;
|
|
192
|
+
}
|
|
193
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(del, s) {
|
|
194
|
+
color: var(--typeset-muted);
|
|
195
|
+
text-decoration-line: line-through;
|
|
196
|
+
}
|
|
197
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sup, sub) {
|
|
198
|
+
position: relative;
|
|
199
|
+
font-size: 0.75em;
|
|
200
|
+
line-height: 0;
|
|
201
|
+
vertical-align: baseline;
|
|
202
|
+
}
|
|
203
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sup) {
|
|
204
|
+
top: -0.5em;
|
|
205
|
+
}
|
|
206
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sub) {
|
|
207
|
+
bottom: -0.25em;
|
|
208
|
+
}
|
|
209
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sup a) {
|
|
210
|
+
text-decoration-line: none;
|
|
211
|
+
font-weight: 500;
|
|
212
|
+
}
|
|
213
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul) {
|
|
214
|
+
list-style-type: disc;
|
|
215
|
+
}
|
|
216
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol) {
|
|
217
|
+
list-style-type: decimal;
|
|
218
|
+
}
|
|
219
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul ul) {
|
|
220
|
+
list-style-type: circle;
|
|
221
|
+
}
|
|
222
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul ul ul) {
|
|
223
|
+
list-style-type: square;
|
|
224
|
+
}
|
|
225
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='a' i]) {
|
|
226
|
+
list-style-type: lower-alpha;
|
|
227
|
+
}
|
|
228
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='i' i]) {
|
|
229
|
+
list-style-type: lower-roman;
|
|
230
|
+
}
|
|
231
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='A' s]) {
|
|
232
|
+
list-style-type: upper-alpha;
|
|
233
|
+
}
|
|
234
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='I' s]) {
|
|
235
|
+
list-style-type: upper-roman;
|
|
236
|
+
}
|
|
237
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul, ol) {
|
|
238
|
+
margin-block: var(--typeset-flow) 0;
|
|
239
|
+
padding-inline-start: 1.5em;
|
|
240
|
+
}
|
|
241
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(li) {
|
|
242
|
+
margin-block-start: 0.5em;
|
|
243
|
+
padding-inline-start: 0.4em;
|
|
244
|
+
}
|
|
245
|
+
:is([data-slot='typography'], .typeset)
|
|
246
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(li > p, li > ul, li > ol) {
|
|
247
|
+
margin-block-start: 0.5em;
|
|
248
|
+
}
|
|
249
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul > li)::marker,
|
|
250
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol > li)::marker {
|
|
251
|
+
color: var(--typeset-muted);
|
|
252
|
+
}
|
|
253
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(details) {
|
|
254
|
+
margin-block: var(--typeset-flow) 0;
|
|
255
|
+
}
|
|
256
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(summary) {
|
|
257
|
+
cursor: pointer;
|
|
258
|
+
font-weight: 500;
|
|
259
|
+
}
|
|
260
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(summary)::marker {
|
|
261
|
+
color: var(--typeset-muted);
|
|
262
|
+
}
|
|
263
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(kbd) {
|
|
264
|
+
padding: 0.0625em 0.35em;
|
|
265
|
+
border: 1px solid var(--typeset-rule);
|
|
266
|
+
border-block-end-width: 2px;
|
|
267
|
+
border-radius: min(calc(var(--radius) * 0.6), 0.35em);
|
|
268
|
+
font-family: inherit;
|
|
269
|
+
font-size: 0.85em;
|
|
270
|
+
font-weight: 500;
|
|
271
|
+
}
|
|
272
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dl) {
|
|
273
|
+
margin-block: var(--typeset-flow) 0;
|
|
274
|
+
}
|
|
275
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dt) {
|
|
276
|
+
margin-block-start: 1em;
|
|
277
|
+
font-weight: 500;
|
|
278
|
+
}
|
|
279
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dt + dt) {
|
|
280
|
+
margin-block-start: 0.25em;
|
|
281
|
+
}
|
|
282
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dd) {
|
|
283
|
+
margin-block-start: 0.25em;
|
|
284
|
+
margin-inline-start: 0;
|
|
285
|
+
padding-inline-start: 1em;
|
|
286
|
+
color: var(--typeset-muted);
|
|
287
|
+
}
|
|
288
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(:not(pre) > code) {
|
|
289
|
+
padding: 0.125em 0.3em;
|
|
290
|
+
border-radius: min(calc(var(--radius) * 0.6), 0.35em);
|
|
291
|
+
background-color: var(--muted);
|
|
292
|
+
font-family: var(--typeset-font-mono);
|
|
293
|
+
font-size: 0.85em;
|
|
294
|
+
}
|
|
295
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(pre) {
|
|
296
|
+
margin-block: calc(var(--typeset-flow) / 0.875) 0;
|
|
297
|
+
overflow-x: auto;
|
|
298
|
+
padding: 0.75em 1em;
|
|
299
|
+
border-radius: var(--radius);
|
|
300
|
+
background-color: var(--muted);
|
|
301
|
+
font-family: var(--typeset-font-mono);
|
|
302
|
+
font-size: 0.875em;
|
|
303
|
+
line-height: 1.5;
|
|
304
|
+
tab-size: 2;
|
|
305
|
+
direction: ltr;
|
|
306
|
+
}
|
|
307
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(pre code) {
|
|
308
|
+
padding: 0;
|
|
309
|
+
border-radius: 0;
|
|
310
|
+
background-color: transparent;
|
|
311
|
+
font-family: inherit;
|
|
312
|
+
font-size: inherit;
|
|
313
|
+
}
|
|
314
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(blockquote) {
|
|
315
|
+
margin-block: var(--typeset-flow) 0;
|
|
316
|
+
margin-inline: 0;
|
|
317
|
+
padding-inline-start: 1em;
|
|
318
|
+
border-inline-start: 2px solid var(--typeset-rule);
|
|
319
|
+
}
|
|
320
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(hr) {
|
|
321
|
+
margin-block: calc(var(--typeset-flow) * 2.4) 0;
|
|
322
|
+
border: 0;
|
|
323
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
324
|
+
}
|
|
325
|
+
:is([data-slot='typography'], .typeset)
|
|
326
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(hr + h1, hr + h2, hr + h3, hr + h4) {
|
|
327
|
+
margin-block-start: var(--typeset-flow);
|
|
328
|
+
}
|
|
329
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(img, video) {
|
|
330
|
+
max-width: 100%;
|
|
331
|
+
height: auto;
|
|
332
|
+
margin-block: var(--typeset-flow) 0;
|
|
333
|
+
}
|
|
334
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(iframe) {
|
|
335
|
+
max-width: 100%;
|
|
336
|
+
margin-block: var(--typeset-flow) 0;
|
|
337
|
+
}
|
|
338
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(p img) {
|
|
339
|
+
margin-block-start: 0;
|
|
340
|
+
}
|
|
341
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(figure) {
|
|
342
|
+
margin-block: var(--typeset-flow) 0;
|
|
343
|
+
margin-inline: 0;
|
|
344
|
+
}
|
|
345
|
+
:is([data-slot='typography'], .typeset)
|
|
346
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(figcaption, caption) {
|
|
347
|
+
margin-block-start: calc(0.75em / 0.875);
|
|
348
|
+
color: var(--typeset-muted);
|
|
349
|
+
font-size: 0.875em;
|
|
350
|
+
text-align: center;
|
|
351
|
+
}
|
|
352
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(caption) {
|
|
353
|
+
caption-side: bottom;
|
|
354
|
+
}
|
|
355
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(table) {
|
|
356
|
+
display: block;
|
|
357
|
+
width: max-content;
|
|
358
|
+
max-width: 100%;
|
|
359
|
+
margin-block: var(--typeset-flow) 0;
|
|
360
|
+
overflow-x: auto;
|
|
361
|
+
border-block-end: 1px solid var(--typeset-rule);
|
|
362
|
+
border-collapse: separate;
|
|
363
|
+
border-spacing: 0;
|
|
364
|
+
font-size: 1em;
|
|
365
|
+
line-height: 1.5;
|
|
366
|
+
font-variant-numeric: tabular-nums;
|
|
367
|
+
}
|
|
368
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(thead th) {
|
|
369
|
+
padding: 0.65em 1em;
|
|
370
|
+
font-weight: 500;
|
|
371
|
+
text-align: start;
|
|
372
|
+
white-space: nowrap;
|
|
373
|
+
}
|
|
374
|
+
:is([data-slot='typography'], .typeset)
|
|
375
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(:is(tbody, tfoot) :is(td, th)) {
|
|
376
|
+
padding: 0.75em 1em;
|
|
377
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
378
|
+
text-align: start;
|
|
379
|
+
vertical-align: top;
|
|
380
|
+
}
|
|
381
|
+
:is([data-slot='typography'], .typeset)
|
|
382
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(tbody th, tfoot th) {
|
|
383
|
+
font-weight: 500;
|
|
384
|
+
}
|
|
385
|
+
:is([data-slot='typography'], .typeset)
|
|
386
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(th:first-child, td:first-child) {
|
|
387
|
+
padding-inline-start: 0;
|
|
388
|
+
}
|
|
389
|
+
:is([data-slot='typography'], .typeset)
|
|
390
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(th[align='center'], td[align='center']) {
|
|
391
|
+
text-align: center;
|
|
392
|
+
}
|
|
393
|
+
:is([data-slot='typography'], .typeset)
|
|
394
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(th[align='right'], td[align='right']) {
|
|
395
|
+
text-align: end;
|
|
396
|
+
}
|
|
397
|
+
:is([data-slot='typography'], .typeset)
|
|
398
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(li > blockquote, li > table, li > figure) {
|
|
399
|
+
margin-block-start: 0.5em;
|
|
400
|
+
}
|
|
401
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(li > pre) {
|
|
402
|
+
margin-block-start: calc(0.5em / 0.875);
|
|
403
|
+
}
|
|
404
|
+
@media print {
|
|
405
|
+
:is([data-slot='typography'], .typeset)
|
|
406
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(pre, table, blockquote, figure) {
|
|
407
|
+
break-inside: avoid;
|
|
408
|
+
}
|
|
409
|
+
:is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h1, h2, h3, h4) {
|
|
410
|
+
break-after: avoid;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
@media (forced-colors: active) {
|
|
414
|
+
:is([data-slot='typography'], .typeset)
|
|
415
|
+
:not(:where([data-not-typeset], [data-not-typeset] *)):where(:not(pre) > code) {
|
|
416
|
+
border: 1px solid;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
:is([data-slot='typography'], .typeset) > :where(:first-child):not(:where([data-not-typeset], [data-not-typeset] *)),
|
|
420
|
+
:is([data-slot='typography'], .typeset)
|
|
421
|
+
> :where(:first-child)
|
|
422
|
+
> :where(:first-child):not(:where([data-not-typeset], [data-not-typeset] *)),
|
|
423
|
+
:is([data-slot='typography'], .typeset)
|
|
424
|
+
:where(
|
|
425
|
+
li > :first-child,
|
|
426
|
+
blockquote > :first-child,
|
|
427
|
+
td > :first-child,
|
|
428
|
+
th > :first-child,
|
|
429
|
+
dd > :first-child,
|
|
430
|
+
figure > :first-child,
|
|
431
|
+
figure > picture > img
|
|
432
|
+
):not(:where([data-not-typeset], [data-not-typeset] *)) {
|
|
433
|
+
margin-block-start: 0;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* Typography parts, as Fulldev UI's typography components: the same roles outside rich text,
|
|
437
|
+
each with the sm and lg sizes. Large, small and muted are shadcn/ui's typography roles. */
|
|
438
|
+
[data-slot='typography-h1'],
|
|
439
|
+
[data-slot='typography-h2'],
|
|
440
|
+
[data-slot='typography-h3'],
|
|
441
|
+
[data-slot='typography-h4'] {
|
|
442
|
+
font-family: var(--font-heading);
|
|
443
|
+
font-weight: var(--heading-weight);
|
|
444
|
+
letter-spacing: var(--tracking-tight);
|
|
445
|
+
scroll-margin-top: 80px;
|
|
446
|
+
}
|
|
447
|
+
[data-slot='typography-h1'] {
|
|
448
|
+
text-wrap: balance;
|
|
449
|
+
font-size: 2.25rem;
|
|
450
|
+
line-height: 2.5rem;
|
|
451
|
+
}
|
|
452
|
+
[data-slot='typography-h1'][data-size='sm'] {
|
|
453
|
+
font-size: 1.875rem;
|
|
454
|
+
line-height: 2.25rem;
|
|
455
|
+
}
|
|
456
|
+
[data-slot='typography-h1'][data-size='lg'] {
|
|
457
|
+
font-size: 3rem;
|
|
458
|
+
line-height: 1;
|
|
459
|
+
}
|
|
460
|
+
[data-slot='typography-h2'] {
|
|
461
|
+
font-size: 1.875rem;
|
|
462
|
+
line-height: 2.25rem;
|
|
463
|
+
}
|
|
464
|
+
[data-slot='typography-h2'][data-size='sm'] {
|
|
465
|
+
font-size: 1.5rem;
|
|
466
|
+
line-height: 2rem;
|
|
467
|
+
}
|
|
468
|
+
[data-slot='typography-h2'][data-size='lg'] {
|
|
469
|
+
font-size: 2.25rem;
|
|
470
|
+
line-height: 2.5rem;
|
|
471
|
+
}
|
|
472
|
+
[data-slot='typography-h3'] {
|
|
473
|
+
font-size: 1.5rem;
|
|
474
|
+
line-height: 2rem;
|
|
475
|
+
}
|
|
476
|
+
[data-slot='typography-h3'][data-size='sm'] {
|
|
477
|
+
font-size: 1.25rem;
|
|
478
|
+
line-height: 1.75rem;
|
|
479
|
+
}
|
|
480
|
+
[data-slot='typography-h3'][data-size='lg'] {
|
|
481
|
+
font-size: 1.875rem;
|
|
482
|
+
line-height: 2.25rem;
|
|
483
|
+
}
|
|
484
|
+
[data-slot='typography-h4'] {
|
|
485
|
+
font-size: 1.25rem;
|
|
486
|
+
line-height: 1.75rem;
|
|
487
|
+
}
|
|
488
|
+
[data-slot='typography-h4'][data-size='sm'] {
|
|
489
|
+
font-size: 1.125rem;
|
|
490
|
+
line-height: 1.75rem;
|
|
491
|
+
}
|
|
492
|
+
[data-slot='typography-h4'][data-size='lg'] {
|
|
493
|
+
font-size: 1.5rem;
|
|
494
|
+
line-height: 2rem;
|
|
495
|
+
}
|
|
496
|
+
[data-slot='typography-p'],
|
|
497
|
+
[data-slot='typography-blockquote'],
|
|
498
|
+
[data-slot='typography-list'] {
|
|
499
|
+
font-size: 1rem;
|
|
500
|
+
line-height: 1.75rem;
|
|
501
|
+
}
|
|
502
|
+
[data-slot='typography-p']:not(:first-child) {
|
|
503
|
+
margin-top: 1.5rem;
|
|
504
|
+
}
|
|
505
|
+
[data-slot='typography-lead'] {
|
|
506
|
+
font-size: 1.125rem;
|
|
507
|
+
line-height: 1.75rem;
|
|
508
|
+
color: var(--muted-foreground);
|
|
509
|
+
}
|
|
510
|
+
[data-slot='typography-lead'][data-size='sm'] {
|
|
511
|
+
font-size: 1rem;
|
|
512
|
+
line-height: 1.5rem;
|
|
513
|
+
}
|
|
514
|
+
[data-slot='typography-lead'][data-size='lg'] {
|
|
515
|
+
font-size: 1.25rem;
|
|
516
|
+
line-height: 1.75rem;
|
|
517
|
+
}
|
|
518
|
+
[data-slot='typography-large'] {
|
|
519
|
+
font-size: 1.125rem;
|
|
520
|
+
font-weight: 600;
|
|
521
|
+
line-height: 1.75rem;
|
|
522
|
+
}
|
|
523
|
+
[data-slot='typography-small'] {
|
|
524
|
+
font-size: 0.875rem;
|
|
525
|
+
font-weight: 500;
|
|
526
|
+
line-height: 1;
|
|
527
|
+
}
|
|
528
|
+
[data-slot='typography-muted'] {
|
|
529
|
+
font-size: 0.875rem;
|
|
530
|
+
line-height: 1.25rem;
|
|
531
|
+
color: var(--muted-foreground);
|
|
532
|
+
}
|
|
533
|
+
[data-slot='typography-blockquote'] {
|
|
534
|
+
margin-top: 1.5rem;
|
|
535
|
+
padding-inline-start: 1.5rem;
|
|
536
|
+
border-inline-start: 2px solid var(--border);
|
|
537
|
+
font-style: italic;
|
|
538
|
+
}
|
|
539
|
+
[data-slot='typography-list'] {
|
|
540
|
+
margin-block: 1.5rem;
|
|
541
|
+
padding-inline-start: 1.5rem;
|
|
542
|
+
}
|
|
543
|
+
[data-slot='typography-list'] > li + li {
|
|
544
|
+
margin-top: 0.5rem;
|
|
545
|
+
}
|
|
546
|
+
[data-slot='typography-p'][data-size='sm'] {
|
|
547
|
+
font-size: 0.875rem;
|
|
548
|
+
line-height: 1.5rem;
|
|
549
|
+
}
|
|
550
|
+
[data-slot='typography-p'][data-size='lg'] {
|
|
551
|
+
font-size: 1.125rem;
|
|
552
|
+
line-height: 1.875rem;
|
|
553
|
+
}
|
|
554
|
+
[data-slot='typography-blockquote'][data-size='sm'] {
|
|
555
|
+
font-size: 0.875rem;
|
|
556
|
+
line-height: 1.5rem;
|
|
557
|
+
}
|
|
558
|
+
[data-slot='typography-blockquote'][data-size='lg'] {
|
|
559
|
+
font-size: 1.125rem;
|
|
560
|
+
line-height: 1.875rem;
|
|
561
|
+
}
|
|
562
|
+
[data-slot='typography-list'][data-size='sm'] {
|
|
563
|
+
font-size: 0.875rem;
|
|
564
|
+
line-height: 1.5rem;
|
|
565
|
+
}
|
|
566
|
+
[data-slot='typography-list'][data-size='lg'] {
|
|
567
|
+
font-size: 1.125rem;
|
|
568
|
+
line-height: 1.875rem;
|
|
569
|
+
}
|
|
570
|
+
[data-slot='typography-inline-code'] {
|
|
571
|
+
padding: 0.2rem 0.3rem;
|
|
572
|
+
border-radius: var(--radius-sm);
|
|
573
|
+
background: var(--muted);
|
|
574
|
+
font-family: var(--font-mono);
|
|
575
|
+
font-size: 0.875rem;
|
|
576
|
+
font-weight: 600;
|
|
577
|
+
}
|
|
578
|
+
[data-slot='typography-inline-code'][data-size='sm'] {
|
|
579
|
+
font-size: 0.75rem;
|
|
580
|
+
}
|
|
581
|
+
[data-slot='typography-inline-code'][data-size='lg'] {
|
|
582
|
+
font-size: 1rem;
|
|
583
|
+
}
|
|
584
|
+
[data-slot='typography-a'] {
|
|
585
|
+
color: var(--primary);
|
|
586
|
+
font-size: 1rem;
|
|
587
|
+
font-weight: 500;
|
|
588
|
+
line-height: 1.5rem;
|
|
589
|
+
text-decoration: underline;
|
|
590
|
+
text-underline-offset: 4px;
|
|
591
|
+
}
|
|
592
|
+
[data-slot='typography-a'][data-size='sm'] {
|
|
593
|
+
font-size: 0.875rem;
|
|
594
|
+
line-height: 1.25rem;
|
|
595
|
+
}
|
|
596
|
+
[data-slot='typography-a'][data-size='lg'] {
|
|
597
|
+
font-size: 1.125rem;
|
|
598
|
+
line-height: 1.75rem;
|
|
599
|
+
}
|
|
600
|
+
[data-slot='typography-a']:hover {
|
|
601
|
+
text-decoration-thickness: 2px;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* A table in running text, as Fulldev UI's typography table: framed, with striped rows. */
|
|
605
|
+
[data-slot='typography-table-container'] {
|
|
606
|
+
width: 100%;
|
|
607
|
+
margin-block: 1.5rem;
|
|
608
|
+
overflow-x: auto;
|
|
609
|
+
border: 1px solid var(--border);
|
|
610
|
+
border-radius: var(--radius-xl);
|
|
611
|
+
}
|
|
612
|
+
[data-slot='typography-table'] {
|
|
613
|
+
width: 100%;
|
|
614
|
+
border-collapse: collapse;
|
|
615
|
+
font-size: 1rem;
|
|
616
|
+
line-height: 1.5rem;
|
|
617
|
+
}
|
|
618
|
+
[data-slot='typography-table'][data-size='sm'] {
|
|
619
|
+
font-size: 0.875rem;
|
|
620
|
+
line-height: 1.25rem;
|
|
621
|
+
}
|
|
622
|
+
[data-slot='typography-table'][data-size='lg'] {
|
|
623
|
+
font-size: 1.125rem;
|
|
624
|
+
line-height: 1.75rem;
|
|
625
|
+
}
|
|
626
|
+
[data-slot='typography-table-row']:nth-child(even) {
|
|
627
|
+
background: var(--muted);
|
|
628
|
+
}
|
|
629
|
+
[data-slot='typography-table-head'],
|
|
630
|
+
[data-slot='typography-table-cell'] {
|
|
631
|
+
padding: 0.75rem 1rem;
|
|
632
|
+
text-align: start;
|
|
633
|
+
}
|
|
634
|
+
[data-slot='typography-table-head'] {
|
|
635
|
+
border-bottom: 1px solid var(--border);
|
|
636
|
+
font-weight: 600;
|
|
637
|
+
}
|
|
638
|
+
[data-slot='typography-table-cell'] {
|
|
639
|
+
border-top: 1px solid var(--border);
|
|
640
|
+
}
|
|
641
|
+
:is([data-slot='typography-table-head'], [data-slot='typography-table-cell'])[align='left'] {
|
|
642
|
+
text-align: left;
|
|
643
|
+
}
|
|
644
|
+
:is([data-slot='typography-table-head'], [data-slot='typography-table-cell'])[align='center'] {
|
|
645
|
+
text-align: center;
|
|
646
|
+
}
|
|
647
|
+
:is([data-slot='typography-table-head'], [data-slot='typography-table-cell'])[align='right'] {
|
|
648
|
+
text-align: right;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.check-list {
|
|
652
|
+
display: flex;
|
|
653
|
+
flex-direction: column;
|
|
654
|
+
gap: 12px;
|
|
655
|
+
margin: 0;
|
|
656
|
+
padding: 0;
|
|
657
|
+
list-style: none;
|
|
658
|
+
font-size: 0.875rem;
|
|
659
|
+
}
|
|
660
|
+
.check-list > li {
|
|
661
|
+
display: flex;
|
|
662
|
+
align-items: flex-start;
|
|
663
|
+
gap: 12px;
|
|
664
|
+
}
|
|
665
|
+
.check-list .icon {
|
|
666
|
+
width: 16px;
|
|
667
|
+
height: 16px;
|
|
668
|
+
margin-top: 2px;
|
|
669
|
+
color: var(--primary);
|
|
670
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* The playing media of a video: a Shopify video, an embed, or the click-to-load cover that becomes
|
|
2
|
+
one. It fills its aspect-ratio frame, which carries Fulldev UI's border and radius. */
|
|
3
|
+
[data-slot='video'] {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
border: 0;
|
|
8
|
+
background: var(--muted);
|
|
9
|
+
object-fit: cover;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{clearRootBinding as e,createPresenceLifecycle as t,emit as n,ensureId as r,getDataBool as i,getDataEnum as a,getDataString as o,getOwnedElements as s,getParts as c,getRoots as l,hasRootBinding as u,on as d,onRoot as f,reuseRootBinding as p,setAria as m,setRootBinding as ee}from"@data-slot/core";const te=[`horizontal`,`vertical`],h=new Set([`all`,`height`,`width`,`block-size`,`inline-size`]),ne=new Set([`Enter`,` `]),g=e=>!!e&&(e.hasAttribute(`disabled`)||e.hasAttribute(`data-disabled`)||e.getAttribute(`aria-disabled`)===`true`),_=(e,t,n)=>{n?e.setAttribute(t,``):e.removeAttribute(t)},v=(e,t)=>{e.setAttribute(`data-state`,t?`open`:`closed`),t?(e.setAttribute(`data-open`,``),e.removeAttribute(`data-closed`)):(e.setAttribute(`data-closed`,``),e.removeAttribute(`data-open`))},y=e=>{let t=e.trim();return t?t.endsWith(`ms`)?Number.parseFloat(t.slice(0,-2))||0:t.endsWith(`s`)?(Number.parseFloat(t.slice(0,-1))||0)*1e3:Number.parseFloat(t)||0:0},b=(e,t)=>{let n=e.split(`,`),r=t.split(`,`),i=Math.max(n.length,r.length),a=0;for(let e=0;e<i;e+=1){let t=y(n[e]??n[n.length-1]??`0`),i=y(r[e]??r[r.length-1]??`0`);a=Math.max(a,t+i)}return a},re=e=>{let t=b(e.transitionDuration,e.transitionDelay),n=b(e.animationDuration,e.animationDelay);return Math.max(t,n)},ie=e=>b(e.animationDuration,e.animationDelay)<=0?!1:e.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`),x=(e,t)=>{let n=e.transitionProperty.split(`,`).map(e=>e.trim()),r=e.transitionDuration.split(`,`),i=e.transitionDelay.split(`,`),a=Math.max(n.length,r.length,i.length),o=0;for(let e=0;e<a;e+=1){if(!t(n[e]??n[n.length-1]??`all`))continue;let a=y(r[e]??r[r.length-1]??`0`),s=y(i[e]??i[i.length-1]??`0`);o=Math.max(o,a+s)}return o},S=e=>x(e,e=>h.has(e)),ae=e=>{if(e===void 0)return;let t=e.trim();if(!t.startsWith(`[`)||!t.endsWith(`]`))return e;try{let n=JSON.parse(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):e}catch{return e}},C=`@data-slot/accordion`;function w(l,u={}){let y=p(l,C,`[@data-slot/accordion] createAccordion() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(y)return y;let b=l,x=c(l,`accordion-item`);if(x.length===0)throw Error(`Accordion requires at least one accordion-item`);let w=l.ownerDocument?.defaultView??window,T=u.multiple??i(l,`multiple`)??!1,oe=u.onValueChange,E=u.disabled??i(l,`disabled`)??g(l),D=u.orientation??a(l,`orientation`,te)??`vertical`,O=u.loopFocus??i(l,`loopFocus`)??!0,k=u.hiddenUntilFound??i(l,`hiddenUntilFound`)??!1,se=u.collapsible??i(l,`collapsible`)??!0,A=[],j=[],M=(e,t,n)=>{e.content.style.setProperty(`--accordion-panel-height`,t),e.content.style.setProperty(`--accordion-panel-width`,n),e.content.style.setProperty(`--radix-accordion-content-height`,t),e.content.style.setProperty(`--radix-accordion-content-width`,n)},N=(e,t,n)=>{M(e,`${t}px`,`${n}px`)},P=e=>{M(e,`auto`,`auto`)},F=e=>{N(e,0,0)},I=e=>{N(e,e.content.scrollHeight,e.content.scrollWidth)},L=e=>{let t=e.content.style.getPropertyValue(`--accordion-panel-height`).trim(),n=e.content.style.getPropertyValue(`--accordion-panel-width`).trim();return t===`auto`&&n===`auto`},R=e=>{e.suppressClick=!1,e.suppressClickTimeoutId!==null&&(w.clearTimeout(e.suppressClickTimeoutId),e.suppressClickTimeoutId=null)},z=e=>{e.openSettleRafId!==null&&(w.cancelAnimationFrame(e.openSettleRafId),e.openSettleRafId=null),e.openSettleTimeoutId!==null&&(w.clearTimeout(e.openSettleTimeoutId),e.openSettleTimeoutId=null),e.openSettleCleanups.forEach(e=>e()),e.openSettleCleanups=[]},B=e=>{e.closeZeroRafId!==null&&(w.cancelAnimationFrame(e.closeZeroRafId),e.closeZeroRafId=null)},V=e=>{z(e),B(e)},H=e=>S(e)>0?`css-transition`:ie(e)?`css-animation`:`none`,U=(e,t)=>{let n=e.content.style.getPropertyValue(`animation-name`);e.content.style.setProperty(`animation-name`,`none`);try{P(e),I(e),t?.()}finally{n?e.content.style.setProperty(`animation-name`,n):e.content.style.removeProperty(`animation-name`)}},ce=e=>{e.idleAnimationSuppressed||(e.idleAnimationName=e.content.style.getPropertyValue(`animation-name`)||null,e.idleAnimationSuppressed=!0,e.content.style.setProperty(`animation-name`,`none`))},le=e=>{e.idleAnimationSuppressed&&=(e.idleAnimationName?e.content.style.setProperty(`animation-name`,e.idleAnimationName):e.content.style.removeProperty(`animation-name`),e.idleAnimationName=null,!1)},W=e=>{e.content.removeAttribute(`hidden`)},G=e=>{k?e.content.setAttribute(`hidden`,`until-found`):e.content.hidden=!0,F(e)},K=new Set,q=(e,t)=>{z(e),!(!K.has(e.value)||e.presence.isExiting)&&(P(e),t===`css-animation`&&ce(e))},J=(e,t,n)=>{z(e);let r=re(n),i=S(n),a=i||r;if(a>0){let n=typeof w.performance?.now==`function`?w.performance.now():Date.now(),r=e=>(typeof w.performance?.now==`function`?w.performance.now():Date.now())-n>=Math.max(0,e-5),o=n=>{if(n.target!==e.content)return;let o=`propertyName`in n?String(n.propertyName):``;if(i>0){if(!h.has(o)||!r(i))return}else if(!r(a))return;q(e,t)},s=n=>{n.target===e.content&&(i>0||r(a)&&q(e,t))};e.content.addEventListener(`transitionend`,o),e.content.addEventListener(`animationend`,s),e.openSettleCleanups.push(()=>e.content.removeEventListener(`transitionend`,o)),e.openSettleCleanups.push(()=>e.content.removeEventListener(`animationend`,s)),e.openSettleTimeoutId=w.setTimeout(()=>{e.openSettleTimeoutId=null,q(e,t)},Math.ceil(a)+50);return}e.openSettleRafId=w.requestAnimationFrame(()=>{e.openSettleRafId=null,q(e,t)})},ue=e=>{B(e),e.closeZeroRafId=w.requestAnimationFrame(()=>{e.closeZeroRafId=null,!K.has(e.value)&&e.presence.isExiting&&F(e)})},de=e=>{e.el.setAttribute(`data-index`,String(e.index)),e.content.setAttribute(`data-index`,String(e.index)),e.content.setAttribute(`data-orientation`,D),_(e.el,`data-disabled`,e.disabled),_(e.trigger,`data-disabled`,e.disabled),_(e.content,`data-disabled`,e.disabled),e.disabled?(e.trigger.setAttribute(`aria-disabled`,`true`),e.trigger instanceof HTMLButtonElement&&(e.trigger.disabled=!0)):(e.trigger.removeAttribute(`aria-disabled`),e.trigger instanceof HTMLButtonElement&&(e.trigger.disabled=!1))},Y=(e,t)=>{e.trigger.setAttribute(`data-state`,t?`open`:`closed`),_(e.trigger,`data-panel-open`,t)},fe=e=>{let t=K.has(e.value);if(de(e),m(e.trigger,`expanded`,t),v(e.el,t),v(e.content,t),Y(e,t),e.content.removeAttribute(`data-starting-style`),e.content.removeAttribute(`data-ending-style`),t){W(e);let t=getComputedStyle(e.content),n=H(t);n===`css-animation`?U(e):I(e),J(e,n,t)}else G(e)},pe=(e,t)=>{let n=K.has(e.value),r=e.trigger.getAttribute(`aria-expanded`)===`true`;if(!(n===r&&(n?L(e):!e.presence.isExiting))){if(m(e.trigger,`expanded`,n),v(e.el,n),v(e.content,n),Y(e,n),n){B(e),W(e);let t=getComputedStyle(e.content),n=H(t);n===`css-animation`?U(e,()=>{r||e.presence.enter()}):(I(e),r||e.presence.enter()),J(e,n,t);return}if(r){z(e),H(getComputedStyle(e.content))===`css-animation`?U(e,()=>e.presence.exit()):(N(e,...t),e.presence.exit(),ue(e));return}V(e),e.content.removeAttribute(`data-starting-style`),e.content.removeAttribute(`data-ending-style`),G(e)}},me=e=>{let t=[],n=new Set;for(let r of e)if(!(n.has(r)||!x.some(e=>e.dataset.value===r))&&(n.add(r),t.push(r),!T&&t.length===1))break;return t},he=e=>e.size===K.size?[...e].some(e=>!K.has(e)):!0,ge=()=>{let e=[...K];n(l,`accordion:change`,{value:e}),oe?.(e)},X=e=>{let t=me(e);if(!T&&!se&&t.length===0&&K.size>0)return!1;let n=new Set(t);if(!he(n))return!1;let r=j.filter(e=>K.has(e.value)!==n.has(e.value)),i=new Map;for(let e of r)K.has(e.value)&&i.set(e,[e.content.scrollHeight,e.content.scrollWidth]);return r.forEach(le),K=n,j.forEach(e=>pe(e,i.get(e))),ge(),!0},_e=e=>(e.getAttribute(`dir`)??b.getAttribute(`dir`))===`rtl`||(getComputedStyle(e).direction||getComputedStyle(b).direction||l.ownerDocument?.documentElement.getAttribute(`dir`)||``)===`rtl`?`rtl`:`ltr`;b.setAttribute(`data-orientation`,D),_(b,`data-disabled`,!!E),x.forEach((e,n)=>{let i=e.dataset.value;if(!i)return;let a=s(l,e,`[data-slot="accordion-trigger"]`)[0]??null,o=s(l,e,`[data-slot="accordion-content"]`)[0]??null;if(!a||!o)return;let c=r(o,`accordion-content`),u=r(a,`accordion-trigger`);a.setAttribute(`aria-controls`,c),o.setAttribute(`aria-labelledby`,u),o.setAttribute(`role`,`region`);let f=!!E||g(e)||g(a),p;p={el:e,value:i,index:n,disabled:f,trigger:a,content:o,presence:t({element:o,onExitComplete:()=>{B(p),G(p)}}),sizeObserver:null,idleAnimationName:null,idleAnimationSuppressed:!1,openSettleRafId:null,openSettleTimeoutId:null,closeZeroRafId:null,openSettleCleanups:[],suppressClick:!1,suppressClickTimeoutId:null},typeof ResizeObserver<`u`&&(p.sizeObserver=new ResizeObserver(()=>{!K.has(p.value)||p.presence.isExiting||L(p)||I(p)}),p.sizeObserver.observe(o)),A.push(d(a,`click`,()=>{if(p.suppressClick){R(p);return}p.disabled||(K.has(p.value)?X([...K].filter(e=>e!==p.value)):X(T?[...K,p.value]:[p.value]))})),A.push(d(a,`keydown`,e=>{if(ne.has(e.key)){if(p.disabled){e.preventDefault();return}e.preventDefault(),R(p),p.suppressClick=!0,p.suppressClickTimeoutId=w.setTimeout(()=>{p.suppressClick=!1,p.suppressClickTimeoutId=null},0),K.has(p.value)?X([...K].filter(e=>e!==p.value)):X(T?[...K,p.value]:[p.value])}})),k&&A.push(d(o,`beforematch`,()=>{X(T?[...K,p.value]:[p.value])})),j.push(p)});let Z=new Set(j.map(e=>e.value)),Q=u.defaultValue??ae(o(l,`defaultValue`)),ve=me((Q?Array.isArray(Q)?Q:[Q]:[]).filter(e=>Z.has(e)));K=new Set(ve),j.forEach(fe),A.push(d(b,`keydown`,e=>{let t=e.target;if(!t)return;let n=j.find(e=>e.trigger===t);if(!n)return;let r=j.filter(e=>!e.disabled),i=r.findIndex(e=>e.trigger===t);if(i===-1)return;let a=r.length-1,o=-1,s=()=>{o=O?i+1>a?0:i+1:Math.min(i+1,a)},c=()=>{o=O?i===0?a:i-1:Math.max(i-1,0)};switch(e.key){case`ArrowDown`:D===`vertical`&&s();break;case`ArrowUp`:D===`vertical`&&c();break;case`ArrowRight`:D===`horizontal`&&(_e(n.trigger)===`rtl`?c():s());break;case`ArrowLeft`:D===`horizontal`&&(_e(n.trigger)===`rtl`?s():c());break;case`Home`:o=0;break;case`End`:o=a;break;default:return}o<0||(e.preventDefault(),r[o]?.trigger.focus())})),A.push(f(l,`accordion:set`,e=>{let t=e.detail?.value;t!==void 0&&X(Array.isArray(t)?t:[t])}));let $={expand:e=>{!Z.has(e)||K.has(e)||X(T?[...K,e]:[e])},collapse:e=>{!Z.has(e)||!K.has(e)||X([...K].filter(t=>t!==e))},toggle:e=>{Z.has(e)&&(K.has(e)?$.collapse(e):$.expand(e))},get value(){return[...K]},destroy:()=>{j.forEach(e=>{R(e),e.presence.cleanup(),V(e),e.sizeObserver?.disconnect(),e.sizeObserver=null}),A.forEach(e=>e()),A.length=0,e(l,C,$)}};return ee(l,C,$),$}function T(e=document){let t=[];for(let n of l(e,`accordion`))u(n,C)||t.push(w(n));return t}export{T as create,w as createAccordion};
|