@sereno-ds/ui 0.28.0 → 0.29.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/dist/core/Typography.d.ts +30 -0
- package/dist/core/Typography.js +96 -0
- package/dist/core/Typography.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type TypographyVariant = 'display' | 'h1' | 'h2' | 'h3' | 'body' | 'bodySm' | 'label' | 'caption' | 'eyebrow';
|
|
4
|
+
type TypographyColor = 'primary' | 'secondary' | 'muted' | 'disabled' | 'inverse' | 'brand' | 'accent' | 'link' | 'error';
|
|
5
|
+
interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
variant?: TypographyVariant;
|
|
7
|
+
/** Overrides the variant's own default color token. */
|
|
8
|
+
color?: TypographyColor;
|
|
9
|
+
/** Render as a different element than the variant's own default tag — e.g. an
|
|
10
|
+
* `h3`-styled label that should not enter the document's heading outline. */
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
/** Single-line ellipsis. Needs a width-constrained ancestor to actually clip. */
|
|
13
|
+
truncate?: boolean;
|
|
14
|
+
/** Tabular (fixed-width) figures — digits line up column-to-column instead of
|
|
15
|
+
* each taking their own width. For a value that updates or stacks with others
|
|
16
|
+
* at the same position: countdowns, ticket/queue numbers, times, prices. */
|
|
17
|
+
numeric?: boolean;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Text primitive — one place for the type-scale/font-family/weight combos
|
|
22
|
+
* every screen otherwise reconstructs by hand (see `/design-system/tokens`
|
|
23
|
+
* for the raw scale this wraps). `variant` picks the look *and* the default
|
|
24
|
+
* semantic tag; `as` overrides just the tag, `color` just the color, so a
|
|
25
|
+
* heading-styled label that isn't really a document heading, or a caption in
|
|
26
|
+
* the brand color, are one-prop changes, not a new style object.
|
|
27
|
+
*/
|
|
28
|
+
declare function Typography({ variant, color, as, truncate, numeric, style, children, ...rest }: TypographyProps): React.JSX.Element;
|
|
29
|
+
|
|
30
|
+
export { Typography, type TypographyColor, type TypographyProps, type TypographyVariant };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { sx } from "../_internal/style.js";
|
|
4
|
+
const VARIANTS = {
|
|
5
|
+
display: {
|
|
6
|
+
as: "h1",
|
|
7
|
+
style: { fontFamily: "var(--font-display)", fontSize: "var(--text-5xl)", fontWeight: "var(--weight-extrabold)", letterSpacing: "var(--tracking-tight)", lineHeight: "var(--leading-tight)" }
|
|
8
|
+
},
|
|
9
|
+
h1: {
|
|
10
|
+
as: "h1",
|
|
11
|
+
style: { fontFamily: "var(--font-display)", fontSize: "var(--text-3xl)", fontWeight: "var(--weight-bold)", letterSpacing: "var(--tracking-tight)", lineHeight: "var(--leading-tight)" }
|
|
12
|
+
},
|
|
13
|
+
h2: {
|
|
14
|
+
as: "h2",
|
|
15
|
+
style: { fontFamily: "var(--font-display)", fontSize: "var(--text-xl)", fontWeight: "var(--weight-bold)", letterSpacing: "var(--tracking-snug)", lineHeight: "var(--leading-tight)" }
|
|
16
|
+
},
|
|
17
|
+
h3: {
|
|
18
|
+
as: "h3",
|
|
19
|
+
style: { fontFamily: "var(--font-display)", fontSize: "var(--text-md)", fontWeight: "var(--weight-bold)", letterSpacing: "var(--tracking-snug)", lineHeight: "var(--leading-snug)" }
|
|
20
|
+
},
|
|
21
|
+
body: {
|
|
22
|
+
as: "p",
|
|
23
|
+
style: { fontFamily: "var(--font-body)", fontSize: "var(--text-base)", fontWeight: "var(--weight-regular)", lineHeight: "var(--leading-normal)" }
|
|
24
|
+
},
|
|
25
|
+
bodySm: {
|
|
26
|
+
as: "p",
|
|
27
|
+
style: { fontFamily: "var(--font-body)", fontSize: "var(--text-sm)", fontWeight: "var(--weight-regular)", lineHeight: "var(--leading-normal)" }
|
|
28
|
+
},
|
|
29
|
+
label: {
|
|
30
|
+
as: "span",
|
|
31
|
+
style: { fontFamily: "var(--font-body)", fontSize: "var(--text-sm)", fontWeight: "var(--weight-semibold)", letterSpacing: "var(--tracking-snug)", lineHeight: "var(--leading-snug)" }
|
|
32
|
+
},
|
|
33
|
+
caption: {
|
|
34
|
+
as: "span",
|
|
35
|
+
style: { fontFamily: "var(--font-body)", fontSize: "var(--text-xs)", fontWeight: "var(--weight-regular)", lineHeight: "var(--leading-normal)" }
|
|
36
|
+
},
|
|
37
|
+
eyebrow: {
|
|
38
|
+
as: "span",
|
|
39
|
+
style: {
|
|
40
|
+
fontFamily: "var(--font-body)",
|
|
41
|
+
fontSize: "var(--text-2xs)",
|
|
42
|
+
fontWeight: "var(--weight-semibold)",
|
|
43
|
+
letterSpacing: "var(--tracking-caps)",
|
|
44
|
+
textTransform: "uppercase",
|
|
45
|
+
lineHeight: "var(--leading-normal)"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const DEFAULT_COLOR = {
|
|
50
|
+
display: "primary",
|
|
51
|
+
h1: "primary",
|
|
52
|
+
h2: "primary",
|
|
53
|
+
h3: "primary",
|
|
54
|
+
body: "primary",
|
|
55
|
+
bodySm: "secondary",
|
|
56
|
+
label: "primary",
|
|
57
|
+
caption: "muted",
|
|
58
|
+
eyebrow: "muted"
|
|
59
|
+
};
|
|
60
|
+
const COLOR_TOKEN = {
|
|
61
|
+
primary: "--text-primary",
|
|
62
|
+
secondary: "--text-secondary",
|
|
63
|
+
muted: "--text-muted",
|
|
64
|
+
disabled: "--text-disabled",
|
|
65
|
+
inverse: "--text-inverse",
|
|
66
|
+
brand: "--text-brand",
|
|
67
|
+
accent: "--text-accent",
|
|
68
|
+
link: "--text-link",
|
|
69
|
+
error: "--interactive-error"
|
|
70
|
+
};
|
|
71
|
+
function Typography({ variant = "body", color, as, truncate, numeric, style, children, ...rest }) {
|
|
72
|
+
const v = VARIANTS[variant];
|
|
73
|
+
const Tag = as ?? v.as;
|
|
74
|
+
return /* @__PURE__ */ jsx(
|
|
75
|
+
Tag,
|
|
76
|
+
{
|
|
77
|
+
...rest,
|
|
78
|
+
style: sx({
|
|
79
|
+
margin: 0,
|
|
80
|
+
...v.style,
|
|
81
|
+
color: "var(" + COLOR_TOKEN[color ?? DEFAULT_COLOR[variant]] + ")",
|
|
82
|
+
// `overflow`/`textOverflow` are no-ops on a plain inline box (the
|
|
83
|
+
// default for the `span`-tagged variants) — `block` makes the
|
|
84
|
+
// element actually respect a constrained-width ancestor.
|
|
85
|
+
...truncate ? { display: "block", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } : null,
|
|
86
|
+
...numeric ? { fontVariantNumeric: "tabular-nums" } : null,
|
|
87
|
+
...style
|
|
88
|
+
}),
|
|
89
|
+
children
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
Typography
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=Typography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/Typography.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { sx } from '../_internal/style';\n\nexport type TypographyVariant = 'display' | 'h1' | 'h2' | 'h3' | 'body' | 'bodySm' | 'label' | 'caption' | 'eyebrow';\nexport type TypographyColor = 'primary' | 'secondary' | 'muted' | 'disabled' | 'inverse' | 'brand' | 'accent' | 'link' | 'error';\n\nexport interface TypographyProps extends React.HTMLAttributes<HTMLElement> {\n variant?: TypographyVariant;\n /** Overrides the variant's own default color token. */\n color?: TypographyColor;\n /** Render as a different element than the variant's own default tag — e.g. an\n * `h3`-styled label that should not enter the document's heading outline. */\n as?: React.ElementType;\n /** Single-line ellipsis. Needs a width-constrained ancestor to actually clip. */\n truncate?: boolean;\n /** Tabular (fixed-width) figures — digits line up column-to-column instead of\n * each taking their own width. For a value that updates or stacks with others\n * at the same position: countdowns, ticket/queue numbers, times, prices. */\n numeric?: boolean;\n children?: React.ReactNode;\n}\n\nconst VARIANTS: Record<TypographyVariant, { as: React.ElementType; style: React.CSSProperties }> = {\n display: {\n as: 'h1',\n style: { fontFamily: 'var(--font-display)', fontSize: 'var(--text-5xl)', fontWeight: 'var(--weight-extrabold)', letterSpacing: 'var(--tracking-tight)', lineHeight: 'var(--leading-tight)' },\n },\n h1: {\n as: 'h1',\n style: { fontFamily: 'var(--font-display)', fontSize: 'var(--text-3xl)', fontWeight: 'var(--weight-bold)', letterSpacing: 'var(--tracking-tight)', lineHeight: 'var(--leading-tight)' },\n },\n h2: {\n as: 'h2',\n style: { fontFamily: 'var(--font-display)', fontSize: 'var(--text-xl)', fontWeight: 'var(--weight-bold)', letterSpacing: 'var(--tracking-snug)', lineHeight: 'var(--leading-tight)' },\n },\n h3: {\n as: 'h3',\n style: { fontFamily: 'var(--font-display)', fontSize: 'var(--text-md)', fontWeight: 'var(--weight-bold)', letterSpacing: 'var(--tracking-snug)', lineHeight: 'var(--leading-snug)' },\n },\n body: {\n as: 'p',\n style: { fontFamily: 'var(--font-body)', fontSize: 'var(--text-base)', fontWeight: 'var(--weight-regular)', lineHeight: 'var(--leading-normal)' },\n },\n bodySm: {\n as: 'p',\n style: { fontFamily: 'var(--font-body)', fontSize: 'var(--text-sm)', fontWeight: 'var(--weight-regular)', lineHeight: 'var(--leading-normal)' },\n },\n label: {\n as: 'span',\n style: { fontFamily: 'var(--font-body)', fontSize: 'var(--text-sm)', fontWeight: 'var(--weight-semibold)', letterSpacing: 'var(--tracking-snug)', lineHeight: 'var(--leading-snug)' },\n },\n caption: {\n as: 'span',\n style: { fontFamily: 'var(--font-body)', fontSize: 'var(--text-xs)', fontWeight: 'var(--weight-regular)', lineHeight: 'var(--leading-normal)' },\n },\n eyebrow: {\n as: 'span',\n style: {\n fontFamily: 'var(--font-body)',\n fontSize: 'var(--text-2xs)',\n fontWeight: 'var(--weight-semibold)',\n letterSpacing: 'var(--tracking-caps)',\n textTransform: 'uppercase',\n lineHeight: 'var(--leading-normal)',\n },\n },\n};\n\n// Each variant's own sensible default — overridable via the `color` prop.\nconst DEFAULT_COLOR: Record<TypographyVariant, TypographyColor> = {\n display: 'primary',\n h1: 'primary',\n h2: 'primary',\n h3: 'primary',\n body: 'primary',\n bodySm: 'secondary',\n label: 'primary',\n caption: 'muted',\n eyebrow: 'muted',\n};\n\nconst COLOR_TOKEN: Record<TypographyColor, string> = {\n primary: '--text-primary',\n secondary: '--text-secondary',\n muted: '--text-muted',\n disabled: '--text-disabled',\n inverse: '--text-inverse',\n brand: '--text-brand',\n accent: '--text-accent',\n link: '--text-link',\n error: '--interactive-error',\n};\n\n/**\n * Text primitive — one place for the type-scale/font-family/weight combos\n * every screen otherwise reconstructs by hand (see `/design-system/tokens`\n * for the raw scale this wraps). `variant` picks the look *and* the default\n * semantic tag; `as` overrides just the tag, `color` just the color, so a\n * heading-styled label that isn't really a document heading, or a caption in\n * the brand color, are one-prop changes, not a new style object.\n */\nexport function Typography({ variant = 'body', color, as, truncate, numeric, style, children, ...rest }: TypographyProps) {\n const v = VARIANTS[variant];\n const Tag = as ?? v.as;\n return (\n <Tag\n {...rest}\n style={sx({\n margin: 0,\n ...v.style,\n color: 'var(' + COLOR_TOKEN[color ?? DEFAULT_COLOR[variant]] + ')',\n // `overflow`/`textOverflow` are no-ops on a plain inline box (the\n // default for the `span`-tagged variants) — `block` makes the\n // element actually respect a constrained-width ancestor.\n ...(truncate ? { display: 'block', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } : null),\n ...(numeric ? { fontVariantNumeric: 'tabular-nums' } : null),\n ...style,\n })}\n >\n {children}\n </Tag>\n );\n}\n"],"mappings":";AA2GI;AAxGJ,SAAS,UAAU;AAqBnB,MAAM,WAA6F;AAAA,EACjG,SAAS;AAAA,IACP,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,uBAAuB,UAAU,mBAAmB,YAAY,2BAA2B,eAAe,yBAAyB,YAAY,uBAAuB;AAAA,EAC7L;AAAA,EACA,IAAI;AAAA,IACF,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,uBAAuB,UAAU,mBAAmB,YAAY,sBAAsB,eAAe,yBAAyB,YAAY,uBAAuB;AAAA,EACxL;AAAA,EACA,IAAI;AAAA,IACF,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,uBAAuB,UAAU,kBAAkB,YAAY,sBAAsB,eAAe,wBAAwB,YAAY,uBAAuB;AAAA,EACtL;AAAA,EACA,IAAI;AAAA,IACF,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,uBAAuB,UAAU,kBAAkB,YAAY,sBAAsB,eAAe,wBAAwB,YAAY,sBAAsB;AAAA,EACrL;AAAA,EACA,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,oBAAoB,UAAU,oBAAoB,YAAY,yBAAyB,YAAY,wBAAwB;AAAA,EAClJ;AAAA,EACA,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,oBAAoB,UAAU,kBAAkB,YAAY,yBAAyB,YAAY,wBAAwB;AAAA,EAChJ;AAAA,EACA,OAAO;AAAA,IACL,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,oBAAoB,UAAU,kBAAkB,YAAY,0BAA0B,eAAe,wBAAwB,YAAY,sBAAsB;AAAA,EACtL;AAAA,EACA,SAAS;AAAA,IACP,IAAI;AAAA,IACJ,OAAO,EAAE,YAAY,oBAAoB,UAAU,kBAAkB,YAAY,yBAAyB,YAAY,wBAAwB;AAAA,EAChJ;AAAA,EACA,SAAS;AAAA,IACP,IAAI;AAAA,IACJ,OAAO;AAAA,MACL,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,eAAe;AAAA,MACf,YAAY;AAAA,IACd;AAAA,EACF;AACF;AAGA,MAAM,gBAA4D;AAAA,EAChE,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AACX;AAEA,MAAM,cAA+C;AAAA,EACnD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU;AAAA,EACV,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AACT;AAUO,SAAS,WAAW,EAAE,UAAU,QAAQ,OAAO,IAAI,UAAU,SAAS,OAAO,UAAU,GAAG,KAAK,GAAoB;AACxH,QAAM,IAAI,SAAS,OAAO;AAC1B,QAAM,MAAM,MAAM,EAAE;AACpB,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,OAAO,GAAG;AAAA,QACR,QAAQ;AAAA,QACR,GAAG,EAAE;AAAA,QACL,OAAO,SAAS,YAAY,SAAS,cAAc,OAAO,CAAC,IAAI;AAAA;AAAA;AAAA;AAAA,QAI/D,GAAI,WAAW,EAAE,SAAS,SAAS,UAAU,UAAU,cAAc,YAAY,YAAY,SAAS,IAAI;AAAA,QAC1G,GAAI,UAAU,EAAE,oBAAoB,eAAe,IAAI;AAAA,QACvD,GAAG;AAAA,MACL,CAAC;AAAA,MAEA;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Typography, TypographyColor, TypographyProps, TypographyVariant } from './core/Typography.js';
|
|
1
2
|
export { Button, ButtonProps } from './core/Button.js';
|
|
2
3
|
export { IconButton, IconButtonProps } from './core/IconButton.js';
|
|
3
4
|
export { Badge, BadgeProps } from './core/Badge.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Typography } from "./core/Typography.js";
|
|
1
2
|
import { Button } from "./core/Button.js";
|
|
2
3
|
import { IconButton } from "./core/IconButton.js";
|
|
3
4
|
import { Badge } from "./core/Badge.js";
|
|
@@ -70,6 +71,7 @@ export {
|
|
|
70
71
|
Toast,
|
|
71
72
|
ToastProvider,
|
|
72
73
|
TopBar,
|
|
74
|
+
Typography,
|
|
73
75
|
useToast
|
|
74
76
|
};
|
|
75
77
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Sereno Design System — public component surface. See the /design-system\n// showcase for the live catalog, or the barrel smoke test for the full list.\n// Icons are passed in as props (lucide-react), never imported here; theming is\n// 100% CSS custom properties.\n\n// core\nexport { Button, type ButtonProps } from './core/Button';\nexport { IconButton, type IconButtonProps } from './core/IconButton';\nexport { Badge, type BadgeProps } from './core/Badge';\nexport { Card, type CardProps } from './core/Card';\nexport { Avatar, type AvatarProps } from './core/Avatar';\nexport { Brand, type BrandProps } from './core/Brand';\nexport { Menu, type MenuProps, type MenuItem, type MenuEntry, type MenuSeparator, type MenuHeading } from './core/Menu';\nexport {\n Table,\n type TableProps,\n type TableRowProps,\n type HeaderCellProps,\n type CellProps,\n type TableSort,\n type SortDirection,\n} from './core/Table';\n\n// forms\nexport { Input, type InputProps } from './forms/Input';\nexport { Textarea, type TextareaProps } from './forms/Textarea';\nexport { Select, type SelectProps, type SelectOption } from './forms/Select';\nexport { Checkbox, type CheckboxProps } from './forms/Checkbox';\nexport { Radio, type RadioProps } from './forms/Radio';\nexport { Switch, type SwitchProps } from './forms/Switch';\nexport { DateTimePicker, type DateTimePickerProps, type TimeSlot } from './forms/DateTimePicker';\nexport { DatePicker, type DatePickerProps } from './forms/DatePicker';\nexport { FileUpload, type FileUploadProps } from './forms/FileUpload';\nexport { AvatarUpload, type AvatarUploadProps } from './forms/AvatarUpload';\nexport { SearchInput, type SearchInputProps } from './forms/SearchInput';\n\n// navigation\nexport { TopBar, type TopBarProps, type TopBarLeadingProps, type TopBarTitleProps, type TopBarActionsProps } from './navigation/TopBar';\nexport { Tabs, type TabsProps, type TabsListProps, type TabsTabProps, type TabsPanelProps } from './navigation/Tabs';\nexport { BottomNav, type BottomNavProps, type BottomNavItemProps } from './navigation/BottomNav';\nexport {\n SidebarNav,\n type SidebarNavProps,\n type SidebarNavSectionProps,\n type SidebarNavItemProps,\n type SidebarNavSubItemProps,\n} from './navigation/SidebarNav';\nexport { Stepper, type StepperProps, type StepperStepProps } from './navigation/Stepper';\n\n// feedback\nexport { Alert, type AlertProps } from './feedback/Alert';\nexport { Toast, type ToastProps } from './feedback/Toast';\nexport {\n ToastProvider,\n useToast,\n type ToastProviderProps,\n type ToastOptions,\n type ToastApi,\n type ToastContextValue,\n type ToastPosition,\n} from './feedback/ToastProvider';\nexport { Dialog, type DialogProps, type DialogHeaderProps, type DialogBodyProps, type DialogFooterProps } from './feedback/Dialog';\nexport { Skeleton, type SkeletonProps } from './feedback/Skeleton';\nexport { EmptyState, type EmptyStateProps } from './feedback/EmptyState';\n\n// theme — the `data-theme` provider (next-themes) + the light/dark toggle\nexport { ThemeProvider } from './theme/ThemeProvider';\nexport { ThemeToggle } from './theme/ThemeToggle';\n"],"mappings":"AAMA,SAAS,cAAgC;AACzC,SAAS,kBAAwC;AACjD,SAAS,aAA8B;AACvC,SAAS,YAA4B;AACrC,SAAS,cAAgC;AACzC,SAAS,aAA8B;AACvC,SAAS,YAAiG;AAC1G;AAAA,EACE;AAAA,OAOK;AAGP,SAAS,aAA8B;AACvC,SAAS,gBAAoC;AAC7C,SAAS,cAAmD;AAC5D,SAAS,gBAAoC;AAC7C,SAAS,aAA8B;AACvC,SAAS,cAAgC;AACzC,SAAS,sBAA+D;AACxE,SAAS,kBAAwC;AACjD,SAAS,kBAAwC;AACjD,SAAS,oBAA4C;AACrD,SAAS,mBAA0C;AAGnD,SAAS,cAAyG;AAClH,SAAS,YAAwF;AACjG,SAAS,iBAA+D;AACxE;AAAA,EACE;AAAA,OAKK;AACP,SAAS,eAAyD;AAGlE,SAAS,aAA8B;AACvC,SAAS,aAA8B;AACvC;AAAA,EACE;AAAA,EACA;AAAA,OAMK;AACP,SAAS,cAAsG;AAC/G,SAAS,gBAAoC;AAC7C,SAAS,kBAAwC;AAGjD,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Sereno Design System — public component surface. See the /design-system\n// showcase for the live catalog, or the barrel smoke test for the full list.\n// Icons are passed in as props (lucide-react), never imported here; theming is\n// 100% CSS custom properties.\n\n// core\nexport { Typography, type TypographyProps, type TypographyVariant, type TypographyColor } from './core/Typography';\nexport { Button, type ButtonProps } from './core/Button';\nexport { IconButton, type IconButtonProps } from './core/IconButton';\nexport { Badge, type BadgeProps } from './core/Badge';\nexport { Card, type CardProps } from './core/Card';\nexport { Avatar, type AvatarProps } from './core/Avatar';\nexport { Brand, type BrandProps } from './core/Brand';\nexport { Menu, type MenuProps, type MenuItem, type MenuEntry, type MenuSeparator, type MenuHeading } from './core/Menu';\nexport {\n Table,\n type TableProps,\n type TableRowProps,\n type HeaderCellProps,\n type CellProps,\n type TableSort,\n type SortDirection,\n} from './core/Table';\n\n// forms\nexport { Input, type InputProps } from './forms/Input';\nexport { Textarea, type TextareaProps } from './forms/Textarea';\nexport { Select, type SelectProps, type SelectOption } from './forms/Select';\nexport { Checkbox, type CheckboxProps } from './forms/Checkbox';\nexport { Radio, type RadioProps } from './forms/Radio';\nexport { Switch, type SwitchProps } from './forms/Switch';\nexport { DateTimePicker, type DateTimePickerProps, type TimeSlot } from './forms/DateTimePicker';\nexport { DatePicker, type DatePickerProps } from './forms/DatePicker';\nexport { FileUpload, type FileUploadProps } from './forms/FileUpload';\nexport { AvatarUpload, type AvatarUploadProps } from './forms/AvatarUpload';\nexport { SearchInput, type SearchInputProps } from './forms/SearchInput';\n\n// navigation\nexport { TopBar, type TopBarProps, type TopBarLeadingProps, type TopBarTitleProps, type TopBarActionsProps } from './navigation/TopBar';\nexport { Tabs, type TabsProps, type TabsListProps, type TabsTabProps, type TabsPanelProps } from './navigation/Tabs';\nexport { BottomNav, type BottomNavProps, type BottomNavItemProps } from './navigation/BottomNav';\nexport {\n SidebarNav,\n type SidebarNavProps,\n type SidebarNavSectionProps,\n type SidebarNavItemProps,\n type SidebarNavSubItemProps,\n} from './navigation/SidebarNav';\nexport { Stepper, type StepperProps, type StepperStepProps } from './navigation/Stepper';\n\n// feedback\nexport { Alert, type AlertProps } from './feedback/Alert';\nexport { Toast, type ToastProps } from './feedback/Toast';\nexport {\n ToastProvider,\n useToast,\n type ToastProviderProps,\n type ToastOptions,\n type ToastApi,\n type ToastContextValue,\n type ToastPosition,\n} from './feedback/ToastProvider';\nexport { Dialog, type DialogProps, type DialogHeaderProps, type DialogBodyProps, type DialogFooterProps } from './feedback/Dialog';\nexport { Skeleton, type SkeletonProps } from './feedback/Skeleton';\nexport { EmptyState, type EmptyStateProps } from './feedback/EmptyState';\n\n// theme — the `data-theme` provider (next-themes) + the light/dark toggle\nexport { ThemeProvider } from './theme/ThemeProvider';\nexport { ThemeToggle } from './theme/ThemeToggle';\n"],"mappings":"AAMA,SAAS,kBAAsF;AAC/F,SAAS,cAAgC;AACzC,SAAS,kBAAwC;AACjD,SAAS,aAA8B;AACvC,SAAS,YAA4B;AACrC,SAAS,cAAgC;AACzC,SAAS,aAA8B;AACvC,SAAS,YAAiG;AAC1G;AAAA,EACE;AAAA,OAOK;AAGP,SAAS,aAA8B;AACvC,SAAS,gBAAoC;AAC7C,SAAS,cAAmD;AAC5D,SAAS,gBAAoC;AAC7C,SAAS,aAA8B;AACvC,SAAS,cAAgC;AACzC,SAAS,sBAA+D;AACxE,SAAS,kBAAwC;AACjD,SAAS,kBAAwC;AACjD,SAAS,oBAA4C;AACrD,SAAS,mBAA0C;AAGnD,SAAS,cAAyG;AAClH,SAAS,YAAwF;AACjG,SAAS,iBAA+D;AACxE;AAAA,EACE;AAAA,OAKK;AACP,SAAS,eAAyD;AAGlE,SAAS,aAA8B;AACvC,SAAS,aAA8B;AACvC;AAAA,EACE;AAAA,EACA;AAAA,OAMK;AACP,SAAS,cAAsG;AAC/G,SAAS,gBAAoC;AAC7C,SAAS,kBAAwC;AAGjD,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;","names":[]}
|