@muten/shadcn 0.1.3 → 0.1.4
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/kit.css +42 -0
- package/package.json +1 -1
- package/registry/info-table.muten +19 -0
- package/registry/marketing.muten +144 -0
- package/registry/nav-button.muten +16 -0
- package/registry/segmented-control.muten +4 -3
- package/registry.json +73 -59
package/kit.css
CHANGED
|
@@ -5147,3 +5147,45 @@ a.cx-bc-item:hover { color: var(--foreground); }
|
|
|
5147
5147
|
/* StackedBars in a narrow card (a phone): twelve month labels still fit, a size smaller and never cut with «…» */
|
|
5148
5148
|
.cx-stb { container-type: inline-size; }
|
|
5149
5149
|
@container (max-width: 520px) { .cx-stb-x { gap: 2px; font-size: 10px; } .cx-stb-x > span { text-overflow: clip; overflow: visible; } .cx-stb-bars { gap: 4px; } .cx-stb-y { font-size: 10.5px; } }
|
|
5150
|
+
|
|
5151
|
+
/* ── MARKETING PARTS (registry/marketing.muten) ──────────────────────────────────────────────────────────────────────
|
|
5152
|
+
The pieces that had lived in Storio's landing as its own classes, now the library's: a lead under a section title,
|
|
5153
|
+
a note after a block, the tag on a fund card, columns of facts, outlined boxes, a path of numbered steps and a
|
|
5154
|
+
checked list with explanations. */
|
|
5155
|
+
.style-nova .cx-mk-sub { margin-top: -12px; max-width: 60ch; }
|
|
5156
|
+
.style-nova .cx-mk-note { margin: -8px 0 0; font-size: 14px; color: var(--muted-foreground); max-width: 70ch; }
|
|
5157
|
+
.style-nova .cx-mk-fund-c:has(> .cx-mk-fund-tag) { grid-row: span 3; }
|
|
5158
|
+
.style-nova .cx-mk-fund-tag { justify-self: start; align-self: start; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted-foreground); background: var(--background); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
|
|
5159
|
+
.style-nova .cx-mk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
|
|
5160
|
+
.style-nova .cx-mk-fact { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 4px 0; min-width: 0; }
|
|
5161
|
+
.style-nova .cx-mk-fact + .cx-mk-fact { padding-left: 20px; border-left: 1px solid var(--border); }
|
|
5162
|
+
.style-nova .cx-mk-fact-k { font-weight: 700; font-size: 16px; }
|
|
5163
|
+
.style-nova .cx-mk-fact-p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-foreground); }
|
|
5164
|
+
.style-nova .cx-mk-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
|
|
5165
|
+
.style-nova .cx-mk-box { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border: 1px solid var(--border); border-radius: 18px; min-width: 0; }
|
|
5166
|
+
.style-nova .cx-mk-box-t { font-weight: 700; font-size: 16px; }
|
|
5167
|
+
.style-nova .cx-mk-box-p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-foreground); }
|
|
5168
|
+
.style-nova .cx-mk-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
|
|
5169
|
+
.style-nova .cx-mk-path-s { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
5170
|
+
.style-nova .cx-mk-path-n { width: 34px; height: 34px; border-radius: 50%; background: var(--foreground); color: var(--background); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
|
|
5171
|
+
.style-nova .cx-mk-path-p { margin: 0; font-size: 15px; line-height: 1.55; }
|
|
5172
|
+
.style-nova .cx-mk-donelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
|
|
5173
|
+
.style-nova .cx-mk-done { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 20px 0; border-top: 1px solid var(--border); min-width: 0; }
|
|
5174
|
+
.style-nova .cx-mk-done-i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 15px; margin-top: 1px; }
|
|
5175
|
+
.style-nova .cx-mk-done-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
5176
|
+
.style-nova .cx-mk-done-t { font-weight: 700; font-size: 16px; }
|
|
5177
|
+
.style-nova .cx-mk-done-p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-foreground); }
|
|
5178
|
+
@media (max-width: 900px) {
|
|
5179
|
+
.style-nova .cx-mk-facts, .style-nova .cx-mk-path { grid-template-columns: 1fr 1fr; row-gap: 22px; }
|
|
5180
|
+
.style-nova .cx-mk-fact:nth-child(3) { padding-left: 0; border-left: 0; }
|
|
5181
|
+
.style-nova .cx-mk-boxes { grid-template-columns: 1fr 1fr; }
|
|
5182
|
+
}
|
|
5183
|
+
@media (max-width: 760px) { .style-nova .cx-mk-donelist { grid-template-columns: 1fr; gap: 0; } }
|
|
5184
|
+
@media (max-width: 560px) {
|
|
5185
|
+
.style-nova .cx-mk-facts, .style-nova .cx-mk-path, .style-nova .cx-mk-boxes { grid-template-columns: 1fr; }
|
|
5186
|
+
.style-nova .cx-mk-fact + .cx-mk-fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
|
|
5187
|
+
}
|
|
5188
|
+
/* The pricing table's note under a value (cx-pr-*): how or how much, stacked under it, never beside it. */
|
|
5189
|
+
.style-nova .cx-pr-td .cx-pr-note { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--muted-foreground); font-weight: 400; }
|
|
5190
|
+
.style-nova .cx-pr-table > .cx-pr-tr > .cx-pr-td:has(> .cx-pr-note), .style-nova .cx-pr-table > .cx-pr-tr > .cx-pr-rh:has(> .cx-pr-note) { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; }
|
|
5191
|
+
.style-nova .cx-pr-rh > .cx-pr-note { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted-foreground); font-weight: 400; max-width: 30ch; }
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# InfoTable - shadcn's Table for content (not a data grid: for rows from a list with filters, use TableView). A header row
|
|
2
|
+
# of InfoHead, then rows of InfoCell. variant "compare" is the comparison look (first column strong, the rest
|
|
3
|
+
# softer, stacked with their column's name on a phone); a cell's tone picks "strong" or "soft" inside it.
|
|
4
|
+
# InfoTable(variant: "compare") {
|
|
5
|
+
# InfoHeadRow { InfoHead(label: "") InfoHead(label: "Storio") InfoHead(label: "Linktree") }
|
|
6
|
+
# InfoRow { InfoCell(label: "Agenda", tone: "strong") InfoCell(label: "Incluida") InfoCell(label: "No", tone: "soft") }
|
|
7
|
+
# }
|
|
8
|
+
# shadcn-for-muten · parts · no deps · Nova (.cn-table) + kit.css (.cx-mk-vs-table).
|
|
9
|
+
part InfoTable(variant: text = "default") {
|
|
10
|
+
Stack class("cn-table-container") data(slot: "table-container") {
|
|
11
|
+
Stack class("cn-table", "cx-mk-vs-table" when $variant == "compare") data(slot: "table") aria(role: "table") { slot }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
part InfoHeadRow() { Stack class("cn-table-row cx-mk-vs-head") data(slot: "table-row") aria(role: "row") { slot } }
|
|
15
|
+
part InfoRow() { Stack class("cn-table-row") data(slot: "table-row") aria(role: "row") { slot } }
|
|
16
|
+
part InfoHead(label: text) { Span "{$label}" class("cn-table-head") data(slot: "table-head") aria(role: "columnheader") }
|
|
17
|
+
part InfoCell(label: text, tone: text = "") {
|
|
18
|
+
Span "{$label}" class("cn-table-cell", "cx-mk-vs-what" when $tone == "strong", "cx-mk-vs-them" when $tone == "soft") data(slot: "table-cell") aria(role: "cell")
|
|
19
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Marketing - the pieces a site's pages are built from (the cx-mk-* system in kit.css): a section with its title, the
|
|
2
|
+
# hero's pill and two-line headline, the address field with its button, a list of checks, numbered steps, cards,
|
|
3
|
+
# columns of facts, a path of steps, a checked list with explanations and the closing call. Every argument is text,
|
|
4
|
+
# so the words can come from a translation function: MkCheck(label: "{t(lang, "x")}").
|
|
5
|
+
# MkSection(anchor: "how", title: "Así funciona") {
|
|
6
|
+
# MkChecks { MkCheck(label: "Sin app para tu cliente") MkCheck(label: "Confirma solo") }
|
|
7
|
+
# }
|
|
8
|
+
# MkHero { MkHeroCopy { MkPill(label: "Para músicos") { Icon "lucide:music" } MkHeadline(first: "Tu música,", second: "en un link.")
|
|
9
|
+
# MkClaim(value: handle, to: joinUrl, cta: "Crear mi tienda") class("animate-rise") } … }
|
|
10
|
+
# MkCta(title: "Tu negocio,", soft: "vende y agenda solo.") { MkClaim(value: handle, to: joinUrl, cta: "Crear mi tienda") }
|
|
11
|
+
# shadcn-for-muten · parts · no deps · kit.css (.cx-mk-*), uses InputGroup and LinkBtn.
|
|
12
|
+
|
|
13
|
+
# MkSection - a page section at reading width with its h2. anchor is its id (a link can go to #anchor).
|
|
14
|
+
part MkSection(anchor: text, title: text = "") {
|
|
15
|
+
Section class("cx-mk-sec cx-mk-col") id("{$anchor}") {
|
|
16
|
+
when $title != "" { Title "{$title}" h2 class("cx-mk-h2") }
|
|
17
|
+
slot
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
# MkHead - a section's heading block when it has more than the title: an eyebrow above, a lead under it, and in the
|
|
21
|
+
# slot whatever follows in the same block (a button, a field).
|
|
22
|
+
part MkHead(title: text, lead: text = "", eyebrow: text = "") {
|
|
23
|
+
Stack class("cx-mk-head") {
|
|
24
|
+
when $eyebrow != "" { Span "{$eyebrow}" class("cx-mk-eyebrow") }
|
|
25
|
+
Title "{$title}" h2 class("cx-mk-h2")
|
|
26
|
+
when $lead != "" { Text "{$lead}" class("cx-mk-lead") }
|
|
27
|
+
slot
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
# MkLead - the line under a section's title, a little closer to it than a paragraph.
|
|
31
|
+
part MkLead(text: text) { Text "{$text}" class("cx-mk-lead cx-mk-sub") }
|
|
32
|
+
# MkNote - a small line after a block: where a thing comes from, what it depends on.
|
|
33
|
+
part MkNote(text: text) { Text "{$text}" class("cx-mk-note") }
|
|
34
|
+
|
|
35
|
+
# ── the hero ──
|
|
36
|
+
part MkHero() { Section class("cx-mk-hero") { slot } }
|
|
37
|
+
part MkHeroCopy() { Stack class("cx-mk-hero-copy") { slot } }
|
|
38
|
+
# MkPill - the brand pill over a hero's headline; its icon goes in the slot.
|
|
39
|
+
part MkPill(label: text) { Stack class("cx-pill animate-rise cx-mk-pill") data(slot: "pill", tone: "brand") { slot Span "{$label}" } }
|
|
40
|
+
# MkHeadline - an h1 in two lines that fit the column (the second is part of the same sentence). fit: false keeps
|
|
41
|
+
# the poster size (a home page).
|
|
42
|
+
part MkHeadline(first: text, second: text, fit: bool = true) {
|
|
43
|
+
Stack class("words cx-mk-title") {
|
|
44
|
+
Title "{$first}" h1 class("cx-mk-h1", "cx-mk-h1-fit" when $fit)
|
|
45
|
+
Span "{$second}" class("cx-mk-h1", "cx-mk-h1-fit" when $fit)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
# MkTitle - an h1 in one line of text. size: "fit" fits the column, "wrap" lets a whole sentence wrap a size smaller,
|
|
49
|
+
# "" keeps the poster size.
|
|
50
|
+
part MkTitle(text: text, size: text = "") {
|
|
51
|
+
Title "{$text}" h1 class("cx-mk-h1 words", "cx-mk-h1-fit" when $size == "fit", "cx-mk-h1-wrap" when $size == "wrap")
|
|
52
|
+
}
|
|
53
|
+
# MkClaim - the address field and its button: «storio.ink/ [your-name] [Create]». value is the page's text state.
|
|
54
|
+
part MkClaim(value: text, to: text, cta: text, placeholder: text = "", prefix: text = "storio.ink/") {
|
|
55
|
+
Stack class("cx-mk-claim") {
|
|
56
|
+
InputGroup(size: "2xl", variant: "filled") {
|
|
57
|
+
InputAddon { InputGroupText(label: $prefix) }
|
|
58
|
+
GroupInput(value: $value, placeholder: $placeholder)
|
|
59
|
+
}
|
|
60
|
+
LinkBtn(to: $to, variant: "default", size: "2xl") { Span "{$cta}" }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
# MkCta - the closing call: two lines of title (the second softer) and, in the slot, what to do (an MkClaim).
|
|
64
|
+
part MkCta(title: text, soft: text) {
|
|
65
|
+
Stack class("cx-mk-cta") {
|
|
66
|
+
Stack class("cx-mk-cta-copy") { Span "{$title}" class("cx-mk-h2") Span "{$soft}" class("cx-mk-h2 cx-mk-soft") }
|
|
67
|
+
slot
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
# ── lists ──
|
|
72
|
+
# MkChecks / MkCheck - short claims, each with a check.
|
|
73
|
+
part MkChecks() { Stack class("cx-mk-checks") aria(role: "list") { slot } }
|
|
74
|
+
part MkCheck(label: text) { Stack class("cx-mk-check") aria(role: "listitem") { Stack class("cx-mk-ic") { Icon "lucide:check" } Span "{$label}" } }
|
|
75
|
+
# MkCheckList / MkCheckRow - two columns of things a product does, each a check, a title and how it works.
|
|
76
|
+
part MkCheckList() { Stack class("cx-mk-donelist") aria(role: "list") { slot } }
|
|
77
|
+
part MkCheckRow(title: text, text: text) {
|
|
78
|
+
Stack class("cx-mk-done") aria(role: "listitem") {
|
|
79
|
+
Icon "lucide:check" class("cx-mk-done-i")
|
|
80
|
+
Stack class("cx-mk-done-tx") { Span "{$title}" class("cx-mk-done-t") Text "{$text}" class("cx-mk-done-p") }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
# MkSteps / MkStep - numbered steps in boxes; the step's picture goes in the slot (a Stack class("cx-mk-step-vis")).
|
|
84
|
+
part MkSteps() { Stack class("cx-mk-steps") aria(role: "list") { slot } }
|
|
85
|
+
part MkStep(n: text, title: text, text: text) {
|
|
86
|
+
Stack class("cx-mk-step") aria(role: "listitem") {
|
|
87
|
+
Span "{$n}" class("cx-mk-step-n") aria(hidden: true)
|
|
88
|
+
Span "{$title}" class("cx-mk-step-t")
|
|
89
|
+
Text "{$text}" class("cx-mk-step-p")
|
|
90
|
+
slot
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
# MkPath / MkPathStep - a short way through, one sentence per step, numbers in circles (four across, two, then one).
|
|
94
|
+
part MkPath() { Stack class("cx-mk-path") aria(role: "list") { slot } }
|
|
95
|
+
part MkPathStep(n: text, text: text) {
|
|
96
|
+
Stack class("cx-mk-path-s") aria(role: "listitem") { Span "{$n}" class("cx-mk-path-n") aria(hidden: true) Text "{$text}" class("cx-mk-path-p") }
|
|
97
|
+
}
|
|
98
|
+
# MkFund / MkFundCard - cards in a grid, each with a title and its paragraph; tag is a small label above (the piece
|
|
99
|
+
# that does it). MkFundSource is a card that also says where its number comes from.
|
|
100
|
+
part MkFund() { Stack class("cx-mk-fund") aria(role: "list") { slot } }
|
|
101
|
+
part MkFundCard(title: text, text: text, tag: text = "") {
|
|
102
|
+
Stack class("cx-mk-fund-c") aria(role: "listitem") {
|
|
103
|
+
when $tag != "" { Span "{$tag}" class("cx-mk-fund-tag") }
|
|
104
|
+
Title "{$title}" h3 class("cx-mk-fund-t")
|
|
105
|
+
Text "{$text}" class("cx-mk-fund-p")
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
part MkFundSource(n: text, title: text, text: text, source: text) {
|
|
109
|
+
Stack class("cx-mk-fund-c") aria(role: "listitem") {
|
|
110
|
+
Span "{$n}" class("cx-mk-fund-n")
|
|
111
|
+
Title "{$title}" h3 class("cx-mk-fund-t")
|
|
112
|
+
Text "{$text}" class("cx-mk-fund-p")
|
|
113
|
+
Span "{$source}" class("cx-mk-fund-src")
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
# MkFacts / MkFact - columns split by hairlines, a key word and its line (four across, two, then one).
|
|
117
|
+
part MkFacts() { Stack class("cx-mk-facts") aria(role: "list") { slot } }
|
|
118
|
+
part MkFact(key: text, text: text) { Stack class("cx-mk-fact") aria(role: "listitem") { Span "{$key}" class("cx-mk-fact-k") Text "{$text}" class("cx-mk-fact-p") } }
|
|
119
|
+
# MkBoxes / MkBox - outlined boxes with a title and a line (three across, two, then one).
|
|
120
|
+
part MkBoxes() { Stack class("cx-mk-boxes") aria(role: "list") { slot } }
|
|
121
|
+
part MkBox(title: text, text: text) { Stack class("cx-mk-box") aria(role: "listitem") { Span "{$title}" class("cx-mk-box-t") Text "{$text}" class("cx-mk-box-p") } }
|
|
122
|
+
|
|
123
|
+
# ── us and them ──
|
|
124
|
+
# VsTable / VsRow - a comparison of one thing per row: what, how we do it (with a check), how they do it. On a phone
|
|
125
|
+
# each row stacks and the cells carry their column's name. us is the first column's name, logo its picture.
|
|
126
|
+
part VsTable(us: text, them: text, logo: text = "") {
|
|
127
|
+
Stack class("cn-table-container") data(slot: "table-container") {
|
|
128
|
+
Stack class("cn-table cx-mk-vs-table") data(slot: "table") aria(role: "table") {
|
|
129
|
+
Stack class("cn-table-row cx-mk-vs-head") data(slot: "table-row") aria(role: "row") {
|
|
130
|
+
Span "" class("cn-table-head") data(slot: "table-head") aria(role: "columnheader")
|
|
131
|
+
Stack class("cn-table-head") data(slot: "table-head") aria(role: "columnheader") { Image "{$logo}" alt("{$us}") class("cx-mk-vs-logo") }
|
|
132
|
+
Span "{$them}" class("cn-table-head") data(slot: "table-head") aria(role: "columnheader")
|
|
133
|
+
}
|
|
134
|
+
slot
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
part VsRow(what: text, us: text, them: text, usName: text, themName: text) {
|
|
139
|
+
Stack class("cn-table-row") data(slot: "table-row") aria(role: "row") {
|
|
140
|
+
Span "{$what}" class("cn-table-cell cx-mk-vs-what") data(slot: "table-cell") aria(role: "cell")
|
|
141
|
+
Stack class("cn-table-cell cx-mk-vs-us") data(slot: "table-cell", label: $usName) aria(role: "cell") { Icon "lucide:check" Span "{$us}" }
|
|
142
|
+
Span "{$them}" class("cn-table-cell cx-mk-vs-them") data(slot: "table-cell", label: $themName) aria(role: "cell")
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -12,3 +12,19 @@ part NavButton(label: text = "", current: bool, onClick: action, variant: text =
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
part NavBar(label: text = "Secciones", orientation: text = "horizontal") { Nav class("cx-navbar") data(orientation: $orientation) aria(label: $label) { slot } }
|
|
15
|
+
|
|
16
|
+
# NavLink - a NavButton that goes to another page (a Link): the tabs between sibling pages (Terms · Privacy · Delete).
|
|
17
|
+
# NavHere - the tab of the page you are on, which goes nowhere (aria-current="page", marked like a current NavButton).
|
|
18
|
+
# NavBar(label: "Documentos") { NavHere(label: "Términos", marker: "fill") NavLink(label: "Privacidad", to: "/privacy", marker: "fill") }
|
|
19
|
+
part NavLink(label: text, to: text, variant: text = "ghost", size: text = "default", marker: text = "dot") {
|
|
20
|
+
Link "" -> "{$to}" class("cn-button cn-button-variant-{$variant} cn-button-size-{$size} group/button cx-nav") data(slot: "button", marker: $marker) {
|
|
21
|
+
slot
|
|
22
|
+
Span "{$label}" class("cx-nav-label")
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
part NavHere(label: text, variant: text = "ghost", size: text = "default", marker: text = "dot") {
|
|
26
|
+
Stack class("cn-button cn-button-variant-{$variant} cn-button-size-{$size} group/button cx-nav") data(slot: "button", marker: $marker) aria(current: "page") {
|
|
27
|
+
slot
|
|
28
|
+
Span "{$label}" class("cx-nav-label")
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
# SegmentedControl { SegmentedItem(value: "select", current: tool, label: "Select", onSelect: setTool) … }
|
|
5
5
|
# SegmentedTabs fills its width; IconTab holds an Icon instead of a label.
|
|
6
6
|
# shadcn-for-muten · part + Custom (TabsBehavior) · kit.css (.cx-tabs).
|
|
7
|
-
|
|
8
|
-
part
|
|
9
|
-
|
|
7
|
+
# label names the group for a screen reader; fill: "phone" stretches it to its row on a phone (to line up with a field).
|
|
8
|
+
part SegmentedControl(label: text = "", fill: text = "") { Stack class("cx-tabs") data(slot: "segmented", fill: $fill) aria(role: "group", label: $label) { slot TabsBehavior() } }
|
|
9
|
+
part SegmentedItem(value: text, current: text, label: text, onSelect: action, size: text = "sm") {
|
|
10
|
+
Button "{$label}" -> $onSelect($value) class("cn-button cn-button-variant-ghost cn-button-size-{$size} cx-tab") aria(pressed: $value == $current)
|
|
10
11
|
}
|
|
11
12
|
part SegmentedTabs() { Stack class("cx-tabs cx-tabs-fill") data(slot: "segmented") { slot TabsBehavior() } }
|
|
12
13
|
part IconTab(value: text, current: text, onSelect: action) {
|
package/registry.json
CHANGED
|
@@ -391,6 +391,13 @@
|
|
|
391
391
|
"component": "GradientBlinds",
|
|
392
392
|
"description": "Animated WebGL gradient + diagonal-blinds hero background that follows the cursor and fades into the page (needs ogl)."
|
|
393
393
|
},
|
|
394
|
+
{
|
|
395
|
+
"name": "heatmap",
|
|
396
|
+
"deps": [],
|
|
397
|
+
"part": "Heatmap",
|
|
398
|
+
"file": "registry/heatmap.muten",
|
|
399
|
+
"description": "Rows × columns (weekday × hour), each cell darker the more it holds, a less…more scale, a note while empty."
|
|
400
|
+
},
|
|
394
401
|
{
|
|
395
402
|
"name": "hotkey",
|
|
396
403
|
"deps": [],
|
|
@@ -428,6 +435,13 @@
|
|
|
428
435
|
"file": "registry/indicator.muten",
|
|
429
436
|
"description": "Indicator(tone): the corner dot that says something needs you."
|
|
430
437
|
},
|
|
438
|
+
{
|
|
439
|
+
"name": "info-table",
|
|
440
|
+
"deps": [],
|
|
441
|
+
"part": "InfoTable",
|
|
442
|
+
"file": "registry/info-table.muten",
|
|
443
|
+
"description": "InfoTable - shadcn's Table for content (not a data grid: for rows from a list with filters, use TableView). A header row"
|
|
444
|
+
},
|
|
431
445
|
{
|
|
432
446
|
"name": "input-group",
|
|
433
447
|
"deps": [
|
|
@@ -505,6 +519,13 @@
|
|
|
505
519
|
"component": "KitWidget",
|
|
506
520
|
"description": "Host of the system kit widgets (Custom, kit core). Use the named parts."
|
|
507
521
|
},
|
|
522
|
+
{
|
|
523
|
+
"name": "legal-doc",
|
|
524
|
+
"deps": [],
|
|
525
|
+
"part": "DocHead",
|
|
526
|
+
"file": "registry/legal-doc.muten",
|
|
527
|
+
"description": "A legal document (terms, privacy): the title and its line, the contents that follow the reading, the sections at reading width."
|
|
528
|
+
},
|
|
508
529
|
{
|
|
509
530
|
"name": "link-btn",
|
|
510
531
|
"deps": [],
|
|
@@ -527,6 +548,13 @@
|
|
|
527
548
|
"file": "registry/logo-cloud.muten",
|
|
528
549
|
"description": "BLOCK: a 'trusted by' strip of logos, muted + grayscale until hover. Parts: LogoCloud, LogoCloudItem."
|
|
529
550
|
},
|
|
551
|
+
{
|
|
552
|
+
"name": "marketing",
|
|
553
|
+
"deps": [],
|
|
554
|
+
"part": "MkSection",
|
|
555
|
+
"file": "registry/marketing.muten",
|
|
556
|
+
"description": "Marketing - the pieces a site's pages are built from (the cx-mk-* system in kit.css): a section with its title, the"
|
|
557
|
+
},
|
|
530
558
|
{
|
|
531
559
|
"name": "member-list",
|
|
532
560
|
"deps": [
|
|
@@ -613,20 +641,6 @@
|
|
|
613
641
|
"file": "registry/navpill.muten",
|
|
614
642
|
"description": "BLOCK: the floating glass navbar (sticky wrapper + glass pill + scroll animation baked in). Drop logo/links/CTA inside."
|
|
615
643
|
},
|
|
616
|
-
{
|
|
617
|
-
"name": "legal-doc",
|
|
618
|
-
"deps": [],
|
|
619
|
-
"part": "DocHead",
|
|
620
|
-
"file": "registry/legal-doc.muten",
|
|
621
|
-
"description": "A legal document (terms, privacy): the title and its line, the contents that follow the reading, the sections at reading width."
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"name": "phone-bar",
|
|
625
|
-
"deps": [],
|
|
626
|
-
"part": "PhoneBar",
|
|
627
|
-
"file": "registry/phone-bar.muten",
|
|
628
|
-
"description": "The app's bar at the bottom of a phone: three fixed cells (menu · the screen's tools · its create). Screens hand it their toolbar buttons on a phone."
|
|
629
|
-
},
|
|
630
644
|
{
|
|
631
645
|
"name": "new-appointment",
|
|
632
646
|
"deps": [],
|
|
@@ -699,6 +713,13 @@
|
|
|
699
713
|
"file": "registry/permission-matrix.muten",
|
|
700
714
|
"description": "PermissionMatrix - any rows × any roles; one role can be locked (always allowed)."
|
|
701
715
|
},
|
|
716
|
+
{
|
|
717
|
+
"name": "phone-bar",
|
|
718
|
+
"deps": [],
|
|
719
|
+
"part": "PhoneBar",
|
|
720
|
+
"file": "registry/phone-bar.muten",
|
|
721
|
+
"description": "The app's bar at the bottom of a phone: three fixed cells (menu · the screen's tools · its create). Screens hand it their toolbar buttons on a phone."
|
|
722
|
+
},
|
|
702
723
|
{
|
|
703
724
|
"name": "phone-field",
|
|
704
725
|
"deps": [],
|
|
@@ -783,6 +804,15 @@
|
|
|
783
804
|
"component": "RangeSlider",
|
|
784
805
|
"description": "RangeSlider(lo, hi, min, max, step, onLo, onHi): two thumbs on the kit ScaleSlider."
|
|
785
806
|
},
|
|
807
|
+
{
|
|
808
|
+
"name": "rank-item",
|
|
809
|
+
"deps": [
|
|
810
|
+
"progress"
|
|
811
|
+
],
|
|
812
|
+
"part": "RankItem",
|
|
813
|
+
"file": "registry/rank-item.muten",
|
|
814
|
+
"description": "A ranking row or a thing to act on: a lead (rank or count), title, tag, a line, an optional share bar, the value, and an action in the slot."
|
|
815
|
+
},
|
|
786
816
|
{
|
|
787
817
|
"name": "resizable",
|
|
788
818
|
"deps": [],
|
|
@@ -853,6 +883,13 @@
|
|
|
853
883
|
"file": "registry/separator.muten",
|
|
854
884
|
"description": "Separator(orientation): a hairline. horizontal | vertical."
|
|
855
885
|
},
|
|
886
|
+
{
|
|
887
|
+
"name": "share-bar",
|
|
888
|
+
"deps": [],
|
|
889
|
+
"part": "ShareBar",
|
|
890
|
+
"file": "registry/share-bar.muten",
|
|
891
|
+
"description": "How one whole splits: a bar at 100 % cut into its parts, each in its tone, with each part's value and name under it."
|
|
892
|
+
},
|
|
856
893
|
{
|
|
857
894
|
"name": "share-button",
|
|
858
895
|
"deps": [],
|
|
@@ -875,6 +912,13 @@
|
|
|
875
912
|
"file": "registry/sidebar.muten",
|
|
876
913
|
"description": "AppSidebar - a collapsible nav panel (SidebarHeader / SidebarGroup / SidebarItem). Named AppSidebar so it never shadows muten's core Sidebar <aside> primitive."
|
|
877
914
|
},
|
|
915
|
+
{
|
|
916
|
+
"name": "site-footer",
|
|
917
|
+
"deps": [],
|
|
918
|
+
"part": "SiteFooter",
|
|
919
|
+
"file": "registry/site-footer.muten",
|
|
920
|
+
"description": "A site's footer: the brand and its two ways in over a hairline, every group of links on one row, then a bar with the company and contacts (FooterHead, FooterBrand, FooterActions, FooterLinks, FooterCol, FooterBar)."
|
|
921
|
+
},
|
|
878
922
|
{
|
|
879
923
|
"name": "skeleton",
|
|
880
924
|
"deps": [],
|
|
@@ -937,6 +981,14 @@
|
|
|
937
981
|
"file": "registry/split-button.muten",
|
|
938
982
|
"description": "A main action + a caret dropdown; page owns the open bool."
|
|
939
983
|
},
|
|
984
|
+
{
|
|
985
|
+
"name": "stacked-bars",
|
|
986
|
+
"deps": [],
|
|
987
|
+
"part": "StackedBars",
|
|
988
|
+
"file": "registry/stacked-bars.muten",
|
|
989
|
+
"component": "StackedBars",
|
|
990
|
+
"description": "Bars over time with series stacked, an axis in the page's unit, a bar you can pick, an empty note and a skeleton."
|
|
991
|
+
},
|
|
940
992
|
{
|
|
941
993
|
"name": "stamp-card",
|
|
942
994
|
"deps": [
|
|
@@ -1107,6 +1159,13 @@
|
|
|
1107
1159
|
"file": "registry/vector-field.muten",
|
|
1108
1160
|
"description": "Paired NumberFields (X/Y) for position or size."
|
|
1109
1161
|
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "veil",
|
|
1164
|
+
"deps": [],
|
|
1165
|
+
"part": "Veil",
|
|
1166
|
+
"file": "registry/veil.muten",
|
|
1167
|
+
"description": "A calm note (title and line) over a card's content while it has nothing to show yet; the content stays faded behind."
|
|
1168
|
+
},
|
|
1110
1169
|
{
|
|
1111
1170
|
"name": "virtual-list",
|
|
1112
1171
|
"deps": [],
|
|
@@ -1137,51 +1196,6 @@
|
|
|
1137
1196
|
"part": "ZoomControl",
|
|
1138
1197
|
"file": "registry/zoom-control.muten",
|
|
1139
1198
|
"description": "A - 100% + zoom widget; page owns the zoom number."
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
"name": "site-footer",
|
|
1143
|
-
"deps": [],
|
|
1144
|
-
"part": "SiteFooter",
|
|
1145
|
-
"file": "registry/site-footer.muten",
|
|
1146
|
-
"description": "A site's footer: the brand and its two ways in over a hairline, every group of links on one row, then a bar with the company and contacts (FooterHead, FooterBrand, FooterActions, FooterLinks, FooterCol, FooterBar)."
|
|
1147
|
-
},
|
|
1148
|
-
{
|
|
1149
|
-
"name": "share-bar",
|
|
1150
|
-
"deps": [],
|
|
1151
|
-
"part": "ShareBar",
|
|
1152
|
-
"file": "registry/share-bar.muten",
|
|
1153
|
-
"description": "How one whole splits: a bar at 100 % cut into its parts, each in its tone, with each part's value and name under it."
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
"name": "heatmap",
|
|
1157
|
-
"deps": [],
|
|
1158
|
-
"part": "Heatmap",
|
|
1159
|
-
"file": "registry/heatmap.muten",
|
|
1160
|
-
"description": "Rows × columns (weekday × hour), each cell darker the more it holds, a less…more scale, a note while empty."
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
"name": "stacked-bars",
|
|
1164
|
-
"deps": [],
|
|
1165
|
-
"part": "StackedBars",
|
|
1166
|
-
"file": "registry/stacked-bars.muten",
|
|
1167
|
-
"description": "Bars over time with series stacked, an axis in the page's unit, a bar you can pick, an empty note and a skeleton.",
|
|
1168
|
-
"component": "StackedBars"
|
|
1169
|
-
},
|
|
1170
|
-
{
|
|
1171
|
-
"name": "rank-item",
|
|
1172
|
-
"deps": [
|
|
1173
|
-
"progress"
|
|
1174
|
-
],
|
|
1175
|
-
"part": "RankItem",
|
|
1176
|
-
"file": "registry/rank-item.muten",
|
|
1177
|
-
"description": "A ranking row or a thing to act on: a lead (rank or count), title, tag, a line, an optional share bar, the value, and an action in the slot."
|
|
1178
|
-
},
|
|
1179
|
-
{
|
|
1180
|
-
"name": "veil",
|
|
1181
|
-
"deps": [],
|
|
1182
|
-
"part": "Veil",
|
|
1183
|
-
"file": "registry/veil.muten",
|
|
1184
|
-
"description": "A calm note (title and line) over a card's content while it has nothing to show yet; the content stays faded behind."
|
|
1185
1199
|
}
|
|
1186
1200
|
],
|
|
1187
1201
|
"classComponents": {
|