@dtsports/design-system 0.2.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/LICENSE +21 -0
- package/README.md +156 -0
- package/dist/components/accordion.d.ts +19 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +26 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert.d.ts +26 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/app-shell.d.ts +21 -0
- package/dist/components/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell.js +25 -0
- package/dist/components/app-shell.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +16 -0
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +17 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/avatar-group.d.ts +31 -0
- package/dist/components/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar.d.ts +15 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +20 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +27 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +51 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button.d.ts +33 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +58 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.d.ts +15 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +33 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/capacity-bar.d.ts +32 -0
- package/dist/components/capacity-bar.d.ts.map +1 -0
- package/dist/components/capacity-bar.js +29 -0
- package/dist/components/capacity-bar.js.map +1 -0
- package/dist/components/card.d.ts +26 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +20 -0
- package/dist/components/checkbox.d.ts +11 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +19 -0
- package/dist/components/chip.d.ts +23 -0
- package/dist/components/chip.d.ts.map +1 -0
- package/dist/components/chip.js +32 -0
- package/dist/components/chip.js.map +1 -0
- package/dist/components/collapsible.d.ts +16 -0
- package/dist/components/collapsible.js +22 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.d.ts +38 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.js +17 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/confirm-action.d.ts +36 -0
- package/dist/components/confirm-action.d.ts.map +1 -0
- package/dist/components/confirm-action.js +21 -0
- package/dist/components/confirm-action.js.map +1 -0
- package/dist/components/container.js.map +1 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +22 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/dialog.d.ts +28 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.js +55 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +39 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +47 -0
- package/dist/components/empty-state.d.ts +15 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state.js +6 -0
- package/dist/components/form-field.d.ts +32 -0
- package/dist/components/form-field.d.ts.map +1 -0
- package/dist/components/form-field.js +31 -0
- package/dist/components/form-field.js.map +1 -0
- package/dist/components/input.d.ts +10 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +6 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +11 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +13 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/live-pill.d.ts +14 -0
- package/dist/components/live-pill.js +15 -0
- package/dist/components/live-pill.js.map +1 -0
- package/dist/components/metric-tile.d.ts +23 -0
- package/dist/components/metric-tile.d.ts.map +1 -0
- package/dist/components/money-breakdown.d.ts +36 -0
- package/dist/components/money-breakdown.d.ts.map +1 -0
- package/dist/components/money-breakdown.js +12 -0
- package/dist/components/money-breakdown.js.map +1 -0
- package/dist/components/number-input.d.ts +16 -0
- package/dist/components/number-input.d.ts.map +1 -0
- package/dist/components/number-input.js +30 -0
- package/dist/components/number-input.js.map +1 -0
- package/dist/components/pagination.d.ts +27 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +52 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.d.ts +24 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +28 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +13 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +17 -0
- package/dist/components/radio-group.d.ts +10 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +17 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +22 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.d.ts +27 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +40 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +10 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +14 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +48 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.d.ts +23 -0
- package/dist/components/skeleton.js +25 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +14 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +30 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/spec.d.ts +35 -0
- package/dist/components/spec.js +31 -0
- package/dist/components/spec.js.map +1 -0
- package/dist/components/spinner.d.ts +20 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +18 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stack.d.ts +48 -0
- package/dist/components/stack.d.ts.map +1 -0
- package/dist/components/stack.js +43 -0
- package/dist/components/stack.js.map +1 -0
- package/dist/components/status-pill.js +34 -0
- package/dist/components/status-pill.js.map +1 -0
- package/dist/components/switch.d.ts +9 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +15 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +31 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +22 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +28 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +8 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +6 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/theme-provider.d.ts +35 -0
- package/dist/components/theme-provider.d.ts.map +1 -0
- package/dist/components/theme-provider.js.map +1 -0
- package/dist/components/theme-toggle.d.ts +10 -0
- package/dist/components/theme-toggle.d.ts.map +1 -0
- package/dist/components/theme-toggle.js.map +1 -0
- package/dist/components/three-state.d.ts +39 -0
- package/dist/components/three-state.d.ts.map +1 -0
- package/dist/components/three-state.js +24 -0
- package/dist/components/three-state.js.map +1 -0
- package/dist/components/timestamp.d.ts +24 -0
- package/dist/components/timestamp.js +64 -0
- package/dist/components/timestamp.js.map +1 -0
- package/dist/components/toaster.d.ts +27 -0
- package/dist/components/toaster.d.ts.map +1 -0
- package/dist/components/toaster.js +21 -0
- package/dist/components/toaster.js.map +1 -0
- package/dist/components/tooltip.d.ts +28 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/top-bar.d.ts +13 -0
- package/dist/components/top-bar.d.ts.map +1 -0
- package/dist/components/top-bar.js +16 -0
- package/dist/index.d.ts +76 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +7 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/marketing/footer.d.ts +31 -0
- package/dist/marketing/footer.d.ts.map +1 -0
- package/dist/marketing/footer.js +9 -0
- package/dist/marketing/footer.js.map +1 -0
- package/dist/marketing/hero.d.ts +29 -0
- package/dist/marketing/hero.d.ts.map +1 -0
- package/dist/marketing/hero.js +7 -0
- package/dist/marketing/hero.js.map +1 -0
- package/dist/marketing/index.d.ts +21 -0
- package/dist/marketing/index.d.ts.map +1 -0
- package/dist/marketing/index.js +21 -0
- package/dist/marketing/index.js.map +1 -0
- package/dist/marketing/logo-cloud.d.ts +15 -0
- package/dist/marketing/logo-cloud.d.ts.map +1 -0
- package/dist/marketing/logo-cloud.js +6 -0
- package/dist/marketing/logo-cloud.js.map +1 -0
- package/dist/marketing/nav.d.ts +33 -0
- package/dist/marketing/nav.d.ts.map +1 -0
- package/dist/marketing/nav.js +14 -0
- package/dist/marketing/nav.js.map +1 -0
- package/dist/marketing/prose.d.ts +12 -0
- package/dist/marketing/prose.d.ts.map +1 -0
- package/dist/marketing/prose.js +18 -0
- package/dist/marketing/prose.js.map +1 -0
- package/dist/marketing/section.d.ts +22 -0
- package/dist/marketing/section.d.ts.map +1 -0
- package/dist/marketing/section.js +7 -0
- package/dist/marketing/section.js.map +1 -0
- package/dist/showcase/components/code-block.d.ts +11 -0
- package/dist/showcase/components/code-block.d.ts.map +1 -0
- package/dist/showcase/components/code-block.js +20 -0
- package/dist/showcase/components/code-block.js.map +1 -0
- package/dist/showcase/components/example.d.ts +16 -0
- package/dist/showcase/components/example.d.ts.map +1 -0
- package/dist/showcase/components/example.js +14 -0
- package/dist/showcase/components/example.js.map +1 -0
- package/dist/showcase/components/section.d.ts +21 -0
- package/dist/showcase/components/section.d.ts.map +1 -0
- package/dist/showcase/components/section.js +10 -0
- package/dist/showcase/components/section.js.map +1 -0
- package/dist/showcase/components/swatch.d.ts +17 -0
- package/dist/showcase/components/swatch.d.ts.map +1 -0
- package/dist/showcase/components/swatch.js +6 -0
- package/dist/showcase/components/swatch.js.map +1 -0
- package/dist/showcase/index.d.ts +17 -0
- package/dist/showcase/index.d.ts.map +1 -0
- package/dist/showcase/index.js +17 -0
- package/dist/showcase/index.js.map +1 -0
- package/dist/showcase/page.d.ts +2 -0
- package/dist/showcase/page.d.ts.map +1 -0
- package/dist/showcase/page.js +1085 -0
- package/dist/showcase/page.js.map +1 -0
- package/dist/styles/generated/tokens.d.ts +131 -0
- package/dist/styles/generated/tokens.d.ts.map +1 -0
- package/dist/styles/generated/tokens.js +107 -0
- package/dist/styles/generated/tokens.js.map +1 -0
- package/dist/styles/globals.css +131 -0
- package/dist/styles/tailwind.preset.d.ts +181 -0
- package/dist/styles/tailwind.preset.d.ts.map +1 -0
- package/dist/styles/tailwind.preset.js +114 -0
- package/dist/styles/tailwind.preset.js.map +1 -0
- package/dist/tokens/index.d.ts +176 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +139 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/tokens.json +154 -0
- package/package.json +124 -0
- package/src/components/accordion.tsx +76 -0
- package/src/components/alert.tsx +113 -0
- package/src/components/app-shell.tsx +43 -0
- package/src/components/aspect-ratio.tsx +18 -0
- package/src/components/avatar-group.tsx +73 -0
- package/src/components/avatar.tsx +81 -0
- package/src/components/badge.tsx +77 -0
- package/src/components/breadcrumb.tsx +121 -0
- package/src/components/button.tsx +83 -0
- package/src/components/calendar.tsx +85 -0
- package/src/components/capacity-bar.tsx +80 -0
- package/src/components/card.tsx +104 -0
- package/src/components/checkbox.tsx +46 -0
- package/src/components/chip.tsx +74 -0
- package/src/components/collapsible.tsx +54 -0
- package/src/components/combobox.tsx +140 -0
- package/src/components/confirm-action.tsx +111 -0
- package/src/components/container.tsx +39 -0
- package/src/components/date-picker.tsx +98 -0
- package/src/components/dialog.tsx +174 -0
- package/src/components/drawer.tsx +157 -0
- package/src/components/dropdown-menu.tsx +200 -0
- package/src/components/empty-state.tsx +46 -0
- package/src/components/form-field.tsx +118 -0
- package/src/components/input.tsx +29 -0
- package/src/components/label.tsx +35 -0
- package/src/components/live-pill.tsx +35 -0
- package/src/components/metric-tile.tsx +83 -0
- package/src/components/money-breakdown.tsx +92 -0
- package/src/components/number-input.tsx +113 -0
- package/src/components/pagination.tsx +157 -0
- package/src/components/popover.tsx +46 -0
- package/src/components/progress.tsx +34 -0
- package/src/components/radio-group.tsx +46 -0
- package/src/components/scroll-area.tsx +55 -0
- package/src/components/select.tsx +169 -0
- package/src/components/separator.tsx +34 -0
- package/src/components/sidebar.tsx +168 -0
- package/src/components/skeleton.tsx +85 -0
- package/src/components/slider.tsx +58 -0
- package/src/components/spec.tsx +59 -0
- package/src/components/spinner.tsx +36 -0
- package/src/components/stack.tsx +80 -0
- package/src/components/status-pill.tsx +100 -0
- package/src/components/switch.tsx +37 -0
- package/src/components/table.tsx +129 -0
- package/src/components/tabs.tsx +72 -0
- package/src/components/textarea.tsx +27 -0
- package/src/components/theme-provider.tsx +131 -0
- package/src/components/theme-toggle.tsx +34 -0
- package/src/components/three-state.tsx +90 -0
- package/src/components/timestamp.tsx +107 -0
- package/src/components/toaster.tsx +55 -0
- package/src/components/tooltip.tsx +49 -0
- package/src/components/top-bar.tsx +29 -0
- package/src/index.ts +221 -0
- package/src/lib/utils.ts +10 -0
- package/src/marketing/footer.tsx +93 -0
- package/src/marketing/hero.tsx +92 -0
- package/src/marketing/index.ts +24 -0
- package/src/marketing/logo-cloud.tsx +35 -0
- package/src/marketing/nav.tsx +122 -0
- package/src/marketing/prose.tsx +45 -0
- package/src/marketing/section.tsx +77 -0
- package/src/showcase/components/code-block.tsx +66 -0
- package/src/showcase/components/example.tsx +47 -0
- package/src/showcase/components/section.tsx +70 -0
- package/src/showcase/components/swatch.tsx +52 -0
- package/src/showcase/index.tsx +16 -0
- package/src/showcase/page.tsx +4216 -0
- package/src/styles/generated/tokens.ts +119 -0
- package/src/styles/globals.css +131 -0
- package/src/styles/tailwind.preset.ts +134 -0
- package/src/test/a11y.test.tsx +638 -0
- package/src/test/marketing-a11y.test.tsx +138 -0
- package/src/test/setup.ts +47 -0
- package/src/tokens/index.ts +154 -0
- package/src/tokens/tokens.json +154 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Prose — typographic wrapper for long-form marketing/blog/legal content
|
|
4
|
+
* (rendered markdown, CMS HTML). Styles descendant headings, paragraphs,
|
|
5
|
+
* lists, links, and code without requiring @tailwindcss/typography.
|
|
6
|
+
*
|
|
7
|
+
* <Prose dangerouslySetInnerHTML={{ __html: post.html }} />
|
|
8
|
+
* <Prose>{children}</Prose>
|
|
9
|
+
*/
|
|
10
|
+
export type ProseProps = React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
export declare function Prose({ className, ...props }: ProseProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=prose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prose.d.ts","sourceRoot":"","sources":["../../src/marketing/prose.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAE9D,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CA+BxD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
|
+
export function Prose({ className, ...props }) {
|
|
4
|
+
return (_jsx("div", { className: cn("max-w-2xl text-md leading-relaxed text-foreground",
|
|
5
|
+
// Headings
|
|
6
|
+
"[&_h1]:text-display-sm [&_h1]:font-bold [&_h1]:mt-10 [&_h1]:mb-4", "[&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:mt-10 [&_h2]:mb-3", "[&_h3]:text-xl [&_h3]:font-semibold [&_h3]:mt-8 [&_h3]:mb-2", "[&_h4]:text-lg [&_h4]:font-semibold [&_h4]:mt-6 [&_h4]:mb-2",
|
|
7
|
+
// Body
|
|
8
|
+
"[&_p]:my-4 [&_p]:text-text-muted", "[&_strong]:font-semibold [&_strong]:text-foreground",
|
|
9
|
+
// Links — underlined (color is not the only signal)
|
|
10
|
+
"[&_a]:text-brand-forest [&_a]:underline [&_a]:underline-offset-4 hover:[&_a]:text-brand-forest/80",
|
|
11
|
+
// Lists
|
|
12
|
+
"[&_ul]:my-4 [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:text-text-muted", "[&_ol]:my-4 [&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:text-text-muted", "[&_li]:my-1.5",
|
|
13
|
+
// Quotes, rules, code
|
|
14
|
+
"[&_blockquote]:my-6 [&_blockquote]:border-l-2 [&_blockquote]:border-brand-forest [&_blockquote]:pl-4 [&_blockquote]:italic [&_blockquote]:text-text-muted", "[&_hr]:my-8 [&_hr]:border-border", "[&_code]:font-mono [&_code]:text-sm [&_code]:bg-bg-muted [&_code]:rounded-sm [&_code]:px-1 [&_code]:py-0.5", "[&_pre]:my-4 [&_pre]:overflow-x-auto [&_pre]:rounded [&_pre]:border [&_pre]:border-border [&_pre]:bg-bg-subtle [&_pre]:p-4 [&_pre_code]:bg-transparent [&_pre_code]:p-0",
|
|
15
|
+
// Media
|
|
16
|
+
"[&_img]:my-6 [&_img]:rounded [&_img]:border [&_img]:border-border [&_img]:max-w-full", className), ...props }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=prose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prose.js","sourceRoot":"","sources":["../../src/marketing/prose.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAYlC,MAAM,UAAU,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAc;IACvD,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX,mDAAmD;QACnD,WAAW;QACX,kEAAkE,EAClE,+DAA+D,EAC/D,6DAA6D,EAC7D,6DAA6D;QAC7D,OAAO;QACP,kCAAkC,EAClC,qDAAqD;QACrD,oDAAoD;QACpD,mGAAmG;QACnG,QAAQ;QACR,iEAAiE,EACjE,oEAAoE,EACpE,eAAe;QACf,sBAAsB;QACtB,2JAA2J,EAC3J,kCAAkC,EAClC,4GAA4G,EAC5G,yKAAyK;QACzK,QAAQ;QACR,sFAAsF,EACtF,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Section — a marketing page band with the generous spacing scale.
|
|
4
|
+
* Provides the id/heading wiring for skip-navigation and deep links.
|
|
5
|
+
*
|
|
6
|
+
* <Section id="how-it-works" eyebrow="How it works"
|
|
7
|
+
* title="Three taps to kickoff">
|
|
8
|
+
* …cards / feature grid…
|
|
9
|
+
* </Section>
|
|
10
|
+
*/
|
|
11
|
+
export interface SectionProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
|
|
12
|
+
id: string;
|
|
13
|
+
eyebrow?: React.ReactNode;
|
|
14
|
+
title?: React.ReactNode;
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
/** Center the header block (default start-aligned). */
|
|
17
|
+
centered?: boolean;
|
|
18
|
+
/** Subtle alternating background. */
|
|
19
|
+
tone?: "default" | "subtle";
|
|
20
|
+
}
|
|
21
|
+
export declare function Section({ id, eyebrow, title, description, centered, tone, className, children, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/marketing/section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,OAAO,CACR;IACC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC7B;AAED,wBAAgB,OAAO,CAAC,EACtB,EAAE,EACF,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,IAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,YAAY,2CAwCd"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
|
+
export function Section({ id, eyebrow, title, description, centered = false, tone = "default", className, children, ...props }) {
|
|
4
|
+
const headingId = title ? `${id}-title` : undefined;
|
|
5
|
+
return (_jsx("section", { id: id, "aria-labelledby": headingId, className: cn("px-6 lg:px-8 py-20 md:py-24 scroll-mt-16", tone === "subtle" && "bg-bg-subtle", className), ...props, children: _jsxs("div", { className: "mx-auto max-w-5xl", children: [(eyebrow || title || description) && (_jsxs("div", { className: cn("mb-12 max-w-2xl", centered && "mx-auto text-center"), children: [eyebrow && (_jsx("p", { className: "mb-3 text-sm font-semibold uppercase tracking-[0.08em] text-brand-forest", children: eyebrow })), title && (_jsx("h2", { id: headingId, className: "text-display-sm font-bold text-foreground text-balance", children: title })), description && (_jsx("p", { className: "mt-4 text-lg text-text-muted", children: description }))] })), children] }) }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.js","sourceRoot":"","sources":["../../src/marketing/section.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAyBlC,MAAM,UAAU,OAAO,CAAC,EACtB,EAAE,EACF,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,SAAS,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACK;IACb,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IACpD,OAAO,CACL,kBACE,EAAE,EAAE,EAAE,qBACW,SAAS,EAC1B,SAAS,EAAE,EAAE,CACX,0CAA0C,EAC1C,IAAI,KAAK,QAAQ,IAAI,cAAc,EACnC,SAAS,CACV,KACG,KAAK,YAET,eAAK,SAAS,EAAC,mBAAmB,aAC/B,CAAC,OAAO,IAAI,KAAK,IAAI,WAAW,CAAC,IAAI,CACpC,eACE,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,QAAQ,IAAI,qBAAqB,CAAC,aAElE,OAAO,IAAI,CACV,YAAG,SAAS,EAAC,0EAA0E,YACpF,OAAO,GACN,CACL,EACA,KAAK,IAAI,CACR,aACE,EAAE,EAAE,SAAS,EACb,SAAS,EAAC,wDAAwD,YAEjE,KAAK,GACH,CACN,EACA,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,8BAA8B,YAAE,WAAW,GAAK,CAC9D,IACG,CACP,EACA,QAAQ,IACL,GACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code block with copy-to-clipboard. No syntax highlighting (intentional —
|
|
3
|
+
* the design system stays decoration-free; we can layer Shiki later if needed).
|
|
4
|
+
*/
|
|
5
|
+
export interface CodeBlockProps {
|
|
6
|
+
code: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function CodeBlock({ code, language, className }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../src/showcase/components/code-block.tsx"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,2CAiDtE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Check, Copy } from "lucide-react";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
export function CodeBlock({ code, language, className }) {
|
|
7
|
+
const [copied, setCopied] = React.useState(false);
|
|
8
|
+
const onCopy = async () => {
|
|
9
|
+
try {
|
|
10
|
+
await navigator.clipboard.writeText(code);
|
|
11
|
+
setCopied(true);
|
|
12
|
+
setTimeout(() => setCopied(false), 1500);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
/* ignore */
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return (_jsxs("div", { className: cn("relative rounded border border-border bg-bg-subtle", className), children: [language && (_jsx("div", { className: "flex items-center justify-between border-b border-border px-3 py-1.5", children: _jsx("span", { className: "text-[10px] font-medium uppercase tracking-[0.04em] text-text-muted", children: language }) })), _jsx("button", { type: "button", onClick: onCopy, "aria-label": copied ? "Copied" : "Copy code", className: cn("absolute right-2 top-2 inline-flex h-6 w-6 items-center justify-center rounded-sm text-text-muted", "transition-colors hover:bg-bg-muted hover:text-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", language && "top-7"), children: copied ? (_jsx(Check, { className: "h-3.5 w-3.5", strokeWidth: 2 })) : (_jsx(Copy, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })) }), _jsx("pre", { className: "overflow-x-auto scrollbar-thin px-3 py-2.5 text-xs leading-relaxed", children: _jsx("code", { className: "font-mono text-foreground", children: code }) })] }));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=code-block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.js","sourceRoot":"","sources":["../../../src/showcase/components/code-block.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAYrC,MAAM,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAkB;IACrE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,MAAM,MAAM,GAAG,KAAK,IAAI,EAAE;QACxB,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC1C,SAAS,CAAC,IAAI,CAAC,CAAC;YAChB,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;QAC3C,CAAC;QAAC,MAAM,CAAC;YACP,YAAY;QACd,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,oDAAoD,EACpD,SAAS,CACV,aAEA,QAAQ,IAAI,CACX,cAAK,SAAS,EAAC,sEAAsE,YACnF,eAAM,SAAS,EAAC,qEAAqE,YAClF,QAAQ,GACJ,GACH,CACP,EACD,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,MAAM,gBACH,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,EAC3C,SAAS,EAAE,EAAE,CACX,mGAAmG,EACnG,2DAA2D,EAC3D,yEAAyE,EACzE,QAAQ,IAAI,OAAO,CACpB,YAEA,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,KAAK,IAAC,SAAS,EAAC,aAAa,EAAC,WAAW,EAAE,CAAC,GAAI,CAClD,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,SAAS,EAAC,aAAa,EAAC,WAAW,EAAE,IAAI,GAAI,CACpD,GACM,EACT,cAAK,SAAS,EAAC,oEAAoE,YACjF,eAAM,SAAS,EAAC,2BAA2B,YAAE,IAAI,GAAQ,GACrD,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Example renders a labeled preview + code block side-by-side (or stacked
|
|
4
|
+
* on narrow screens). Used throughout the design system docs.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Example({ label, children, className, }: {
|
|
7
|
+
label?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/** Two-column grid: preview on the left, code on the right. */
|
|
12
|
+
export declare function PreviewCode({ preview, code, }: {
|
|
13
|
+
preview: React.ReactNode;
|
|
14
|
+
code: React.ReactNode;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../src/showcase/components/example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAaA;AAED,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,IAAI,GACL,EAAE;IACD,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,2CASA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
/**
|
|
4
|
+
* Example renders a labeled preview + code block side-by-side (or stacked
|
|
5
|
+
* on narrow screens). Used throughout the design system docs.
|
|
6
|
+
*/
|
|
7
|
+
export function Example({ label, children, className, }) {
|
|
8
|
+
return (_jsxs("div", { className: cn("space-y-2", className), children: [label && (_jsx("div", { className: "text-xs font-medium uppercase tracking-[0.04em] text-text-muted", children: label })), _jsx("div", { className: "rounded border border-border bg-background p-5", children: children })] }));
|
|
9
|
+
}
|
|
10
|
+
/** Two-column grid: preview on the left, code on the right. */
|
|
11
|
+
export function PreviewCode({ preview, code, }) {
|
|
12
|
+
return (_jsxs("div", { className: "grid gap-3 md:grid-cols-2", children: [_jsx("div", { className: "rounded border border-border bg-background p-5 flex items-center justify-center min-h-[120px]", children: preview }), _jsx("div", { children: code })] }));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.js","sourceRoot":"","sources":["../../../src/showcase/components/example.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,SAAS,GAKV;IACC,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,aACvC,KAAK,IAAI,CACR,cAAK,SAAS,EAAC,iEAAiE,YAC7E,KAAK,GACF,CACP,EACD,cAAK,SAAS,EAAC,gDAAgD,YAC5D,QAAQ,GACL,IACF,CACP,CAAC;AACJ,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,WAAW,CAAC,EAC1B,OAAO,EACP,IAAI,GAIL;IACC,OAAO,CACL,eAAK,SAAS,EAAC,2BAA2B,aACxC,cAAK,SAAS,EAAC,+FAA+F,YAC3G,OAAO,GACJ,EACN,wBAAM,IAAI,GAAO,IACb,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Section wrapper for the design system docs.
|
|
4
|
+
* Renders an id-anchored heading with description and content body.
|
|
5
|
+
*/
|
|
6
|
+
export interface DocSectionProps {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function DocSection({ id, title, description, children, className, }: DocSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
/** Subsection within a DocSection. */
|
|
15
|
+
export declare function DocSubsection({ title, description, children, className, }: {
|
|
16
|
+
title: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/showcase/components/section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,EAAE,EACF,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,eAAe,2CAyBjB;AAED,sCAAsC;AACtC,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAUA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
export function DocSection({ id, title, description, children, className, }) {
|
|
4
|
+
return (_jsxs("section", { id: id, "aria-labelledby": `${id}-title`, className: cn("scroll-mt-16 py-10 border-t border-border", className), children: [_jsxs("div", { className: "mb-6", children: [_jsx("h2", { id: `${id}-title`, className: "text-xl font-semibold tracking-[-0.01em] text-foreground", children: _jsx("a", { href: `#${id}`, className: "hover:text-brand-forest no-underline", children: title }) }), description && (_jsx("p", { className: "mt-1.5 text-sm text-text-muted max-w-2xl", children: description }))] }), _jsx("div", { className: "space-y-6", children: children })] }));
|
|
5
|
+
}
|
|
6
|
+
/** Subsection within a DocSection. */
|
|
7
|
+
export function DocSubsection({ title, description, children, className, }) {
|
|
8
|
+
return (_jsxs("div", { className: cn("", className), children: [_jsx("h3", { className: "text-md font-semibold mb-1.5", children: title }), description && (_jsx("p", { className: "text-sm text-text-muted mb-3 max-w-2xl", children: description })), children] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.js","sourceRoot":"","sources":["../../../src/showcase/components/section.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAcrC,MAAM,UAAU,UAAU,CAAC,EACzB,EAAE,EACF,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,GACO;IAChB,OAAO,CACL,mBACE,EAAE,EAAE,EAAE,qBACW,GAAG,EAAE,QAAQ,EAC9B,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,SAAS,CAAC,aAErE,eAAK,SAAS,EAAC,MAAM,aACnB,aACE,EAAE,EAAE,GAAG,EAAE,QAAQ,EACjB,SAAS,EAAC,0DAA0D,YAEpE,YAAG,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,sCAAsC,YAChE,KAAK,GACJ,GACD,EACJ,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,0CAA0C,YACpD,WAAW,GACV,CACL,IACG,EACN,cAAK,SAAS,EAAC,WAAW,YAAE,QAAQ,GAAO,IACnC,CACX,CAAC;AACJ,CAAC;AAED,sCAAsC;AACtC,MAAM,UAAU,aAAa,CAAC,EAC5B,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,GAMV;IACC,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC,aAC/B,aAAI,SAAS,EAAC,8BAA8B,YAAE,KAAK,GAAM,EACxD,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,wCAAwC,YAAE,WAAW,GAAK,CACxE,EACA,QAAQ,IACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color swatch used in the design system docs.
|
|
3
|
+
* Renders a color tile with token name + value below.
|
|
4
|
+
*/
|
|
5
|
+
export interface SwatchProps {
|
|
6
|
+
token: string;
|
|
7
|
+
/** Tailwind class for the background (e.g. "bg-brand-lime") */
|
|
8
|
+
bg: string;
|
|
9
|
+
/** Color value to display (e.g. "#B4D334" or "hsl(72 65% 52%)") */
|
|
10
|
+
value: string;
|
|
11
|
+
/** Optional: text color sample to show on top of the swatch */
|
|
12
|
+
textSample?: "white" | "black" | "none";
|
|
13
|
+
/** Optional: contrast ratio note */
|
|
14
|
+
contrast?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function Swatch({ token, bg, value, textSample, contrast, }: SwatchProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=swatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swatch.d.ts","sourceRoot":"","sources":["../../../src/showcase/components/swatch.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IACxC,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,EAAE,EACF,KAAK,EACL,UAAmB,EACnB,QAAQ,GACT,EAAE,WAAW,2CA2Bb"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
export function Swatch({ token, bg, value, textSample = "none", contrast, }) {
|
|
4
|
+
return (_jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: cn("h-16 rounded border border-border flex items-center justify-center", bg), children: textSample !== "none" && (_jsx("span", { className: cn("text-sm font-medium", textSample === "white" ? "text-white" : "text-black"), children: "Aa" })) }), _jsxs("div", { className: "mt-1.5 text-xs", children: [_jsx("div", { className: "font-medium text-foreground", children: token }), _jsx("div", { className: "text-text-muted font-mono tabular", children: value }), contrast && _jsx("div", { className: "text-text-subtle mt-0.5", children: contrast })] })] }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=swatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swatch.js","sourceRoot":"","sources":["../../../src/showcase/components/swatch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAkBrC,MAAM,UAAU,MAAM,CAAC,EACrB,KAAK,EACL,EAAE,EACF,KAAK,EACL,UAAU,GAAG,MAAM,EACnB,QAAQ,GACI;IACZ,OAAO,CACL,eAAK,SAAS,EAAC,eAAe,aAC5B,cACE,SAAS,EAAE,EAAE,CACX,oEAAoE,EACpE,EAAE,CACH,YAEA,UAAU,KAAK,MAAM,IAAI,CACxB,eACE,SAAS,EAAE,EAAE,CACX,qBAAqB,EACrB,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CACrD,mBAGI,CACR,GACG,EACN,eAAK,SAAS,EAAC,gBAAgB,aAC7B,cAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,GAAO,EAC1D,cAAK,SAAS,EAAC,mCAAmC,YAAE,KAAK,GAAO,EAC/D,QAAQ,IAAI,cAAK,SAAS,EAAC,yBAAyB,YAAE,QAAQ,GAAO,IAClE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mountable design-system documentation page.
|
|
3
|
+
*
|
|
4
|
+
* Default export is the page component itself, so consumers can wire it
|
|
5
|
+
* up as a Next.js page in one line:
|
|
6
|
+
*
|
|
7
|
+
* // apps/<your-app>/app/design-system/page.tsx
|
|
8
|
+
* export { default } from "@dtsports/design-system/showcase";
|
|
9
|
+
*
|
|
10
|
+
* Or used as a regular component anywhere:
|
|
11
|
+
*
|
|
12
|
+
* import { DesignSystemPage } from "@dtsports/design-system/showcase";
|
|
13
|
+
* <DesignSystemPage />
|
|
14
|
+
*/
|
|
15
|
+
export { default } from "./page.js";
|
|
16
|
+
export { default as DesignSystemPage } from "./page.js";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/showcase/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mountable design-system documentation page.
|
|
3
|
+
*
|
|
4
|
+
* Default export is the page component itself, so consumers can wire it
|
|
5
|
+
* up as a Next.js page in one line:
|
|
6
|
+
*
|
|
7
|
+
* // apps/<your-app>/app/design-system/page.tsx
|
|
8
|
+
* export { default } from "@dtsports/design-system/showcase";
|
|
9
|
+
*
|
|
10
|
+
* Or used as a regular component anywhere:
|
|
11
|
+
*
|
|
12
|
+
* import { DesignSystemPage } from "@dtsports/design-system/showcase";
|
|
13
|
+
* <DesignSystemPage />
|
|
14
|
+
*/
|
|
15
|
+
export { default } from "./page.js";
|
|
16
|
+
export { default as DesignSystemPage } from "./page.js";
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/showcase/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/showcase/page.tsx"],"names":[],"mappings":"AAiQA,MAAM,CAAC,OAAO,UAAU,gBAAgB,4CAiNvC"}
|