@adea-ai/ui 0.100.2 → 0.101.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
- package/dist/components/composites/about-dialog/about-dialog.js +2 -1
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts +7 -0
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +116 -89
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
- package/dist/components/composites/help-center/help-center.js +26 -21
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +43 -36
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +46 -35
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +73 -58
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +19 -13
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts.map +1 -1
- package/dist/components/theme/appearance-panel.js +37 -18
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +5 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/card/card.d.ts.map +1 -1
- package/dist/components/ui/card/card.js +5 -1
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/chart/chart-options.d.ts +3 -2
- package/dist/components/ui/chart/chart-options.d.ts.map +1 -1
- package/dist/components/ui/chart/chart-options.js +30 -9
- package/dist/components/ui/chart/chart-options.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts +4 -9
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +65 -10
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +5 -1
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/drawer.js +5 -1
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +2 -1
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/item/item.d.ts +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +8 -7
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +5 -1
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +13 -0
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.js +15 -1
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +6 -2
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/typography/index.d.ts +3 -0
- package/dist/components/ui/typography/index.d.ts.map +1 -0
- package/dist/components/ui/typography/index.js +2 -0
- package/dist/components/ui/typography/typography.d.ts +84 -0
- package/dist/components/ui/typography/typography.d.ts.map +1 -0
- package/dist/components/ui/typography/typography.js +179 -0
- package/dist/components/ui/typography/typography.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/r/account-menu.json +1 -0
- package/dist/r/alert-dialog.json +1 -0
- package/dist/r/card.json +1 -0
- package/dist/r/dialog.json +1 -0
- package/dist/r/drawer.json +1 -0
- package/dist/r/field.json +1 -0
- package/dist/r/help-center.json +1 -0
- package/dist/r/page.json +1 -0
- package/dist/r/registry.json +37 -0
- package/dist/r/settings.json +1 -0
- package/dist/r/sheet.json +1 -0
- package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +3 -2
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +105 -66
- package/dist/r/src/components/composites/help-center/help-center.tsx +2 -1
- package/dist/r/src/components/composites/settings/settings.tsx +4 -1
- package/dist/r/src/components/composites/stat/stat.tsx +7 -2
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +36 -24
- package/dist/r/src/components/layout/page/page.tsx +3 -2
- package/dist/r/src/components/theme/appearance-panel.tsx +13 -4
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +2 -1
- package/dist/r/src/components/ui/card/card.tsx +2 -1
- package/dist/r/src/components/ui/chart/chart-options.ts +35 -7
- package/dist/r/src/components/ui/chart/chart.tsx +65 -12
- package/dist/r/src/components/ui/dialog/dialog.tsx +2 -1
- package/dist/r/src/components/ui/drawer/drawer.tsx +2 -1
- package/dist/r/src/components/ui/field/field.tsx +2 -3
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +27 -20
- package/dist/r/src/components/ui/sheet/sheet.tsx +5 -1
- package/dist/r/src/components/ui/tabs/tabs.tsx +18 -1
- package/dist/r/src/components/ui/toast/toast.tsx +7 -6
- package/dist/r/src/components/ui/typography/index.ts +9 -0
- package/dist/r/src/components/ui/typography/typography.tsx +205 -0
- package/dist/r/stat.json +1 -0
- package/dist/r/theming.json +1 -0
- package/dist/r/typography.json +24 -0
- package/dist/r/update-dialog.json +1 -0
- package/package.json +1 -1
- package/registry.json +37 -0
- package/src/components/composites/about-dialog/about-dialog.tsx +3 -2
- package/src/components/composites/account-menu/account-menu.tsx +105 -66
- package/src/components/composites/help-center/help-center.tsx +2 -1
- package/src/components/composites/settings/settings.tsx +4 -1
- package/src/components/composites/stat/stat.tsx +7 -2
- package/src/components/composites/update-dialog/update-dialog.tsx +36 -24
- package/src/components/layout/page/page.tsx +3 -2
- package/src/components/theme/appearance-panel.tsx +13 -4
- package/src/components/ui/alert-dialog/alert-dialog.tsx +2 -1
- package/src/components/ui/card/card.tsx +2 -1
- package/src/components/ui/chart/chart-options.ts +35 -7
- package/src/components/ui/chart/chart.tsx +65 -12
- package/src/components/ui/dialog/dialog.tsx +2 -1
- package/src/components/ui/drawer/drawer.tsx +2 -1
- package/src/components/ui/field/field.tsx +2 -3
- package/src/components/ui/navigation-menu/navigation-menu.tsx +27 -20
- package/src/components/ui/sheet/sheet.tsx +5 -1
- package/src/components/ui/tabs/tabs.tsx +18 -1
- package/src/components/ui/toast/toast.tsx +7 -6
- package/src/components/ui/typography/index.ts +9 -0
- package/src/components/ui/typography/typography.tsx +205 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { cn } from "../../../lib/utils.js";
|
|
2
|
+
import { cva } from "../../../lib/variants.js";
|
|
3
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
4
|
+
import { splitProps } from "solid-js";
|
|
5
|
+
import { Polymorphic } from "@kobalte/core/polymorphic";
|
|
6
|
+
//#region src/components/ui/typography/typography.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Typography.
|
|
9
|
+
*
|
|
10
|
+
* The type ladder in `theme.css` has eight rungs, each with its own leading. These
|
|
11
|
+
* two components are where a rung is paired with its weight and tracking, so a call
|
|
12
|
+
* site names a *role* — a page title, a section heading, a caption — and never
|
|
13
|
+
* re-decides `text-xl font-semibold tracking-tight` for itself. Twenty call sites
|
|
14
|
+
* that each choose a size and a weight drift; twenty that name a role cannot.
|
|
15
|
+
*
|
|
16
|
+
* **Size is visual; the element is the document outline.** They are separate
|
|
17
|
+
* decisions and the API keeps them separate. Each size has a conventional default
|
|
18
|
+
* element (`display`, `title` and `page` render an `h1`, `section` an `h2`, `card`
|
|
19
|
+
* an `h3`, `subsection` an `h4`) so the common case needs no prop, but the default
|
|
20
|
+
* is a convenience, not a coupling: a card-sized title that is the first heading
|
|
21
|
+
* in a settings section is an `h2`, so it says `as="h2"`. Never pick a `size` to get
|
|
22
|
+
* a heading level, and never pick an element to get a size.
|
|
23
|
+
*
|
|
24
|
+
* Headings are 600, and weights stop at 600 — on a dark surface a bold word blooms.
|
|
25
|
+
* Leading comes from the rung; `leading="none"` is for a title whose surrounding
|
|
26
|
+
* stack already sets the rhythm (a card or dialog header), and is the only other
|
|
27
|
+
* option.
|
|
28
|
+
*/
|
|
29
|
+
var headingVariants = cva("font-semibold", {
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
/** 30px. An app-level headline — a first-run or empty-app screen. Once per app. */
|
|
33
|
+
display: "text-3xl tracking-tight",
|
|
34
|
+
/** 24px. A landing title or a headline figure larger than a stat's. */
|
|
35
|
+
title: "text-2xl tracking-tight",
|
|
36
|
+
/** 20px. The title of a page (`PageHeaderTitle`). */
|
|
37
|
+
page: "text-xl tracking-tight",
|
|
38
|
+
/** 18px. A section heading inside a page (`PageSection`). */
|
|
39
|
+
section: "text-lg tracking-tight",
|
|
40
|
+
/** 16px. A card, dialog, drawer or settings-section title. */
|
|
41
|
+
card: "text-base tracking-tight",
|
|
42
|
+
/** 14px. A heading inside a compact surface: a sheet, a chart, a column. */
|
|
43
|
+
subsection: "text-sm"
|
|
44
|
+
},
|
|
45
|
+
leading: {
|
|
46
|
+
/** The rung's own line-height from `theme.css`. */
|
|
47
|
+
rung: "",
|
|
48
|
+
/** Line-height 1, for a title whose container's gap sets the rhythm. */
|
|
49
|
+
none: "leading-none"
|
|
50
|
+
},
|
|
51
|
+
/** Tabular figures, so a row of numbers can be compared without digits shifting. */
|
|
52
|
+
numeric: { true: "tabular-nums" },
|
|
53
|
+
tone: {
|
|
54
|
+
/** Inherit the surrounding colour — right on every surface by construction. */
|
|
55
|
+
inherit: "",
|
|
56
|
+
foreground: "text-foreground",
|
|
57
|
+
muted: "text-muted-foreground"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
size: "section",
|
|
62
|
+
leading: "rung",
|
|
63
|
+
tone: "inherit"
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* The conventional element for each heading size. Exported so a test (and a
|
|
68
|
+
* reader) can see the whole mapping in one place; pass `as` to depart from it.
|
|
69
|
+
*/
|
|
70
|
+
var headingElement = {
|
|
71
|
+
display: "h1",
|
|
72
|
+
title: "h1",
|
|
73
|
+
page: "h1",
|
|
74
|
+
section: "h2",
|
|
75
|
+
card: "h3",
|
|
76
|
+
subsection: "h4"
|
|
77
|
+
};
|
|
78
|
+
function Heading(props) {
|
|
79
|
+
const [local, rest] = splitProps(props, [
|
|
80
|
+
"as",
|
|
81
|
+
"size",
|
|
82
|
+
"leading",
|
|
83
|
+
"numeric",
|
|
84
|
+
"tone",
|
|
85
|
+
"class"
|
|
86
|
+
]);
|
|
87
|
+
return createComponent(Polymorphic, mergeProps({
|
|
88
|
+
get as() {
|
|
89
|
+
return local.as ?? headingElement[local.size ?? "section"];
|
|
90
|
+
},
|
|
91
|
+
"data-slot": "heading",
|
|
92
|
+
get ["class"]() {
|
|
93
|
+
return cn(headingVariants({
|
|
94
|
+
size: local.size,
|
|
95
|
+
leading: local.leading,
|
|
96
|
+
numeric: local.numeric,
|
|
97
|
+
tone: local.tone
|
|
98
|
+
}), local.class);
|
|
99
|
+
}
|
|
100
|
+
}, rest));
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Text.
|
|
104
|
+
*
|
|
105
|
+
* Everything that is not a heading. `text-sm` is the interface default, not 16px,
|
|
106
|
+
* and it carries three weights by role: 400 for body copy, 500 for a label or
|
|
107
|
+
* control text, 600 for emphasis. Below it, `caption` (12px) is metadata and
|
|
108
|
+
* `micro` (11px, 500) is the floor — keyboard keys and the status bar. `code` is
|
|
109
|
+
* the mono face at 12px, for anything a user compares character by character.
|
|
110
|
+
*
|
|
111
|
+
* `tone` is a separate axis from `variant` because "secondary" is a colour
|
|
112
|
+
* decision, not a size: a muted caption and a muted body line are both common.
|
|
113
|
+
* The default inherits, so text on a filled surface picks up that surface's
|
|
114
|
+
* foreground without the caller restating it.
|
|
115
|
+
*
|
|
116
|
+
* Defaults: `body` renders a `p`, `code` a `code`, every other variant a `span`.
|
|
117
|
+
*/
|
|
118
|
+
var textVariants = cva("", {
|
|
119
|
+
variants: {
|
|
120
|
+
variant: {
|
|
121
|
+
/** 14px / 400. Body copy and descriptions. */
|
|
122
|
+
body: "text-sm",
|
|
123
|
+
/** 14px / 500. Labels, control text, list-row titles. */
|
|
124
|
+
label: "text-sm font-medium",
|
|
125
|
+
/** 14px / 600. Emphasis inside body copy. */
|
|
126
|
+
strong: "text-sm font-semibold",
|
|
127
|
+
/** 12px / 400. Metadata, secondary rows, units. */
|
|
128
|
+
caption: "text-xs",
|
|
129
|
+
/** 11px / 500. The floor: keyboard keys, the status bar. */
|
|
130
|
+
micro: "text-2xs font-medium",
|
|
131
|
+
/** 12px mono. Ids, paths, hashes, inline code. */
|
|
132
|
+
code: "font-mono text-xs"
|
|
133
|
+
},
|
|
134
|
+
tone: {
|
|
135
|
+
inherit: "",
|
|
136
|
+
foreground: "text-foreground",
|
|
137
|
+
muted: "text-muted-foreground"
|
|
138
|
+
},
|
|
139
|
+
numeric: { true: "tabular-nums" }
|
|
140
|
+
},
|
|
141
|
+
defaultVariants: {
|
|
142
|
+
variant: "body",
|
|
143
|
+
tone: "inherit"
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
var textElement = {
|
|
147
|
+
body: "p",
|
|
148
|
+
label: "span",
|
|
149
|
+
strong: "span",
|
|
150
|
+
caption: "span",
|
|
151
|
+
micro: "span",
|
|
152
|
+
code: "code"
|
|
153
|
+
};
|
|
154
|
+
function Text(props) {
|
|
155
|
+
const [local, rest] = splitProps(props, [
|
|
156
|
+
"as",
|
|
157
|
+
"variant",
|
|
158
|
+
"tone",
|
|
159
|
+
"numeric",
|
|
160
|
+
"class"
|
|
161
|
+
]);
|
|
162
|
+
return createComponent(Polymorphic, mergeProps({
|
|
163
|
+
get as() {
|
|
164
|
+
return local.as ?? textElement[local.variant ?? "body"];
|
|
165
|
+
},
|
|
166
|
+
"data-slot": "text",
|
|
167
|
+
get ["class"]() {
|
|
168
|
+
return cn(textVariants({
|
|
169
|
+
variant: local.variant,
|
|
170
|
+
tone: local.tone,
|
|
171
|
+
numeric: local.numeric
|
|
172
|
+
}), local.class);
|
|
173
|
+
}
|
|
174
|
+
}, rest));
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
export { Heading, Text, headingElement, headingVariants, textElement, textVariants };
|
|
178
|
+
|
|
179
|
+
//# sourceMappingURL=typography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.js","names":["Polymorphic","PolymorphicProps","ComponentProps","splitProps","ValidComponent","cva","VariantProps","cn","headingVariants","variants","size","display","title","page","section","card","subsection","leading","rung","none","numeric","true","tone","inherit","foreground","muted","defaultVariants","headingElement","const","HeadingVariantProps","HeadingSize","HeadingProps","T","class","Heading","props","local","rest","as","_$createComponent","_$mergeProps","textVariants","variant","body","label","strong","caption","micro","code","textElement","TextVariantProps","TextVariant","TextProps","Text","_$createComponent","_$mergeProps"],"sources":["../../../../src/components/ui/typography/typography.tsx"],"sourcesContent":["import { Polymorphic, type PolymorphicProps } from '@kobalte/core/polymorphic'\nimport { type ComponentProps, splitProps, type ValidComponent } from 'solid-js'\nimport { cva, type VariantProps } from '#lib/variants'\nimport { cn } from '#lib/utils'\n\n/**\n * Typography.\n *\n * The type ladder in `theme.css` has eight rungs, each with its own leading. These\n * two components are where a rung is paired with its weight and tracking, so a call\n * site names a *role* — a page title, a section heading, a caption — and never\n * re-decides `text-xl font-semibold tracking-tight` for itself. Twenty call sites\n * that each choose a size and a weight drift; twenty that name a role cannot.\n *\n * **Size is visual; the element is the document outline.** They are separate\n * decisions and the API keeps them separate. Each size has a conventional default\n * element (`display`, `title` and `page` render an `h1`, `section` an `h2`, `card`\n * an `h3`, `subsection` an `h4`) so the common case needs no prop, but the default\n * is a convenience, not a coupling: a card-sized title that is the first heading\n * in a settings section is an `h2`, so it says `as=\"h2\"`. Never pick a `size` to get\n * a heading level, and never pick an element to get a size.\n *\n * Headings are 600, and weights stop at 600 — on a dark surface a bold word blooms.\n * Leading comes from the rung; `leading=\"none\"` is for a title whose surrounding\n * stack already sets the rhythm (a card or dialog header), and is the only other\n * option.\n */\nexport const headingVariants = cva('font-semibold', {\n variants: {\n size: {\n /** 30px. An app-level headline — a first-run or empty-app screen. Once per app. */\n display: 'text-3xl tracking-tight',\n /** 24px. A landing title or a headline figure larger than a stat's. */\n title: 'text-2xl tracking-tight',\n /** 20px. The title of a page (`PageHeaderTitle`). */\n page: 'text-xl tracking-tight',\n /** 18px. A section heading inside a page (`PageSection`). */\n section: 'text-lg tracking-tight',\n /** 16px. A card, dialog, drawer or settings-section title. */\n card: 'text-base tracking-tight',\n /** 14px. A heading inside a compact surface: a sheet, a chart, a column. */\n subsection: 'text-sm',\n },\n leading: {\n /** The rung's own line-height from `theme.css`. */\n rung: '',\n /** Line-height 1, for a title whose container's gap sets the rhythm. */\n none: 'leading-none',\n },\n /** Tabular figures, so a row of numbers can be compared without digits shifting. */\n numeric: {\n true: 'tabular-nums',\n },\n tone: {\n /** Inherit the surrounding colour — right on every surface by construction. */\n inherit: '',\n foreground: 'text-foreground',\n muted: 'text-muted-foreground',\n },\n },\n defaultVariants: {\n size: 'section',\n leading: 'rung',\n tone: 'inherit',\n },\n})\n\n/**\n * The conventional element for each heading size. Exported so a test (and a\n * reader) can see the whole mapping in one place; pass `as` to depart from it.\n */\nexport const headingElement = {\n display: 'h1',\n title: 'h1',\n page: 'h1',\n section: 'h2',\n card: 'h3',\n subsection: 'h4',\n} as const\n\ntype HeadingVariantProps = VariantProps<typeof headingVariants>\ntype HeadingSize = keyof typeof headingElement\n\nexport type HeadingProps<T extends ValidComponent = 'h2'> = PolymorphicProps<\n T,\n HeadingVariantProps & {\n class?: string\n }\n>\n\nexport function Heading<T extends ValidComponent = 'h2'>(props: HeadingProps<T>) {\n const [local, rest] = splitProps(props as HeadingProps & { as?: ValidComponent }, [\n 'as',\n 'size',\n 'leading',\n 'numeric',\n 'tone',\n 'class',\n ])\n\n return (\n <Polymorphic\n as={local.as ?? headingElement[(local.size ?? 'section') as HeadingSize]}\n data-slot=\"heading\"\n class={cn(\n headingVariants({\n size: local.size,\n leading: local.leading,\n numeric: local.numeric,\n tone: local.tone,\n }),\n local.class\n )}\n {...(rest as ComponentProps<'h2'>)}\n />\n )\n}\n\n/**\n * Text.\n *\n * Everything that is not a heading. `text-sm` is the interface default, not 16px,\n * and it carries three weights by role: 400 for body copy, 500 for a label or\n * control text, 600 for emphasis. Below it, `caption` (12px) is metadata and\n * `micro` (11px, 500) is the floor — keyboard keys and the status bar. `code` is\n * the mono face at 12px, for anything a user compares character by character.\n *\n * `tone` is a separate axis from `variant` because \"secondary\" is a colour\n * decision, not a size: a muted caption and a muted body line are both common.\n * The default inherits, so text on a filled surface picks up that surface's\n * foreground without the caller restating it.\n *\n * Defaults: `body` renders a `p`, `code` a `code`, every other variant a `span`.\n */\nexport const textVariants = cva('', {\n variants: {\n variant: {\n /** 14px / 400. Body copy and descriptions. */\n body: 'text-sm',\n /** 14px / 500. Labels, control text, list-row titles. */\n label: 'text-sm font-medium',\n /** 14px / 600. Emphasis inside body copy. */\n strong: 'text-sm font-semibold',\n /** 12px / 400. Metadata, secondary rows, units. */\n caption: 'text-xs',\n /** 11px / 500. The floor: keyboard keys, the status bar. */\n micro: 'text-2xs font-medium',\n /** 12px mono. Ids, paths, hashes, inline code. */\n code: 'font-mono text-xs',\n },\n tone: {\n inherit: '',\n foreground: 'text-foreground',\n muted: 'text-muted-foreground',\n },\n numeric: {\n true: 'tabular-nums',\n },\n },\n defaultVariants: {\n variant: 'body',\n tone: 'inherit',\n },\n})\n\nexport const textElement = {\n body: 'p',\n label: 'span',\n strong: 'span',\n caption: 'span',\n micro: 'span',\n code: 'code',\n} as const\n\ntype TextVariantProps = VariantProps<typeof textVariants>\ntype TextVariant = keyof typeof textElement\n\nexport type TextProps<T extends ValidComponent = 'p'> = PolymorphicProps<\n T,\n TextVariantProps & {\n class?: string\n }\n>\n\nexport function Text<T extends ValidComponent = 'p'>(props: TextProps<T>) {\n const [local, rest] = splitProps(props as TextProps & { as?: ValidComponent }, [\n 'as',\n 'variant',\n 'tone',\n 'numeric',\n 'class',\n ])\n\n return (\n <Polymorphic\n as={local.as ?? textElement[(local.variant ?? 'body') as TextVariant]}\n data-slot=\"text\"\n class={cn(\n textVariants({ variant: local.variant, tone: local.tone, numeric: local.numeric }),\n local.class\n )}\n {...(rest as ComponentProps<'p'>)}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAaQ,kBAAkBH,IAAI,iBAAiB;CAClDI,UAAU;EACRC,MAAM;;GAEJC,SAAS;;GAETC,OAAO;;GAEPC,MAAM;;GAENC,SAAS;;GAETC,MAAM;;GAENC,YAAY;EACd;EACAC,SAAS;;GAEPC,MAAM;;GAENC,MAAM;EACR;;EAEAC,SAAS,EACPC,MAAM,eACR;EACAC,MAAM;;GAEJC,SAAS;GACTC,YAAY;GACZC,OAAO;EACT;CACF;CACAC,iBAAiB;EACfhB,MAAM;EACNO,SAAS;EACTK,MAAM;CACR;AACF,CAAC;;;;;AAMD,IAAaK,iBAAiB;CAC5BhB,SAAS;CACTC,OAAO;CACPC,MAAM;CACNC,SAAS;CACTC,MAAM;CACNC,YAAY;AACd;AAYA,SAAgBkB,QAAyCC,OAAwB;CAC/E,MAAM,CAACC,OAAOC,QAAQlC,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ED
|
@@ -72,6 +72,7 @@ export * from './components/ui/toast';
|
|
|
72
72
|
export * from './components/ui/toggle';
|
|
73
73
|
export * from './components/ui/toggle-group';
|
|
74
74
|
export * from './components/ui/tooltip';
|
|
75
|
+
export * from './components/ui/typography';
|
|
75
76
|
export * from './components/motion';
|
|
76
77
|
export * from './components/layout/split-layout';
|
|
77
78
|
export * from './components/layout/floating-preview';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC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AAS,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3F,OAAO,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,EACb,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,SAAS,GACf,MAAM,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { cn } from "./lib/utils.js";
|
|
|
2
2
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/ui/accordion/accordion.js";
|
|
3
3
|
import { controlInteractive, controlSize, controlSizeIcon, controlSizes, cva, surfaceInteractive } from "./lib/variants.js";
|
|
4
4
|
import { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/ui/alert/alert.js";
|
|
5
|
+
import { Heading, Text, headingElement, headingVariants, textElement, textVariants } from "./components/ui/typography/typography.js";
|
|
5
6
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/ui/alert-dialog/alert-dialog.js";
|
|
6
7
|
import { AspectRatio } from "./components/ui/aspect-ratio/aspect-ratio.js";
|
|
7
8
|
import { Avatar, AvatarFallback, AvatarImage, initialsFrom } from "./components/ui/avatar/avatar.js";
|
|
@@ -120,4 +121,4 @@ import { AboutDialog } from "./components/composites/about-dialog/about-dialog.j
|
|
|
120
121
|
import { HelpCenter } from "./components/composites/help-center/help-center.js";
|
|
121
122
|
import { WorkspaceMark } from "./components/composites/workspace-mark/workspace-mark.js";
|
|
122
123
|
import { writeClipboardText } from "./lib/clipboard.js";
|
|
123
|
-
export { AboutDialog, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearancePanel, AppearancePopover, AspectRatio, AttachmentCard, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CalendarSurface, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChatComposer, Checkbox, CheckboxDescription, CheckboxLabel, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposerAttachmentButton, ComposerHint, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ConversationAvatar, ConversationSurface, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FloatingPreview, FormField, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdGroup, Label, ListGroup, ListRow, ListRowControl, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ModalDialog, Motion, NO_FLOATING_PREVIEW_OBSTACLES, NO_PREVIEW_MINI_PLAYER_OBSTACLES, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, PREVIEW_MINI_PLAYER_CORNER_RADIUS, PREVIEW_MINI_PLAYER_EDGE_GAP, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Spinner, SplitLayout, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, TranscriptComposition, Tree, TreeRow, UpdateDialog, ValueCombobox, VirtualWindow, WorkspaceMark, accentPresets, alertVariants, allTokens, badgeVariants, boardCardTitleVariants, builtinThemes, buttonVariants, clampFloatingPreviewPosition, clampPreviewMiniPlayerPosition, closePane, cn, colorTokens, computeLayoutFrames, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countLeaves, countLines, createAppMenuItems, createLayoutState, cva, defaultDarkThemeId, defaultLightThemeId, defaultThemeSelection, densityTokens, designTokens, diffLineVariants, diffStats, diffTargetPath, elevationTokens, entityIconVariants, expandAll, findTokenRanges, focusPane, fontOptions, formatBytes, formatReleaseDate, formatToken, initialsFrom, inlineScriptLiteral, isPasteBlock, itemVariants, keyedRows, layoutDepth, listLeaves, monogram, motionTokens, movePane, neighborLeaf, nextSeq, normalizeLayout, parseDiff, plainTextFromMarkdown, pruneBlocks, radiusTokens, recollapsePastes, remapCarriedBlocks, resizeFloatingPreview, resizePreviewMiniPlayer, resizeSplit, resolveFloatingPreviewFrame, resolvePreviewMiniPlayerFrame, resolvedDensity, sheetVariants, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, splitPane, statusDotVariants, stripTrailingBlankLines, surfaceInteractive, swapPanes, textareaVariants, themeById, themeCssVariables, themeFamilies, themeScript, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, transcriptDisclosureKey, typographyTokens, undoClosePane, undocumentedTokenAliases, useSideRail, useTheme, validateTheme, validateThemeRegistry, writeClipboardText, zIndexTokens };
|
|
124
|
+
export { AboutDialog, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearancePanel, AppearancePopover, AspectRatio, AttachmentCard, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CalendarSurface, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChatComposer, Checkbox, CheckboxDescription, CheckboxLabel, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposerAttachmentButton, ComposerHint, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ConversationAvatar, ConversationSurface, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FloatingPreview, FormField, Heading, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdGroup, Label, ListGroup, ListRow, ListRowControl, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ModalDialog, Motion, NO_FLOATING_PREVIEW_OBSTACLES, NO_PREVIEW_MINI_PLAYER_OBSTACLES, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, PREVIEW_MINI_PLAYER_CORNER_RADIUS, PREVIEW_MINI_PLAYER_EDGE_GAP, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Spinner, SplitLayout, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, TranscriptComposition, Tree, TreeRow, UpdateDialog, ValueCombobox, VirtualWindow, WorkspaceMark, accentPresets, alertVariants, allTokens, badgeVariants, boardCardTitleVariants, builtinThemes, buttonVariants, clampFloatingPreviewPosition, clampPreviewMiniPlayerPosition, closePane, cn, colorTokens, computeLayoutFrames, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countLeaves, countLines, createAppMenuItems, createLayoutState, cva, defaultDarkThemeId, defaultLightThemeId, defaultThemeSelection, densityTokens, designTokens, diffLineVariants, diffStats, diffTargetPath, elevationTokens, entityIconVariants, expandAll, findTokenRanges, focusPane, fontOptions, formatBytes, formatReleaseDate, formatToken, headingElement, headingVariants, initialsFrom, inlineScriptLiteral, isPasteBlock, itemVariants, keyedRows, layoutDepth, listLeaves, monogram, motionTokens, movePane, neighborLeaf, nextSeq, normalizeLayout, parseDiff, plainTextFromMarkdown, pruneBlocks, radiusTokens, recollapsePastes, remapCarriedBlocks, resizeFloatingPreview, resizePreviewMiniPlayer, resizeSplit, resolveFloatingPreviewFrame, resolvePreviewMiniPlayerFrame, resolvedDensity, sheetVariants, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, splitPane, statusDotVariants, stripTrailingBlankLines, surfaceInteractive, swapPanes, textElement, textVariants, textareaVariants, themeById, themeCssVariables, themeFamilies, themeScript, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, transcriptDisclosureKey, typographyTokens, undoClosePane, undocumentedTokenAliases, useSideRail, useTheme, validateTheme, validateThemeRegistry, writeClipboardText, zIndexTokens };
|
package/dist/r/account-menu.json
CHANGED
package/dist/r/alert-dialog.json
CHANGED
package/dist/r/card.json
CHANGED
package/dist/r/dialog.json
CHANGED
package/dist/r/drawer.json
CHANGED
package/dist/r/field.json
CHANGED
package/dist/r/help-center.json
CHANGED
package/dist/r/page.json
CHANGED
package/dist/r/registry.json
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"@kobalte/core@^0.13.14"
|
|
62
62
|
],
|
|
63
63
|
"registryDependencies": [
|
|
64
|
+
"@adea-ai/ui/typography",
|
|
64
65
|
"lib"
|
|
65
66
|
],
|
|
66
67
|
"files": [
|
|
@@ -270,6 +271,7 @@
|
|
|
270
271
|
"description": "",
|
|
271
272
|
"dependencies": [],
|
|
272
273
|
"registryDependencies": [
|
|
274
|
+
"@adea-ai/ui/typography",
|
|
273
275
|
"lib"
|
|
274
276
|
],
|
|
275
277
|
"files": [
|
|
@@ -533,6 +535,7 @@
|
|
|
533
535
|
"lucide-solid@^1.48.0"
|
|
534
536
|
],
|
|
535
537
|
"registryDependencies": [
|
|
538
|
+
"@adea-ai/ui/typography",
|
|
536
539
|
"lib"
|
|
537
540
|
],
|
|
538
541
|
"files": [
|
|
@@ -579,6 +582,7 @@
|
|
|
579
582
|
"@corvu/drawer@^0.2.4"
|
|
580
583
|
],
|
|
581
584
|
"registryDependencies": [
|
|
585
|
+
"@adea-ai/ui/typography",
|
|
582
586
|
"lib"
|
|
583
587
|
],
|
|
584
588
|
"files": [
|
|
@@ -683,6 +687,7 @@
|
|
|
683
687
|
"registryDependencies": [
|
|
684
688
|
"@adea-ai/ui/input",
|
|
685
689
|
"@adea-ai/ui/label",
|
|
690
|
+
"@adea-ai/ui/typography",
|
|
686
691
|
"lib"
|
|
687
692
|
],
|
|
688
693
|
"files": [
|
|
@@ -1174,6 +1179,7 @@
|
|
|
1174
1179
|
],
|
|
1175
1180
|
"registryDependencies": [
|
|
1176
1181
|
"@adea-ai/ui/dialog",
|
|
1182
|
+
"@adea-ai/ui/typography",
|
|
1177
1183
|
"lib"
|
|
1178
1184
|
],
|
|
1179
1185
|
"files": [
|
|
@@ -1496,6 +1502,30 @@
|
|
|
1496
1502
|
}
|
|
1497
1503
|
]
|
|
1498
1504
|
},
|
|
1505
|
+
{
|
|
1506
|
+
"name": "typography",
|
|
1507
|
+
"type": "registry:ui",
|
|
1508
|
+
"title": "Typography",
|
|
1509
|
+
"description": "",
|
|
1510
|
+
"dependencies": [
|
|
1511
|
+
"@kobalte/core@^0.13.14"
|
|
1512
|
+
],
|
|
1513
|
+
"registryDependencies": [
|
|
1514
|
+
"lib"
|
|
1515
|
+
],
|
|
1516
|
+
"files": [
|
|
1517
|
+
{
|
|
1518
|
+
"path": "src/components/ui/typography/index.ts",
|
|
1519
|
+
"type": "registry:ui",
|
|
1520
|
+
"target": "components/ui/typography/index.ts"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"path": "src/components/ui/typography/typography.tsx",
|
|
1524
|
+
"type": "registry:ui",
|
|
1525
|
+
"target": "components/ui/typography/typography.tsx"
|
|
1526
|
+
}
|
|
1527
|
+
]
|
|
1528
|
+
},
|
|
1499
1529
|
{
|
|
1500
1530
|
"name": "app-shell",
|
|
1501
1531
|
"type": "registry:ui",
|
|
@@ -1582,6 +1612,7 @@
|
|
|
1582
1612
|
"description": "",
|
|
1583
1613
|
"dependencies": [],
|
|
1584
1614
|
"registryDependencies": [
|
|
1615
|
+
"@adea-ai/ui/typography",
|
|
1585
1616
|
"lib"
|
|
1586
1617
|
],
|
|
1587
1618
|
"files": [
|
|
@@ -1825,6 +1856,7 @@
|
|
|
1825
1856
|
"registryDependencies": [
|
|
1826
1857
|
"@adea-ai/ui/button",
|
|
1827
1858
|
"@adea-ai/ui/dropdown-menu",
|
|
1859
|
+
"@adea-ai/ui/side-rail",
|
|
1828
1860
|
"@adea-ai/ui/tooltip",
|
|
1829
1861
|
"lib"
|
|
1830
1862
|
],
|
|
@@ -1975,6 +2007,7 @@
|
|
|
1975
2007
|
"@adea-ai/ui/alert",
|
|
1976
2008
|
"@adea-ai/ui/card",
|
|
1977
2009
|
"@adea-ai/ui/kbd",
|
|
2010
|
+
"@adea-ai/ui/typography",
|
|
1978
2011
|
"lib"
|
|
1979
2012
|
],
|
|
1980
2013
|
"files": [
|
|
@@ -2053,6 +2086,7 @@
|
|
|
2053
2086
|
"registryDependencies": [
|
|
2054
2087
|
"@adea-ai/ui/sidebar-nav",
|
|
2055
2088
|
"@adea-ai/ui/tabs",
|
|
2089
|
+
"@adea-ai/ui/typography",
|
|
2056
2090
|
"lib"
|
|
2057
2091
|
],
|
|
2058
2092
|
"files": [
|
|
@@ -2087,6 +2121,7 @@
|
|
|
2087
2121
|
"lucide-solid@^1.48.0"
|
|
2088
2122
|
],
|
|
2089
2123
|
"registryDependencies": [
|
|
2124
|
+
"@adea-ai/ui/typography",
|
|
2090
2125
|
"lib"
|
|
2091
2126
|
],
|
|
2092
2127
|
"files": [
|
|
@@ -2145,6 +2180,7 @@
|
|
|
2145
2180
|
"@adea-ai/ui/button",
|
|
2146
2181
|
"@adea-ai/ui/dialog",
|
|
2147
2182
|
"@adea-ai/ui/progress",
|
|
2183
|
+
"@adea-ai/ui/typography",
|
|
2148
2184
|
"lib"
|
|
2149
2185
|
],
|
|
2150
2186
|
"files": [
|
|
@@ -2320,6 +2356,7 @@
|
|
|
2320
2356
|
"@adea-ai/ui/radio-group",
|
|
2321
2357
|
"@adea-ai/ui/toggle-group",
|
|
2322
2358
|
"@adea-ai/ui/tooltip",
|
|
2359
|
+
"@adea-ai/ui/typography",
|
|
2323
2360
|
"lib"
|
|
2324
2361
|
],
|
|
2325
2362
|
"files": [
|
package/dist/r/settings.json
CHANGED
package/dist/r/sheet.json
CHANGED
|
@@ -94,6 +94,7 @@ export function AboutDialog(props: AboutDialogProps) {
|
|
|
94
94
|
return (
|
|
95
95
|
<Dialog open={props.open} onOpenChange={props.onOpenChange}>
|
|
96
96
|
<DialogContent
|
|
97
|
+
class="w-96"
|
|
97
98
|
onKeyDown={(event: KeyboardEvent) => {
|
|
98
99
|
// Tooltip help on the identity actions cannot trap Escape in this popup.
|
|
99
100
|
if (event.key === 'Escape' && !event.defaultPrevented) {
|
|
@@ -114,8 +115,8 @@ export function AboutDialog(props: AboutDialogProps) {
|
|
|
114
115
|
}}
|
|
115
116
|
onCloseAutoFocus={focus.onCloseAutoFocus}
|
|
116
117
|
>
|
|
117
|
-
<div class="flex flex-col items-center gap-
|
|
118
|
-
<img src={props.appIcon} alt="" class="size-
|
|
118
|
+
<div class="flex flex-col items-center gap-2 text-center">
|
|
119
|
+
<img src={props.appIcon} alt="" class="size-14" aria-hidden="true" />
|
|
119
120
|
<DialogTitle>{props.appName}</DialogTitle>
|
|
120
121
|
{/* Body text on the dialog's themed surface: primary ink measures
|
|
121
122
|
below AA against the lighter dialog backgrounds across schemes,
|