@chitrank2050/monoline-ui 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 +313 -0
- package/chunk-2T2JZW4Z.js +2 -0
- package/chunk-2T2JZW4Z.js.map +1 -0
- package/chunk-37JB3ZNS.js +2 -0
- package/chunk-37JB3ZNS.js.map +1 -0
- package/chunk-3F6Z4CFV.js +2 -0
- package/chunk-3F6Z4CFV.js.map +1 -0
- package/chunk-5TIKYN5B.js +2 -0
- package/chunk-5TIKYN5B.js.map +1 -0
- package/chunk-6AEWSPAE.js +2 -0
- package/chunk-6AEWSPAE.js.map +1 -0
- package/chunk-7ANXAXP5.js +2 -0
- package/chunk-7ANXAXP5.js.map +1 -0
- package/chunk-7SDVYBBO.js +2 -0
- package/chunk-7SDVYBBO.js.map +1 -0
- package/chunk-7WJF6B6G.js +2 -0
- package/chunk-7WJF6B6G.js.map +1 -0
- package/chunk-A2LXX23X.js +2 -0
- package/chunk-A2LXX23X.js.map +1 -0
- package/chunk-AACTIVV7.js +2 -0
- package/chunk-AACTIVV7.js.map +1 -0
- package/chunk-B5P3RAN2.js +2 -0
- package/chunk-B5P3RAN2.js.map +1 -0
- package/chunk-COFALEVG.js +2 -0
- package/chunk-COFALEVG.js.map +1 -0
- package/chunk-D3E4G2RE.js +2 -0
- package/chunk-D3E4G2RE.js.map +1 -0
- package/chunk-DJT3EVR4.js +2 -0
- package/chunk-DJT3EVR4.js.map +1 -0
- package/chunk-EWKGYQOX.js +2 -0
- package/chunk-EWKGYQOX.js.map +1 -0
- package/chunk-FLUGXF5D.js +2 -0
- package/chunk-FLUGXF5D.js.map +1 -0
- package/chunk-GSWZL5C2.js +2 -0
- package/chunk-GSWZL5C2.js.map +1 -0
- package/chunk-H2CRII7X.js +2 -0
- package/chunk-H2CRII7X.js.map +1 -0
- package/chunk-IVTAW6SX.js +3 -0
- package/chunk-IVTAW6SX.js.map +1 -0
- package/chunk-JBOP2AJB.js +2 -0
- package/chunk-JBOP2AJB.js.map +1 -0
- package/chunk-JCKPCV2H.js +2 -0
- package/chunk-JCKPCV2H.js.map +1 -0
- package/chunk-K665XZ3N.js +2 -0
- package/chunk-K665XZ3N.js.map +1 -0
- package/chunk-K72EORST.js +2 -0
- package/chunk-K72EORST.js.map +1 -0
- package/chunk-KGLH6WI6.js +2 -0
- package/chunk-KGLH6WI6.js.map +1 -0
- package/chunk-LVMQ3ZM3.js +2 -0
- package/chunk-LVMQ3ZM3.js.map +1 -0
- package/chunk-N37GMCSK.js +2 -0
- package/chunk-N37GMCSK.js.map +1 -0
- package/chunk-NDHOUIOX.js +2 -0
- package/chunk-NDHOUIOX.js.map +1 -0
- package/chunk-NDTTLW56.js +2 -0
- package/chunk-NDTTLW56.js.map +1 -0
- package/chunk-O43OQHFN.js +2 -0
- package/chunk-O43OQHFN.js.map +1 -0
- package/chunk-QGG3J7OW.js +2 -0
- package/chunk-QGG3J7OW.js.map +1 -0
- package/chunk-QUG36ONS.js +2 -0
- package/chunk-QUG36ONS.js.map +1 -0
- package/chunk-R2YSVBHS.js +2 -0
- package/chunk-R2YSVBHS.js.map +1 -0
- package/chunk-TSOHITZ7.js +2 -0
- package/chunk-TSOHITZ7.js.map +1 -0
- package/chunk-V6PUPMAY.js +3 -0
- package/chunk-V6PUPMAY.js.map +1 -0
- package/chunk-VSATIFOR.js +2 -0
- package/chunk-VSATIFOR.js.map +1 -0
- package/chunk-XEB7C557.js +2 -0
- package/chunk-XEB7C557.js.map +1 -0
- package/chunk-Z7SIB4X6.js +2 -0
- package/chunk-Z7SIB4X6.js.map +1 -0
- package/chunk-ZOPV3BXO.js +2 -0
- package/chunk-ZOPV3BXO.js.map +1 -0
- package/chunk-ZU3HIOBU.js +2 -0
- package/chunk-ZU3HIOBU.js.map +1 -0
- package/components/action-rail/index.d.ts +18 -0
- package/components/action-rail/index.js +2 -0
- package/components/action-rail/index.js.map +1 -0
- package/components/avatar/avatar.css +47 -0
- package/components/avatar/index.d.ts +28 -0
- package/components/avatar/index.js +2 -0
- package/components/avatar/index.js.map +1 -0
- package/components/back-link/back-link.css +30 -0
- package/components/back-link/index.d.ts +18 -0
- package/components/back-link/index.js +2 -0
- package/components/back-link/index.js.map +1 -0
- package/components/badge/badge.css +27 -0
- package/components/badge/index.d.ts +26 -0
- package/components/badge/index.js +2 -0
- package/components/badge/index.js.map +1 -0
- package/components/button/button.css +238 -0
- package/components/button/index.d.ts +36 -0
- package/components/button/index.js +2 -0
- package/components/button/index.js.map +1 -0
- package/components/callout/callout.css +20 -0
- package/components/callout/index.d.ts +20 -0
- package/components/callout/index.js +2 -0
- package/components/callout/index.js.map +1 -0
- package/components/card/card.css +166 -0
- package/components/card/index.d.ts +112 -0
- package/components/card/index.js +2 -0
- package/components/card/index.js.map +1 -0
- package/components/code-block/code-block.css +23 -0
- package/components/code-block/index.d.ts +21 -0
- package/components/code-block/index.js +2 -0
- package/components/code-block/index.js.map +1 -0
- package/components/command-search/command-search.css +217 -0
- package/components/command-search/index.d.ts +73 -0
- package/components/command-search/index.js +2 -0
- package/components/command-search/index.js.map +1 -0
- package/components/container/container.css +41 -0
- package/components/container/index.d.ts +11 -0
- package/components/container/index.js +2 -0
- package/components/container/index.js.map +1 -0
- package/components/data-list/data-list.css +139 -0
- package/components/data-list/index.d.ts +45 -0
- package/components/data-list/index.js +2 -0
- package/components/data-list/index.js.map +1 -0
- package/components/editorial-line/index.d.ts +24 -0
- package/components/editorial-line/index.js +2 -0
- package/components/editorial-line/index.js.map +1 -0
- package/components/eyebrow/eyebrow.css +13 -0
- package/components/eyebrow/index.d.ts +17 -0
- package/components/eyebrow/index.js +2 -0
- package/components/eyebrow/index.js.map +1 -0
- package/components/footer/footer.css +201 -0
- package/components/footer/index.d.ts +66 -0
- package/components/footer/index.js +2 -0
- package/components/footer/index.js.map +1 -0
- package/components/input/index.d.ts +28 -0
- package/components/input/index.js +2 -0
- package/components/input/index.js.map +1 -0
- package/components/input/input.css +37 -0
- package/components/link-list/index.d.ts +47 -0
- package/components/link-list/index.js +2 -0
- package/components/link-list/index.js.map +1 -0
- package/components/link-list/link-list.css +208 -0
- package/components/media-frame/index.d.ts +31 -0
- package/components/media-frame/index.js +2 -0
- package/components/media-frame/index.js.map +1 -0
- package/components/media-frame/media-frame.css +86 -0
- package/components/meta-row/index.d.ts +22 -0
- package/components/meta-row/index.js +2 -0
- package/components/meta-row/index.js.map +1 -0
- package/components/metric/index.d.ts +22 -0
- package/components/metric/index.js +2 -0
- package/components/metric/index.js.map +1 -0
- package/components/navbar/index.d.ts +78 -0
- package/components/navbar/index.js +2 -0
- package/components/navbar/index.js.map +1 -0
- package/components/navbar/navbar.css +245 -0
- package/components/progress/index.d.ts +20 -0
- package/components/progress/index.js +2 -0
- package/components/progress/index.js.map +1 -0
- package/components/progress/progress.css +31 -0
- package/components/pull-quote/index.d.ts +18 -0
- package/components/pull-quote/index.js +2 -0
- package/components/pull-quote/index.js.map +1 -0
- package/components/rail/index.d.ts +28 -0
- package/components/rail/index.js +2 -0
- package/components/rail/index.js.map +1 -0
- package/components/rail/rail.css +118 -0
- package/components/resources-panel/index.d.ts +42 -0
- package/components/resources-panel/index.js +2 -0
- package/components/resources-panel/index.js.map +1 -0
- package/components/resources-panel/resources-panel.css +396 -0
- package/components/section-head/index.d.ts +24 -0
- package/components/section-head/index.js +2 -0
- package/components/section-head/index.js.map +1 -0
- package/components/segmented-control/index.d.ts +28 -0
- package/components/segmented-control/index.js +2 -0
- package/components/segmented-control/index.js.map +1 -0
- package/components/segmented-control/segmented-control.css +177 -0
- package/components/select/index.d.ts +65 -0
- package/components/select/index.js +2 -0
- package/components/select/index.js.map +1 -0
- package/components/select/select.css +298 -0
- package/components/skeleton/index.d.ts +19 -0
- package/components/skeleton/index.js +2 -0
- package/components/skeleton/index.js.map +1 -0
- package/components/skeleton/skeleton.css +13 -0
- package/components/status/index.d.ts +20 -0
- package/components/status/index.js +2 -0
- package/components/status/index.js.map +1 -0
- package/components/status/status.css +86 -0
- package/components/tag/index.d.ts +35 -0
- package/components/tag/index.js +2 -0
- package/components/tag/index.js.map +1 -0
- package/components/tag/tag.css +10 -0
- package/components/testimonial/index.d.ts +30 -0
- package/components/testimonial/index.js +2 -0
- package/components/testimonial/index.js.map +1 -0
- package/components/testimonial/testimonial.css +109 -0
- package/components/testimonial-grid/index.d.ts +12 -0
- package/components/testimonial-grid/index.js +2 -0
- package/components/testimonial-grid/index.js.map +1 -0
- package/components/testimonial-grid/testimonial-grid.css +58 -0
- package/components/theme-switcher/index.d.ts +24 -0
- package/components/theme-switcher/index.js +2 -0
- package/components/theme-switcher/index.js.map +1 -0
- package/components/theme-switcher/theme-switcher.css +130 -0
- package/components/toast/index.d.ts +20 -0
- package/components/toast/index.js +2 -0
- package/components/toast/index.js.map +1 -0
- package/components/toast/toast.css +22 -0
- package/components/toc/index.d.ts +27 -0
- package/components/toc/index.js +2 -0
- package/components/toc/index.js.map +1 -0
- package/components/toggle/index.d.ts +20 -0
- package/components/toggle/index.js +2 -0
- package/components/toggle/index.js.map +1 -0
- package/components/toggle/toggle.css +108 -0
- package/foundations/breakpoints.d.ts +12 -0
- package/foundations/breakpoints.js +2 -0
- package/foundations/breakpoints.js.map +1 -0
- package/foundations/use-breakpoint.d.ts +5 -0
- package/foundations/use-breakpoint.js +3 -0
- package/foundations/use-breakpoint.js.map +1 -0
- package/index.d.ts +42 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/lib/utils.d.ts +7 -0
- package/lib/utils.js +2 -0
- package/lib/utils.js.map +1 -0
- package/package.json +228 -0
- package/styles/theme/animations.css +206 -0
- package/styles/theme/base.css +75 -0
- package/styles/theme/tailwind.css +371 -0
- package/styles/theme/tokens.css +562 -0
- package/styles/theme/typography.css +108 -0
- package/styles/theme/utilities.css +281 -0
- package/styles/theme.css +68 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ml-rail {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--ml-space-5);
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Title (Eyebrow-style label above the list) */
|
|
12
|
+
.ml-rail__header {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
min-height: var(--ml-space-9);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ml-rail__title {
|
|
19
|
+
min-width: 0;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
color: var(--text-muted);
|
|
22
|
+
font-family: var(--font-mono);
|
|
23
|
+
font-size: var(--text-2xs);
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
letter-spacing: var(--tracking-meta);
|
|
26
|
+
line-height: 1;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* List */
|
|
33
|
+
.ml-rail__list {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
gap: var(--ml-space-0-5);
|
|
37
|
+
margin: 0;
|
|
38
|
+
padding: 0;
|
|
39
|
+
list-style: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Item */
|
|
43
|
+
.ml-rail__item {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: var(--ml-space-3);
|
|
47
|
+
min-height: var(--ml-space-9);
|
|
48
|
+
width: 100%;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
color: var(--text-secondary);
|
|
51
|
+
transition: color var(--duration-micro) var(--ease-out);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ml-rail__item:hover {
|
|
55
|
+
color: var(--primary);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ml-rail__item:focus-visible {
|
|
59
|
+
outline: none;
|
|
60
|
+
box-shadow: var(--focus-ring);
|
|
61
|
+
border-radius: var(--radius-sm);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ml-rail__item[data-active="true"] {
|
|
65
|
+
color: var(--primary);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Dot indicator */
|
|
69
|
+
.ml-rail__dot {
|
|
70
|
+
width: 0.3125rem;
|
|
71
|
+
height: 0.3125rem;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
border-radius: var(--radius-pill);
|
|
74
|
+
background: color-mix(in oklch, var(--text-muted) 50%, transparent);
|
|
75
|
+
transition: background-color var(--duration-micro) var(--ease-out);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ml-rail__item[data-active="true"] .ml-rail__dot {
|
|
79
|
+
background: var(--accent);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Content wrapper */
|
|
83
|
+
.ml-rail__content {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex: 1;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
gap: var(--ml-space-2);
|
|
89
|
+
min-width: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Label */
|
|
93
|
+
.ml-rail__label {
|
|
94
|
+
flex: 1;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
font-size: var(--text-sm);
|
|
98
|
+
font-weight: 400;
|
|
99
|
+
line-height: var(--leading-tight);
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
transition: font-weight var(--duration-micro) var(--ease-out);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ml-rail__item[data-active="true"] .ml-rail__label {
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Count */
|
|
110
|
+
.ml-rail__count {
|
|
111
|
+
flex-shrink: 0;
|
|
112
|
+
color: var(--text-muted);
|
|
113
|
+
font-family: var(--font-mono);
|
|
114
|
+
font-size: var(--text-xs);
|
|
115
|
+
font-variant-numeric: tabular-nums;
|
|
116
|
+
line-height: 1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type ResourcesPanelSize = "sm" | "md" | "lg";
|
|
4
|
+
type ResourcesPanelKind = "live" | "source" | "npm" | "docs" | "changelog" | "figma" | "video" | "paper" | "external";
|
|
5
|
+
type ResourcesPanelLinkComponentProps = React$1.ComponentProps<"a"> & {
|
|
6
|
+
href: string;
|
|
7
|
+
};
|
|
8
|
+
interface ResourcesPanelItem {
|
|
9
|
+
kind?: ResourcesPanelKind;
|
|
10
|
+
label: React$1.ReactNode;
|
|
11
|
+
href?: string;
|
|
12
|
+
host?: React$1.ReactNode;
|
|
13
|
+
badge?: React$1.ReactNode;
|
|
14
|
+
meta?: React$1.ReactNode;
|
|
15
|
+
primary?: boolean;
|
|
16
|
+
icon?: React$1.ReactNode;
|
|
17
|
+
external?: boolean;
|
|
18
|
+
rel?: string;
|
|
19
|
+
target?: React$1.HTMLAttributeAnchorTarget;
|
|
20
|
+
as?: React$1.ComponentType<ResourcesPanelLinkComponentProps>;
|
|
21
|
+
}
|
|
22
|
+
interface ResourcesPanelProps extends Omit<React$1.ComponentProps<"aside">, "children" | "title"> {
|
|
23
|
+
size?: ResourcesPanelSize;
|
|
24
|
+
title?: string;
|
|
25
|
+
meta?: React$1.ReactNode;
|
|
26
|
+
items: ResourcesPanelItem[];
|
|
27
|
+
footer?: React$1.ReactNode;
|
|
28
|
+
footerLabel?: React$1.ReactNode;
|
|
29
|
+
children?: React$1.ReactNode;
|
|
30
|
+
linkComponent?: React$1.ComponentType<ResourcesPanelLinkComponentProps>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare function ResourcesPanelRoot({ className, size, title, meta, items, footer, footerLabel, children, linkComponent, ref, ...props }: ResourcesPanelProps): React.ReactElement;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @module resources-panel
|
|
37
|
+
* Description for resources-panel component.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
declare const ResourcesPanel: typeof ResourcesPanelRoot;
|
|
41
|
+
|
|
42
|
+
export { ResourcesPanel, type ResourcesPanelItem, type ResourcesPanelKind, type ResourcesPanelProps, ResourcesPanelRoot, type ResourcesPanelSize };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ml-resources-panel {
|
|
5
|
+
--ml-resources-panel-padding-x: var(--ml-space-4);
|
|
6
|
+
--ml-resources-panel-row-padding-y: var(--ml-space-3);
|
|
7
|
+
--ml-resources-panel-gap: var(--ml-space-3);
|
|
8
|
+
--ml-resources-panel-icon-size: var(--ml-space-7);
|
|
9
|
+
--ml-resources-panel-label-text: var(--text-sm);
|
|
10
|
+
--ml-resources-panel-host-text: var(--text-2xs);
|
|
11
|
+
--ml-resources-panel-radius: var(--radius-xl);
|
|
12
|
+
|
|
13
|
+
width: 100%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
border: var(--border-thin) solid var(--border);
|
|
16
|
+
border-radius: var(--ml-resources-panel-radius);
|
|
17
|
+
background: var(--surface);
|
|
18
|
+
color: var(--text-body);
|
|
19
|
+
box-shadow: var(--shadow-xs);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ml-resources-panel[data-size="sm"] {
|
|
23
|
+
--ml-resources-panel-padding-x: var(--ml-space-3);
|
|
24
|
+
--ml-resources-panel-row-padding-y: var(--ml-space-2);
|
|
25
|
+
--ml-resources-panel-gap: var(--ml-space-2);
|
|
26
|
+
--ml-resources-panel-icon-size: var(--ml-space-6);
|
|
27
|
+
--ml-resources-panel-label-text: var(--text-xs);
|
|
28
|
+
--ml-resources-panel-host-text: var(--text-3xs);
|
|
29
|
+
--ml-resources-panel-radius: var(--radius-lg);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ml-resources-panel[data-size="lg"] {
|
|
33
|
+
--ml-resources-panel-padding-x: var(--ml-space-5);
|
|
34
|
+
--ml-resources-panel-row-padding-y: var(--ml-space-4);
|
|
35
|
+
--ml-resources-panel-gap: var(--ml-space-4);
|
|
36
|
+
--ml-resources-panel-icon-size: var(--ml-space-8);
|
|
37
|
+
--ml-resources-panel-label-text: var(--text-base);
|
|
38
|
+
--ml-resources-panel-host-text: var(--text-xs);
|
|
39
|
+
--ml-resources-panel-radius: var(--radius-2xl);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ml-resources-panel__header,
|
|
43
|
+
.ml-resources-panel__footer {
|
|
44
|
+
display: flex;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
gap: var(--ml-space-3);
|
|
49
|
+
padding: var(--ml-space-3) var(--ml-resources-panel-padding-x);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ml-resources-panel__header {
|
|
53
|
+
border-block-end: var(--border-thin) solid var(--border);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ml-resources-panel__footer {
|
|
57
|
+
border-block-start: var(--border-thin) solid var(--border);
|
|
58
|
+
color: var(--text-muted);
|
|
59
|
+
font-family: var(--font-mono);
|
|
60
|
+
font-size: var(--text-3xs);
|
|
61
|
+
letter-spacing: var(--tracking-meta);
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ml-resources-panel__title,
|
|
66
|
+
.ml-resources-panel__meta {
|
|
67
|
+
min-width: 0;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
font-family: var(--font-mono);
|
|
70
|
+
line-height: 1;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
text-transform: uppercase;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ml-resources-panel__title {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: var(--ml-space-2);
|
|
80
|
+
color: var(--text-muted);
|
|
81
|
+
font-size: var(--text-3xs);
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
letter-spacing: var(--tracking-meta);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ml-resources-panel__meta {
|
|
87
|
+
color: var(--text-muted);
|
|
88
|
+
font-size: var(--text-3xs);
|
|
89
|
+
letter-spacing: var(--tracking-normal);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ml-resources-panel__list {
|
|
93
|
+
display: grid;
|
|
94
|
+
margin: 0;
|
|
95
|
+
padding: 0;
|
|
96
|
+
list-style: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ml-resources-panel__row + .ml-resources-panel__row {
|
|
100
|
+
border-block-start: var(--border-thin) solid var(--border);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ml-resources-panel__item {
|
|
104
|
+
display: grid;
|
|
105
|
+
grid-template-columns:
|
|
106
|
+
var(--ml-resources-panel-icon-size) minmax(0, 1fr)
|
|
107
|
+
auto;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: var(--ml-resources-panel-gap);
|
|
110
|
+
min-width: 0;
|
|
111
|
+
padding: var(--ml-resources-panel-row-padding-y)
|
|
112
|
+
var(--ml-resources-panel-padding-x);
|
|
113
|
+
color: inherit;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
transition:
|
|
116
|
+
background-color var(--duration-micro) var(--ease-out),
|
|
117
|
+
color var(--duration-micro) var(--ease-out);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
a.ml-resources-panel__item {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
a.ml-resources-panel__item:hover {
|
|
125
|
+
background: var(--surface-2);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
a.ml-resources-panel__item:focus-visible {
|
|
129
|
+
outline: none;
|
|
130
|
+
box-shadow: inset var(--focus-ring);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ml-resources-panel__icon {
|
|
134
|
+
display: inline-grid;
|
|
135
|
+
inline-size: var(--ml-resources-panel-icon-size);
|
|
136
|
+
block-size: var(--ml-resources-panel-icon-size);
|
|
137
|
+
place-items: center;
|
|
138
|
+
border: var(--border-thin) solid var(--border);
|
|
139
|
+
border-radius: var(--radius-sm);
|
|
140
|
+
background: var(--button);
|
|
141
|
+
color: var(--text-secondary);
|
|
142
|
+
transition:
|
|
143
|
+
background-color var(--duration-micro) var(--ease-out),
|
|
144
|
+
border-color var(--duration-micro) var(--ease-out),
|
|
145
|
+
color var(--duration-micro) var(--ease-out);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
a.ml-resources-panel__item:hover .ml-resources-panel__icon {
|
|
149
|
+
border-color: color-mix(in oklch, var(--accent) 72%, var(--border));
|
|
150
|
+
background: color-mix(in oklch, var(--accent) 15%, transparent);
|
|
151
|
+
color: var(--accent);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ml-resources-panel__icon-svg {
|
|
155
|
+
inline-size: 1rem;
|
|
156
|
+
block-size: 1rem;
|
|
157
|
+
overflow: visible;
|
|
158
|
+
fill: none;
|
|
159
|
+
stroke: currentcolor;
|
|
160
|
+
stroke-linecap: round;
|
|
161
|
+
stroke-linejoin: round;
|
|
162
|
+
stroke-width: 1.6;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ml-resources-panel__content {
|
|
166
|
+
display: grid;
|
|
167
|
+
min-width: 0;
|
|
168
|
+
gap: var(--ml-space-1);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ml-resources-panel__label {
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
min-width: 0;
|
|
174
|
+
align-items: center;
|
|
175
|
+
gap: var(--ml-space-2);
|
|
176
|
+
color: var(--primary);
|
|
177
|
+
font-size: var(--ml-resources-panel-label-text);
|
|
178
|
+
font-weight: 650;
|
|
179
|
+
line-height: var(--leading-tight);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ml-resources-panel__badge {
|
|
183
|
+
display: inline-flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
min-block-size: var(--ml-space-4);
|
|
186
|
+
padding-inline: var(--ml-space-1);
|
|
187
|
+
border-radius: var(--radius-xs);
|
|
188
|
+
background: color-mix(in oklch, var(--accent) 15%, transparent);
|
|
189
|
+
color: var(--accent);
|
|
190
|
+
font-family: var(--font-mono);
|
|
191
|
+
font-size: var(--text-3xs);
|
|
192
|
+
font-weight: 700;
|
|
193
|
+
letter-spacing: var(--tracking-meta);
|
|
194
|
+
line-height: 1;
|
|
195
|
+
text-transform: uppercase;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.ml-resources-panel__host {
|
|
199
|
+
min-width: 0;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
color: var(--text-muted);
|
|
202
|
+
font-family: var(--font-mono);
|
|
203
|
+
font-size: var(--ml-resources-panel-host-text);
|
|
204
|
+
line-height: var(--leading-tight);
|
|
205
|
+
text-overflow: ellipsis;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ml-resources-panel__arrow {
|
|
210
|
+
color: var(--text-muted);
|
|
211
|
+
font-family: var(--font-mono);
|
|
212
|
+
font-size: var(--text-xs);
|
|
213
|
+
line-height: 1;
|
|
214
|
+
transition:
|
|
215
|
+
color var(--duration-micro) var(--ease-out),
|
|
216
|
+
transform var(--duration-micro) var(--ease-out);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
a.ml-resources-panel__item:hover .ml-resources-panel__arrow {
|
|
220
|
+
color: var(--accent);
|
|
221
|
+
transform: translate3d(0.125rem, -0.125rem, 0);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.group\/btn:not(:disabled):not([aria-disabled="true"]):not(
|
|
225
|
+
[data-disabled="true"]
|
|
226
|
+
):not([data-loading="true"]):hover
|
|
227
|
+
.ml-button-icon[data-reveal="true"] {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
transform: translate3d(0, 0, 0);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.group\/btn:not(:disabled):not([aria-disabled="true"]):not(
|
|
233
|
+
[data-disabled="true"]
|
|
234
|
+
):not([data-loading="true"]):hover
|
|
235
|
+
.ml-button-icon[data-reveal="true"]
|
|
236
|
+
.ml-button-icon__glyph {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
transform: translate3d(0, 0, 0);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.ml-card {
|
|
242
|
+
--ml-card-lift: calc(var(--ml-space-1) * -0.5);
|
|
243
|
+
--ml-card-arrow-offset: calc(var(--ml-space-1) * -0.5);
|
|
244
|
+
--ml-card-content-rest-opacity: 0.82;
|
|
245
|
+
--ml-card-content-hover-opacity: 1;
|
|
246
|
+
|
|
247
|
+
border-color: var(--border);
|
|
248
|
+
background: var(--surface);
|
|
249
|
+
color: var(--text-body);
|
|
250
|
+
box-shadow: var(--shadow-xs);
|
|
251
|
+
transition:
|
|
252
|
+
background-color var(--duration-micro) var(--ease-out),
|
|
253
|
+
border-color var(--duration-micro) var(--ease-out),
|
|
254
|
+
box-shadow var(--duration-short) var(--ease-out),
|
|
255
|
+
transform var(--duration-medium) var(--ease-out);
|
|
256
|
+
backface-visibility: hidden;
|
|
257
|
+
isolation: isolate;
|
|
258
|
+
transform: translate3d(0, 0, 0);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.ml-card--hover:hover {
|
|
262
|
+
border-color: var(--border-strong);
|
|
263
|
+
background: var(--surface);
|
|
264
|
+
box-shadow: var(--shadow-md);
|
|
265
|
+
transform: translate3d(0, var(--ml-card-lift), 0);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.ml-card--interactive:hover {
|
|
269
|
+
border-color: var(--border-strong);
|
|
270
|
+
background: var(--surface);
|
|
271
|
+
box-shadow: var(--shadow-md);
|
|
272
|
+
transform: translate3d(0, var(--ml-card-lift), 0);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
:root:not([data-theme="light"]) .ml-card--hover:hover,
|
|
276
|
+
[data-theme="dark"] .ml-card--hover:hover {
|
|
277
|
+
border-color: var(--border-strong);
|
|
278
|
+
background: var(--surface);
|
|
279
|
+
box-shadow: var(--shadow-md);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:root:not([data-theme="light"]) .ml-card--interactive:hover,
|
|
283
|
+
[data-theme="dark"] .ml-card--interactive:hover {
|
|
284
|
+
border-color: var(--border-strong);
|
|
285
|
+
background: var(--surface);
|
|
286
|
+
box-shadow: var(--shadow-md);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ml-card__image > * {
|
|
290
|
+
transition: opacity var(--duration-micro) var(--ease-out);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ml-card__image > img,
|
|
294
|
+
.ml-card__image > picture,
|
|
295
|
+
.ml-card__image > video,
|
|
296
|
+
.ml-card__image > canvas,
|
|
297
|
+
.ml-card__image > svg {
|
|
298
|
+
display: block;
|
|
299
|
+
inline-size: 100%;
|
|
300
|
+
block-size: 100%;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.ml-card__image > img,
|
|
304
|
+
.ml-card__image > picture > img,
|
|
305
|
+
.ml-card__image > video {
|
|
306
|
+
object-fit: cover;
|
|
307
|
+
object-position: center;
|
|
308
|
+
filter: grayscale(1) brightness(0.92);
|
|
309
|
+
transition: filter var(--duration-medium) var(--ease-out);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.ml-card__image::after {
|
|
313
|
+
content: "";
|
|
314
|
+
position: absolute;
|
|
315
|
+
inset-inline: 0;
|
|
316
|
+
inset-block-end: 0;
|
|
317
|
+
block-size: 28%;
|
|
318
|
+
background: linear-gradient(
|
|
319
|
+
180deg,
|
|
320
|
+
transparent 0%,
|
|
321
|
+
color-mix(in oklch, var(--surface) 36%, transparent) 48%,
|
|
322
|
+
color-mix(in oklch, var(--surface) 86%, transparent) 100%
|
|
323
|
+
);
|
|
324
|
+
opacity: 0.72;
|
|
325
|
+
pointer-events: none;
|
|
326
|
+
transition: opacity var(--duration-medium) var(--ease-out);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ml-card__image-caption {
|
|
330
|
+
min-block-size: 16%;
|
|
331
|
+
opacity: var(--ml-card-content-rest-opacity);
|
|
332
|
+
transition: opacity var(--duration-medium) var(--ease-out);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.ml-card__image:has(.ml-card__image-caption)::after,
|
|
336
|
+
.ml-card__image[data-placeholder="true"]::after {
|
|
337
|
+
opacity: 1;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.ml-card__image:has(.ml-card__image-caption) .ml-card__image-caption {
|
|
341
|
+
opacity: var(--ml-card-content-rest-opacity);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.ml-card--hover:hover .ml-card__image > * {
|
|
345
|
+
opacity: 1;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.ml-card--hover:hover .ml-card__image > img,
|
|
349
|
+
.ml-card--hover:hover .ml-card__image > picture > img,
|
|
350
|
+
.ml-card--hover:hover .ml-card__image > video {
|
|
351
|
+
filter: grayscale(0) brightness(1);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.ml-card--hover:hover .ml-card__image::after {
|
|
355
|
+
opacity: 0.82;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.ml-card--hover:hover .ml-card__image-caption {
|
|
359
|
+
opacity: var(--ml-card-content-hover-opacity);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.ml-card__footer {
|
|
363
|
+
background: var(--surface);
|
|
364
|
+
transition:
|
|
365
|
+
border-color var(--duration-micro) var(--ease-out),
|
|
366
|
+
color var(--duration-micro) var(--ease-out);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.ml-card__body {
|
|
370
|
+
background: var(--surface);
|
|
371
|
+
transition: color var(--duration-micro) var(--ease-out);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.ml-card__tag-list {
|
|
375
|
+
flex: 1 1 auto;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.ml-card__tag-overflow {
|
|
379
|
+
white-space: nowrap;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.ml-card__arrow {
|
|
383
|
+
display: inline-block;
|
|
384
|
+
opacity: 0.72;
|
|
385
|
+
transform: translate3d(var(--ml-card-arrow-offset), 0, 0);
|
|
386
|
+
transition:
|
|
387
|
+
opacity var(--duration-micro) var(--ease-out),
|
|
388
|
+
transform var(--duration-medium) var(--ease-out);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ml-card--hover:hover .ml-card__arrow,
|
|
392
|
+
.ml-card--interactive:hover .ml-card__arrow {
|
|
393
|
+
opacity: 1;
|
|
394
|
+
transform: translate3d(0, 0, 0);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type SectionHeadSize = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type SectionHeadLevel = 1 | 2 | 3;
|
|
5
|
+
interface SectionHeadProps extends Omit<React$1.ComponentProps<"div">, "title"> {
|
|
6
|
+
as?: "div" | "header";
|
|
7
|
+
eyebrow?: React$1.ReactNode;
|
|
8
|
+
title: React$1.ReactNode;
|
|
9
|
+
subtitle?: React$1.ReactNode;
|
|
10
|
+
lede?: React$1.ReactNode;
|
|
11
|
+
level?: SectionHeadLevel;
|
|
12
|
+
size?: SectionHeadSize;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare function SectionHeadRoot({ className, size, eyebrow, title, subtitle, lede, level, as, ref, ...props }: SectionHeadProps): React.ReactElement;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @module section-head
|
|
19
|
+
* Description for section-head component.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
declare const SectionHead: typeof SectionHeadRoot;
|
|
23
|
+
|
|
24
|
+
export { SectionHead, type SectionHeadLevel, type SectionHeadProps, type SectionHeadSize };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type SegmentedControlVariant = "default" | "pill";
|
|
4
|
+
type SegmentedControlSize = "sm" | "md" | "lg";
|
|
5
|
+
interface SegmentedControlOption<T extends string> {
|
|
6
|
+
value: T;
|
|
7
|
+
label: string;
|
|
8
|
+
badge?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface SegmentedControlProps<T extends string> extends Omit<React.ComponentProps<"div">, "children" | "onChange"> {
|
|
12
|
+
options: SegmentedControlOption<T>[];
|
|
13
|
+
value: T;
|
|
14
|
+
onChange: (value: T) => void;
|
|
15
|
+
variant?: SegmentedControlVariant;
|
|
16
|
+
size?: SegmentedControlSize;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare function SegmentedControlRoot<T extends string>({ options, value, onChange, variant, size, className, onKeyDown, ref, role, ...props }: SegmentedControlProps<T>): React$1.ReactElement;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @module segmented-control
|
|
23
|
+
* Description for segmented-control component.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
declare const SegmentedControl: typeof SegmentedControlRoot;
|
|
27
|
+
|
|
28
|
+
export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlSize, type SegmentedControlVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|