@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,238 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
/* --- Package component interaction primitives --- */
|
|
5
|
+
.ml-button-icon {
|
|
6
|
+
display: inline-grid;
|
|
7
|
+
flex: 0 0 auto;
|
|
8
|
+
inline-size: 1em;
|
|
9
|
+
block-size: 1em;
|
|
10
|
+
place-items: center;
|
|
11
|
+
overflow: visible;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
transition:
|
|
14
|
+
inline-size var(--duration-fast) var(--ease-out),
|
|
15
|
+
margin var(--duration-fast) var(--ease-out),
|
|
16
|
+
opacity var(--duration-micro) var(--ease-out),
|
|
17
|
+
transform var(--duration-fast) var(--ease-out);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ml-button-icon__glyph {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
opacity: 1;
|
|
23
|
+
transform: translate3d(0, 0, 0);
|
|
24
|
+
transition:
|
|
25
|
+
opacity var(--duration-micro) var(--ease-out),
|
|
26
|
+
transform var(--duration-fast) var(--ease-out);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ml-button-icon__glyph > svg,
|
|
30
|
+
.ml-button-icon__glyph > img {
|
|
31
|
+
display: block;
|
|
32
|
+
inline-size: 100%;
|
|
33
|
+
block-size: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ml-button-icon[data-reveal="true"] {
|
|
37
|
+
inline-size: 0;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ml-button-icon[data-reveal="true"][data-side="right"],
|
|
44
|
+
.ml-button-icon[data-reveal="true"]:not([data-side="left"]) {
|
|
45
|
+
margin-inline-start: calc(-1 * var(--ml-btn-gap, var(--ml-space-2)));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ml-button-icon[data-reveal="true"][data-side="left"] {
|
|
49
|
+
margin-inline-end: calc(-1 * var(--ml-btn-gap, var(--ml-space-2)));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ml-button-icon[data-reveal="true"] .ml-button-icon__glyph {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
transform: translate3d(-0.25em, 0, 0);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ml-button-icon[data-reveal="true"][data-side="left"] .ml-button-icon__glyph {
|
|
58
|
+
transform: translate3d(0.25em, 0, 0);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.group\/btn {
|
|
62
|
+
--ml-btn-gap: var(--ml-space-2);
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.group\/btn[data-size="sm"] {
|
|
68
|
+
--ml-btn-gap: var(--ml-space-1-5);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ml-button-spinner {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
flex: 0 0 auto;
|
|
74
|
+
border: var(--border-thin) solid currentcolor;
|
|
75
|
+
border-block-start-color: transparent;
|
|
76
|
+
border-radius: var(--radius-pill);
|
|
77
|
+
animation: spin 650ms linear infinite;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Button variant colours - kept in plain CSS (not Tailwind @layer utilities)
|
|
81
|
+
so they always win and always reference live CSS custom properties */
|
|
82
|
+
.ml-btn--primary {
|
|
83
|
+
border-color: var(--primary, currentColor);
|
|
84
|
+
background: var(--primary, currentColor);
|
|
85
|
+
color: var(--primary-foreground, canvas);
|
|
86
|
+
}
|
|
87
|
+
.ml-btn--primary:not(:disabled):not([aria-disabled="true"]):not(
|
|
88
|
+
[data-disabled="true"]
|
|
89
|
+
):not([data-loading="true"]):hover {
|
|
90
|
+
background: var(--btn-primary-hover, currentColor);
|
|
91
|
+
}
|
|
92
|
+
.ml-btn--primary:not(:disabled):not([aria-disabled="true"]):not(
|
|
93
|
+
[data-disabled="true"]
|
|
94
|
+
):not([data-loading="true"]):active {
|
|
95
|
+
border-color: color-mix(
|
|
96
|
+
in oklch,
|
|
97
|
+
var(--btn-primary-hover, currentColor) 88%,
|
|
98
|
+
var(--primary-foreground, canvas)
|
|
99
|
+
);
|
|
100
|
+
background: color-mix(
|
|
101
|
+
in oklch,
|
|
102
|
+
var(--btn-primary-hover, currentColor) 88%,
|
|
103
|
+
var(--primary-foreground, canvas)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
.ml-btn--primary[data-loading="true"] {
|
|
107
|
+
border-color: color-mix(
|
|
108
|
+
in oklch,
|
|
109
|
+
var(--primary, currentColor) 92%,
|
|
110
|
+
var(--background, canvas)
|
|
111
|
+
);
|
|
112
|
+
background: color-mix(
|
|
113
|
+
in oklch,
|
|
114
|
+
var(--primary, currentColor) 92%,
|
|
115
|
+
var(--background, canvas)
|
|
116
|
+
);
|
|
117
|
+
color: color-mix(
|
|
118
|
+
in oklch,
|
|
119
|
+
var(--primary-foreground, canvas) 88%,
|
|
120
|
+
var(--primary, currentColor)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ml-btn--secondary {
|
|
125
|
+
border-color: var(--border-strong, currentColor);
|
|
126
|
+
background: var(--button, rgba(0, 0, 0, 0.05));
|
|
127
|
+
color: var(--primary, currentColor);
|
|
128
|
+
}
|
|
129
|
+
.ml-btn--secondary:not(:disabled):not([aria-disabled="true"]):not(
|
|
130
|
+
[data-disabled="true"]
|
|
131
|
+
):not([data-loading="true"]):hover {
|
|
132
|
+
border-color: color-mix(
|
|
133
|
+
in oklch,
|
|
134
|
+
var(--primary, currentColor) 35%,
|
|
135
|
+
transparent
|
|
136
|
+
);
|
|
137
|
+
background: var(--button-hover, rgba(0, 0, 0, 0.08));
|
|
138
|
+
}
|
|
139
|
+
.ml-btn--secondary:not(:disabled):not([aria-disabled="true"]):not(
|
|
140
|
+
[data-disabled="true"]
|
|
141
|
+
):not([data-loading="true"]):active {
|
|
142
|
+
border-color: color-mix(
|
|
143
|
+
in oklch,
|
|
144
|
+
var(--primary, currentColor) 48%,
|
|
145
|
+
transparent
|
|
146
|
+
);
|
|
147
|
+
background: color-mix(
|
|
148
|
+
in oklch,
|
|
149
|
+
var(--button-hover, rgba(0, 0, 0, 0.08)) 82%,
|
|
150
|
+
var(--primary, currentColor)
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
.ml-btn--secondary[data-loading="true"] {
|
|
154
|
+
border-color: color-mix(
|
|
155
|
+
in oklch,
|
|
156
|
+
var(--border-strong, currentColor) 85%,
|
|
157
|
+
var(--primary, currentColor)
|
|
158
|
+
);
|
|
159
|
+
background: color-mix(
|
|
160
|
+
in oklch,
|
|
161
|
+
var(--button, rgba(0, 0, 0, 0.05)) 86%,
|
|
162
|
+
var(--button-hover, rgba(0, 0, 0, 0.08))
|
|
163
|
+
);
|
|
164
|
+
color: color-mix(
|
|
165
|
+
in oklch,
|
|
166
|
+
var(--primary, currentColor) 76%,
|
|
167
|
+
var(--text-muted, currentColor)
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ml-btn--ghost {
|
|
172
|
+
border-color: transparent;
|
|
173
|
+
background: transparent;
|
|
174
|
+
color: var(--text-body, currentColor);
|
|
175
|
+
}
|
|
176
|
+
.ml-btn--ghost:not(:disabled):not([aria-disabled="true"]):not(
|
|
177
|
+
[data-disabled="true"]
|
|
178
|
+
):not([data-loading="true"]):hover {
|
|
179
|
+
background: var(--button-hover, rgba(0, 0, 0, 0.08));
|
|
180
|
+
color: var(--primary, currentColor);
|
|
181
|
+
}
|
|
182
|
+
.ml-btn--ghost:not(:disabled):not([aria-disabled="true"]):not(
|
|
183
|
+
[data-disabled="true"]
|
|
184
|
+
):not([data-loading="true"]):active {
|
|
185
|
+
background: color-mix(
|
|
186
|
+
in oklch,
|
|
187
|
+
var(--button-hover, rgba(0, 0, 0, 0.08)) 82%,
|
|
188
|
+
var(--primary, currentColor)
|
|
189
|
+
);
|
|
190
|
+
color: var(--primary, currentColor);
|
|
191
|
+
}
|
|
192
|
+
.ml-btn--ghost[data-loading="true"] {
|
|
193
|
+
border-color: transparent;
|
|
194
|
+
background: color-mix(
|
|
195
|
+
in oklch,
|
|
196
|
+
var(--button-hover, rgba(0, 0, 0, 0.08)) 42%,
|
|
197
|
+
transparent
|
|
198
|
+
);
|
|
199
|
+
color: color-mix(
|
|
200
|
+
in oklch,
|
|
201
|
+
var(--text-body, currentColor) 72%,
|
|
202
|
+
var(--text-muted, currentColor)
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ml-btn--primary[data-disabled="true"],
|
|
207
|
+
.ml-btn--secondary[data-disabled="true"],
|
|
208
|
+
.ml-btn--ghost[data-disabled="true"] {
|
|
209
|
+
border-color: var(--border);
|
|
210
|
+
background: color-mix(in oklch, var(--button) 55%, transparent);
|
|
211
|
+
color: var(--text-muted);
|
|
212
|
+
opacity: 0.58;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.ml-btn--ghost[data-disabled="true"] {
|
|
216
|
+
background: transparent;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.group\/btn:not(:disabled):not([aria-disabled="true"]):not(
|
|
220
|
+
[data-disabled="true"]
|
|
221
|
+
):not([data-loading="true"]):hover
|
|
222
|
+
.ml-button-icon[data-reveal="true"] {
|
|
223
|
+
inline-size: 1em;
|
|
224
|
+
overflow: visible;
|
|
225
|
+
opacity: 1;
|
|
226
|
+
margin: 0;
|
|
227
|
+
transform: translate3d(0, 0, 0);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.group\/btn:not(:disabled):not([aria-disabled="true"]):not(
|
|
231
|
+
[data-disabled="true"]
|
|
232
|
+
):not([data-loading="true"]):hover
|
|
233
|
+
.ml-button-icon[data-reveal="true"]
|
|
234
|
+
.ml-button-icon__glyph {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
transform: translate3d(0, 0, 0);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type ButtonVariant = "primary" | "secondary" | "ghost";
|
|
4
|
+
type ButtonSize = "sm" | "md" | "lg";
|
|
5
|
+
type ButtonIconSide = "left" | "right";
|
|
6
|
+
interface ButtonProps extends React$1.ComponentProps<"button"> {
|
|
7
|
+
variant?: ButtonVariant;
|
|
8
|
+
size?: ButtonSize;
|
|
9
|
+
icon?: boolean;
|
|
10
|
+
pill?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface ButtonIconProps extends React$1.ComponentProps<"span"> {
|
|
15
|
+
side?: ButtonIconSide;
|
|
16
|
+
reveal?: boolean;
|
|
17
|
+
}
|
|
18
|
+
type ButtonArrowProps = Omit<ButtonIconProps, "children">;
|
|
19
|
+
|
|
20
|
+
declare function ButtonIcon({ children, className, side, reveal, ref, ...props }: ButtonIconProps): React.ReactElement;
|
|
21
|
+
declare function ButtonArrow({ reveal, ...props }: ButtonArrowProps): React.ReactElement;
|
|
22
|
+
|
|
23
|
+
declare function ButtonRoot({ className, children, variant, size, icon, pill, loading, asChild, disabled, type, ref, ...props }: ButtonProps): React.ReactElement;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @module Button
|
|
27
|
+
* Description for Button component.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
declare const Button: typeof ButtonRoot & {
|
|
31
|
+
displayName: string;
|
|
32
|
+
Arrow: typeof ButtonArrow;
|
|
33
|
+
Icon: typeof ButtonIcon;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { Button, type ButtonArrowProps, type ButtonIconProps, type ButtonIconSide, type ButtonProps, type ButtonSize, type ButtonVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ml-callout {
|
|
5
|
+
background: var(--surface);
|
|
6
|
+
border-color: var(--border);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ml-callout--note {
|
|
10
|
+
border-left-color: var(--text-muted);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ml-callout--tip {
|
|
14
|
+
border-left-color: var(--callout-tip-accent, var(--accent));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ml-callout--warn {
|
|
18
|
+
border-left-color: oklch(0.7 0.16 80);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type CalloutVariant = "note" | "tip" | "warn";
|
|
4
|
+
interface CalloutProps extends React$1.ComponentProps<"aside"> {
|
|
5
|
+
variant?: CalloutVariant;
|
|
6
|
+
label?: React$1.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare function CalloutRoot({ className, variant, label, children, ref, ...props }: CalloutProps): React.ReactElement;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @module Callout
|
|
13
|
+
* Description for Callout component.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
declare const Callout: typeof CalloutRoot & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { Callout, type CalloutProps, type CalloutVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ml-card {
|
|
5
|
+
--ml-card-lift: calc(var(--ml-space-1) * -0.5);
|
|
6
|
+
--ml-card-arrow-offset: calc(var(--ml-space-1) * -0.5);
|
|
7
|
+
--ml-card-content-rest-opacity: 0.82;
|
|
8
|
+
--ml-card-content-hover-opacity: 1;
|
|
9
|
+
|
|
10
|
+
border-color: var(--border);
|
|
11
|
+
background: var(--surface);
|
|
12
|
+
color: var(--text-body);
|
|
13
|
+
box-shadow: var(--shadow-xs);
|
|
14
|
+
transition:
|
|
15
|
+
background-color var(--duration-micro) var(--ease-out),
|
|
16
|
+
border-color var(--duration-micro) var(--ease-out),
|
|
17
|
+
box-shadow var(--duration-short) var(--ease-out),
|
|
18
|
+
transform var(--duration-medium) var(--ease-out);
|
|
19
|
+
backface-visibility: hidden;
|
|
20
|
+
isolation: isolate;
|
|
21
|
+
transform: translate3d(0, 0, 0);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
button.ml-card {
|
|
25
|
+
inline-size: 100%;
|
|
26
|
+
padding: 0;
|
|
27
|
+
text-align: inherit;
|
|
28
|
+
font: inherit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ml-card--hover:hover {
|
|
32
|
+
border-color: var(--border-strong);
|
|
33
|
+
background: var(--surface);
|
|
34
|
+
box-shadow: var(--shadow-md);
|
|
35
|
+
transform: translate3d(0, var(--ml-card-lift), 0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ml-card--interactive:hover {
|
|
39
|
+
border-color: var(--border-strong);
|
|
40
|
+
background: var(--surface);
|
|
41
|
+
box-shadow: var(--shadow-md);
|
|
42
|
+
transform: translate3d(0, var(--ml-card-lift), 0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:root:not([data-theme="light"]) .ml-card--hover:hover,
|
|
46
|
+
[data-theme="dark"] .ml-card--hover:hover {
|
|
47
|
+
border-color: var(--border-strong);
|
|
48
|
+
background: var(--surface);
|
|
49
|
+
box-shadow: var(--shadow-md);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:root:not([data-theme="light"]) .ml-card--interactive:hover,
|
|
53
|
+
[data-theme="dark"] .ml-card--interactive:hover {
|
|
54
|
+
border-color: var(--border-strong);
|
|
55
|
+
background: var(--surface);
|
|
56
|
+
box-shadow: var(--shadow-md);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ml-card__image > * {
|
|
60
|
+
transition: opacity var(--duration-micro) var(--ease-out);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ml-card__image > img,
|
|
64
|
+
.ml-card__image > picture,
|
|
65
|
+
.ml-card__image > video,
|
|
66
|
+
.ml-card__image > canvas,
|
|
67
|
+
.ml-card__image > svg {
|
|
68
|
+
display: block;
|
|
69
|
+
inline-size: 100%;
|
|
70
|
+
block-size: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ml-card__image > img,
|
|
74
|
+
.ml-card__image > picture > img,
|
|
75
|
+
.ml-card__image > video {
|
|
76
|
+
object-fit: cover;
|
|
77
|
+
object-position: center;
|
|
78
|
+
filter: grayscale(1) brightness(0.92);
|
|
79
|
+
transition: filter var(--duration-medium) var(--ease-out);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ml-card__image::after {
|
|
83
|
+
content: "";
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset-inline: 0;
|
|
86
|
+
inset-block-end: 0;
|
|
87
|
+
block-size: 28%;
|
|
88
|
+
background: linear-gradient(
|
|
89
|
+
180deg,
|
|
90
|
+
transparent 0%,
|
|
91
|
+
color-mix(in oklch, var(--surface) 36%, transparent) 48%,
|
|
92
|
+
color-mix(in oklch, var(--surface) 86%, transparent) 100%
|
|
93
|
+
);
|
|
94
|
+
opacity: 0.72;
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
transition: opacity var(--duration-medium) var(--ease-out);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ml-card__image-caption {
|
|
100
|
+
min-block-size: 16%;
|
|
101
|
+
opacity: var(--ml-card-content-rest-opacity);
|
|
102
|
+
transition: opacity var(--duration-medium) var(--ease-out);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ml-card__image:has(.ml-card__image-caption)::after,
|
|
106
|
+
.ml-card__image[data-placeholder="true"]::after {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ml-card__image:has(.ml-card__image-caption) .ml-card__image-caption {
|
|
111
|
+
opacity: var(--ml-card-content-rest-opacity);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ml-card--hover:hover .ml-card__image > * {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ml-card--hover:hover .ml-card__image > img,
|
|
119
|
+
.ml-card--hover:hover .ml-card__image > picture > img,
|
|
120
|
+
.ml-card--hover:hover .ml-card__image > video {
|
|
121
|
+
filter: grayscale(0) brightness(1);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ml-card--hover:hover .ml-card__image::after {
|
|
125
|
+
opacity: 0.82;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ml-card--hover:hover .ml-card__image-caption {
|
|
129
|
+
opacity: var(--ml-card-content-hover-opacity);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ml-card__footer {
|
|
133
|
+
background: var(--surface);
|
|
134
|
+
transition:
|
|
135
|
+
border-color var(--duration-micro) var(--ease-out),
|
|
136
|
+
color var(--duration-micro) var(--ease-out);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ml-card__body {
|
|
140
|
+
background: var(--surface);
|
|
141
|
+
transition: color var(--duration-micro) var(--ease-out);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ml-card__tag-list {
|
|
145
|
+
flex: 1 1 auto;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ml-card__tag-overflow {
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ml-card__arrow {
|
|
153
|
+
display: inline-block;
|
|
154
|
+
opacity: 0.72;
|
|
155
|
+
transform: translate3d(var(--ml-card-arrow-offset), 0, 0);
|
|
156
|
+
transition:
|
|
157
|
+
opacity var(--duration-micro) var(--ease-out),
|
|
158
|
+
transform var(--duration-medium) var(--ease-out);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ml-card--hover:hover .ml-card__arrow,
|
|
162
|
+
.ml-card--interactive:hover .ml-card__arrow {
|
|
163
|
+
opacity: 1;
|
|
164
|
+
transform: translate3d(0, 0, 0);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
type CardSize = "sm" | "md" | "lg";
|
|
4
|
+
type CardImageRatio = "square" | "portrait" | "landscape" | "wide";
|
|
5
|
+
type CardDescriptionLines = 2 | 3 | 4;
|
|
6
|
+
interface CardBaseProps {
|
|
7
|
+
size?: CardSize;
|
|
8
|
+
}
|
|
9
|
+
type CardProps = (CardBaseProps & {
|
|
10
|
+
asChild?: false;
|
|
11
|
+
href: string;
|
|
12
|
+
target?: React$1.HTMLAttributeAnchorTarget;
|
|
13
|
+
rel?: string;
|
|
14
|
+
download?: React$1.AnchorHTMLAttributes<HTMLAnchorElement>["download"];
|
|
15
|
+
referrerPolicy?: React$1.HTMLAttributeReferrerPolicy;
|
|
16
|
+
onClick?: React$1.MouseEventHandler<HTMLAnchorElement>;
|
|
17
|
+
ref?: React$1.Ref<HTMLAnchorElement>;
|
|
18
|
+
} & Omit<React$1.ComponentPropsWithRef<"a">, "size" | "onClick" | "ref">) | (CardBaseProps & {
|
|
19
|
+
asChild: true;
|
|
20
|
+
href?: never;
|
|
21
|
+
target?: never;
|
|
22
|
+
rel?: never;
|
|
23
|
+
download?: never;
|
|
24
|
+
referrerPolicy?: never;
|
|
25
|
+
onClick?: never;
|
|
26
|
+
ref?: React$1.Ref<HTMLElement>;
|
|
27
|
+
} & Omit<React$1.ComponentPropsWithRef<"div">, "size" | "onClick" | "ref">) | (CardBaseProps & {
|
|
28
|
+
asChild?: false;
|
|
29
|
+
href?: never;
|
|
30
|
+
target?: never;
|
|
31
|
+
rel?: never;
|
|
32
|
+
download?: never;
|
|
33
|
+
referrerPolicy?: never;
|
|
34
|
+
onClick: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
35
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
36
|
+
} & Omit<React$1.ComponentPropsWithRef<"button">, "size" | "onClick" | "ref">) | (CardBaseProps & {
|
|
37
|
+
asChild?: false;
|
|
38
|
+
href?: never;
|
|
39
|
+
target?: never;
|
|
40
|
+
rel?: never;
|
|
41
|
+
download?: never;
|
|
42
|
+
referrerPolicy?: never;
|
|
43
|
+
onClick?: never;
|
|
44
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
45
|
+
} & Omit<React$1.ComponentPropsWithRef<"div">, "size" | "onClick" | "ref">);
|
|
46
|
+
type CardSlotProps = React$1.ComponentProps<"div">;
|
|
47
|
+
interface CardImageProps extends React$1.ComponentProps<"div"> {
|
|
48
|
+
ratio?: CardImageRatio;
|
|
49
|
+
placeholder?: boolean;
|
|
50
|
+
}
|
|
51
|
+
type CardHeadingProps = React$1.ComponentProps<"h3">;
|
|
52
|
+
interface CardDescriptionProps extends React$1.ComponentProps<"p"> {
|
|
53
|
+
lines?: CardDescriptionLines;
|
|
54
|
+
}
|
|
55
|
+
type CardTextProps = React$1.ComponentProps<"p">;
|
|
56
|
+
type CardActionProps = React$1.ComponentProps<"span">;
|
|
57
|
+
interface CardTagListProps extends React$1.ComponentProps<"div"> {
|
|
58
|
+
totalCount?: number;
|
|
59
|
+
overflowFormatter?: (count: number) => React$1.ReactNode;
|
|
60
|
+
}
|
|
61
|
+
interface CardArrowProps extends React$1.ComponentProps<"span"> {
|
|
62
|
+
children?: React$1.ReactNode;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare function CardAction({ className, ref, ...props }: CardActionProps): React.ReactElement;
|
|
66
|
+
|
|
67
|
+
declare function CardArrow({ children, className, ref, ...props }: CardArrowProps): React.ReactElement;
|
|
68
|
+
|
|
69
|
+
declare function CardBody({ className, ref, ...props }: CardSlotProps): React.ReactElement;
|
|
70
|
+
|
|
71
|
+
declare function CardDescription({ className, lines, ref, ...props }: CardDescriptionProps): React.ReactElement;
|
|
72
|
+
|
|
73
|
+
declare function CardEyebrow({ className, ref, ...props }: CardTextProps): React.ReactElement;
|
|
74
|
+
|
|
75
|
+
declare function CardFooter({ className, ref, ...props }: CardSlotProps): React.ReactElement;
|
|
76
|
+
|
|
77
|
+
declare function CardHeader({ className, ref, ...props }: CardSlotProps): React.ReactElement;
|
|
78
|
+
|
|
79
|
+
declare function CardImage({ className, placeholder, ratio, ref, ...props }: CardImageProps): React.ReactElement;
|
|
80
|
+
|
|
81
|
+
declare function CardImageCaption({ className, ref, ...props }: CardSlotProps): React.ReactElement;
|
|
82
|
+
|
|
83
|
+
declare function CardMeta({ className, ref, ...props }: CardSlotProps): React.ReactElement;
|
|
84
|
+
|
|
85
|
+
declare function CardRoot(props: CardProps): React.ReactElement;
|
|
86
|
+
|
|
87
|
+
declare function CardTagList({ children, className, totalCount, overflowFormatter, ref, ...props }: CardTagListProps): React$1.ReactElement;
|
|
88
|
+
|
|
89
|
+
declare function CardTitle({ className, ref, ...props }: CardHeadingProps): React.ReactElement;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @module Card
|
|
93
|
+
* Description for Card component.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
declare const Card: typeof CardRoot & {
|
|
97
|
+
displayName: string;
|
|
98
|
+
Action: typeof CardAction;
|
|
99
|
+
Image: typeof CardImage;
|
|
100
|
+
ImageCaption: typeof CardImageCaption;
|
|
101
|
+
Body: typeof CardBody;
|
|
102
|
+
Header: typeof CardHeader;
|
|
103
|
+
Meta: typeof CardMeta;
|
|
104
|
+
Title: typeof CardTitle;
|
|
105
|
+
Eyebrow: typeof CardEyebrow;
|
|
106
|
+
Description: typeof CardDescription;
|
|
107
|
+
Footer: typeof CardFooter;
|
|
108
|
+
TagList: typeof CardTagList;
|
|
109
|
+
Arrow: typeof CardArrow;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export { Card, CardAction, type CardActionProps, type CardArrowProps, CardBody, CardDescription, type CardDescriptionLines, type CardDescriptionProps, CardEyebrow, CardFooter, CardHeader, type CardHeadingProps, CardImage, CardImageCaption, type CardImageProps, type CardImageRatio, CardMeta, type CardProps, type CardSize, type CardSlotProps, CardTagList, type CardTagListProps, type CardTextProps, CardTitle };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{l as Card,a as CardAction,b as CardBody,c as CardDescription,d as CardEyebrow,e as CardFooter,f as CardHeader,g as CardImage,h as CardImageCaption,i as CardMeta,j as CardTagList,k as CardTitle}from'../../chunk-JCKPCV2H.js';import'../../chunk-AACTIVV7.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ml-code-block {
|
|
5
|
+
border-color: var(--border);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ml-code-block__header {
|
|
9
|
+
border-color: var(--border);
|
|
10
|
+
background: var(--surface-3);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ml-code-block__pre {
|
|
14
|
+
background: var(--surface-code, var(--surface-2));
|
|
15
|
+
color: var(--code-text, var(--text-primary));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ml-code-block pre {
|
|
19
|
+
border: 0 !important;
|
|
20
|
+
border-radius: 0 !important;
|
|
21
|
+
margin: 0 !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
interface CodeBlockProps extends Omit<React$1.ComponentProps<"figure">, "children"> {
|
|
4
|
+
filename?: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
children?: React$1.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare function CodeBlockRoot({ filename, code, language, children, className, ref, ...props }: CodeBlockProps): React.ReactElement;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @module CodeBlock
|
|
14
|
+
* Description for CodeBlock component.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
declare const CodeBlock: typeof CodeBlockRoot & {
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { CodeBlock, type CodeBlockProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|