@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.
Files changed (237) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +313 -0
  3. package/chunk-2T2JZW4Z.js +2 -0
  4. package/chunk-2T2JZW4Z.js.map +1 -0
  5. package/chunk-37JB3ZNS.js +2 -0
  6. package/chunk-37JB3ZNS.js.map +1 -0
  7. package/chunk-3F6Z4CFV.js +2 -0
  8. package/chunk-3F6Z4CFV.js.map +1 -0
  9. package/chunk-5TIKYN5B.js +2 -0
  10. package/chunk-5TIKYN5B.js.map +1 -0
  11. package/chunk-6AEWSPAE.js +2 -0
  12. package/chunk-6AEWSPAE.js.map +1 -0
  13. package/chunk-7ANXAXP5.js +2 -0
  14. package/chunk-7ANXAXP5.js.map +1 -0
  15. package/chunk-7SDVYBBO.js +2 -0
  16. package/chunk-7SDVYBBO.js.map +1 -0
  17. package/chunk-7WJF6B6G.js +2 -0
  18. package/chunk-7WJF6B6G.js.map +1 -0
  19. package/chunk-A2LXX23X.js +2 -0
  20. package/chunk-A2LXX23X.js.map +1 -0
  21. package/chunk-AACTIVV7.js +2 -0
  22. package/chunk-AACTIVV7.js.map +1 -0
  23. package/chunk-B5P3RAN2.js +2 -0
  24. package/chunk-B5P3RAN2.js.map +1 -0
  25. package/chunk-COFALEVG.js +2 -0
  26. package/chunk-COFALEVG.js.map +1 -0
  27. package/chunk-D3E4G2RE.js +2 -0
  28. package/chunk-D3E4G2RE.js.map +1 -0
  29. package/chunk-DJT3EVR4.js +2 -0
  30. package/chunk-DJT3EVR4.js.map +1 -0
  31. package/chunk-EWKGYQOX.js +2 -0
  32. package/chunk-EWKGYQOX.js.map +1 -0
  33. package/chunk-FLUGXF5D.js +2 -0
  34. package/chunk-FLUGXF5D.js.map +1 -0
  35. package/chunk-GSWZL5C2.js +2 -0
  36. package/chunk-GSWZL5C2.js.map +1 -0
  37. package/chunk-H2CRII7X.js +2 -0
  38. package/chunk-H2CRII7X.js.map +1 -0
  39. package/chunk-IVTAW6SX.js +3 -0
  40. package/chunk-IVTAW6SX.js.map +1 -0
  41. package/chunk-JBOP2AJB.js +2 -0
  42. package/chunk-JBOP2AJB.js.map +1 -0
  43. package/chunk-JCKPCV2H.js +2 -0
  44. package/chunk-JCKPCV2H.js.map +1 -0
  45. package/chunk-K665XZ3N.js +2 -0
  46. package/chunk-K665XZ3N.js.map +1 -0
  47. package/chunk-K72EORST.js +2 -0
  48. package/chunk-K72EORST.js.map +1 -0
  49. package/chunk-KGLH6WI6.js +2 -0
  50. package/chunk-KGLH6WI6.js.map +1 -0
  51. package/chunk-LVMQ3ZM3.js +2 -0
  52. package/chunk-LVMQ3ZM3.js.map +1 -0
  53. package/chunk-N37GMCSK.js +2 -0
  54. package/chunk-N37GMCSK.js.map +1 -0
  55. package/chunk-NDHOUIOX.js +2 -0
  56. package/chunk-NDHOUIOX.js.map +1 -0
  57. package/chunk-NDTTLW56.js +2 -0
  58. package/chunk-NDTTLW56.js.map +1 -0
  59. package/chunk-O43OQHFN.js +2 -0
  60. package/chunk-O43OQHFN.js.map +1 -0
  61. package/chunk-QGG3J7OW.js +2 -0
  62. package/chunk-QGG3J7OW.js.map +1 -0
  63. package/chunk-QUG36ONS.js +2 -0
  64. package/chunk-QUG36ONS.js.map +1 -0
  65. package/chunk-R2YSVBHS.js +2 -0
  66. package/chunk-R2YSVBHS.js.map +1 -0
  67. package/chunk-TSOHITZ7.js +2 -0
  68. package/chunk-TSOHITZ7.js.map +1 -0
  69. package/chunk-V6PUPMAY.js +3 -0
  70. package/chunk-V6PUPMAY.js.map +1 -0
  71. package/chunk-VSATIFOR.js +2 -0
  72. package/chunk-VSATIFOR.js.map +1 -0
  73. package/chunk-XEB7C557.js +2 -0
  74. package/chunk-XEB7C557.js.map +1 -0
  75. package/chunk-Z7SIB4X6.js +2 -0
  76. package/chunk-Z7SIB4X6.js.map +1 -0
  77. package/chunk-ZOPV3BXO.js +2 -0
  78. package/chunk-ZOPV3BXO.js.map +1 -0
  79. package/chunk-ZU3HIOBU.js +2 -0
  80. package/chunk-ZU3HIOBU.js.map +1 -0
  81. package/components/action-rail/index.d.ts +18 -0
  82. package/components/action-rail/index.js +2 -0
  83. package/components/action-rail/index.js.map +1 -0
  84. package/components/avatar/avatar.css +47 -0
  85. package/components/avatar/index.d.ts +28 -0
  86. package/components/avatar/index.js +2 -0
  87. package/components/avatar/index.js.map +1 -0
  88. package/components/back-link/back-link.css +30 -0
  89. package/components/back-link/index.d.ts +18 -0
  90. package/components/back-link/index.js +2 -0
  91. package/components/back-link/index.js.map +1 -0
  92. package/components/badge/badge.css +27 -0
  93. package/components/badge/index.d.ts +26 -0
  94. package/components/badge/index.js +2 -0
  95. package/components/badge/index.js.map +1 -0
  96. package/components/button/button.css +238 -0
  97. package/components/button/index.d.ts +36 -0
  98. package/components/button/index.js +2 -0
  99. package/components/button/index.js.map +1 -0
  100. package/components/callout/callout.css +20 -0
  101. package/components/callout/index.d.ts +20 -0
  102. package/components/callout/index.js +2 -0
  103. package/components/callout/index.js.map +1 -0
  104. package/components/card/card.css +166 -0
  105. package/components/card/index.d.ts +112 -0
  106. package/components/card/index.js +2 -0
  107. package/components/card/index.js.map +1 -0
  108. package/components/code-block/code-block.css +23 -0
  109. package/components/code-block/index.d.ts +21 -0
  110. package/components/code-block/index.js +2 -0
  111. package/components/code-block/index.js.map +1 -0
  112. package/components/command-search/command-search.css +217 -0
  113. package/components/command-search/index.d.ts +73 -0
  114. package/components/command-search/index.js +2 -0
  115. package/components/command-search/index.js.map +1 -0
  116. package/components/container/container.css +41 -0
  117. package/components/container/index.d.ts +11 -0
  118. package/components/container/index.js +2 -0
  119. package/components/container/index.js.map +1 -0
  120. package/components/data-list/data-list.css +139 -0
  121. package/components/data-list/index.d.ts +45 -0
  122. package/components/data-list/index.js +2 -0
  123. package/components/data-list/index.js.map +1 -0
  124. package/components/editorial-line/index.d.ts +24 -0
  125. package/components/editorial-line/index.js +2 -0
  126. package/components/editorial-line/index.js.map +1 -0
  127. package/components/eyebrow/eyebrow.css +13 -0
  128. package/components/eyebrow/index.d.ts +17 -0
  129. package/components/eyebrow/index.js +2 -0
  130. package/components/eyebrow/index.js.map +1 -0
  131. package/components/footer/footer.css +201 -0
  132. package/components/footer/index.d.ts +66 -0
  133. package/components/footer/index.js +2 -0
  134. package/components/footer/index.js.map +1 -0
  135. package/components/input/index.d.ts +28 -0
  136. package/components/input/index.js +2 -0
  137. package/components/input/index.js.map +1 -0
  138. package/components/input/input.css +37 -0
  139. package/components/link-list/index.d.ts +47 -0
  140. package/components/link-list/index.js +2 -0
  141. package/components/link-list/index.js.map +1 -0
  142. package/components/link-list/link-list.css +208 -0
  143. package/components/media-frame/index.d.ts +31 -0
  144. package/components/media-frame/index.js +2 -0
  145. package/components/media-frame/index.js.map +1 -0
  146. package/components/media-frame/media-frame.css +86 -0
  147. package/components/meta-row/index.d.ts +22 -0
  148. package/components/meta-row/index.js +2 -0
  149. package/components/meta-row/index.js.map +1 -0
  150. package/components/metric/index.d.ts +22 -0
  151. package/components/metric/index.js +2 -0
  152. package/components/metric/index.js.map +1 -0
  153. package/components/navbar/index.d.ts +78 -0
  154. package/components/navbar/index.js +2 -0
  155. package/components/navbar/index.js.map +1 -0
  156. package/components/navbar/navbar.css +245 -0
  157. package/components/progress/index.d.ts +20 -0
  158. package/components/progress/index.js +2 -0
  159. package/components/progress/index.js.map +1 -0
  160. package/components/progress/progress.css +31 -0
  161. package/components/pull-quote/index.d.ts +18 -0
  162. package/components/pull-quote/index.js +2 -0
  163. package/components/pull-quote/index.js.map +1 -0
  164. package/components/rail/index.d.ts +28 -0
  165. package/components/rail/index.js +2 -0
  166. package/components/rail/index.js.map +1 -0
  167. package/components/rail/rail.css +118 -0
  168. package/components/resources-panel/index.d.ts +42 -0
  169. package/components/resources-panel/index.js +2 -0
  170. package/components/resources-panel/index.js.map +1 -0
  171. package/components/resources-panel/resources-panel.css +396 -0
  172. package/components/section-head/index.d.ts +24 -0
  173. package/components/section-head/index.js +2 -0
  174. package/components/section-head/index.js.map +1 -0
  175. package/components/segmented-control/index.d.ts +28 -0
  176. package/components/segmented-control/index.js +2 -0
  177. package/components/segmented-control/index.js.map +1 -0
  178. package/components/segmented-control/segmented-control.css +177 -0
  179. package/components/select/index.d.ts +65 -0
  180. package/components/select/index.js +2 -0
  181. package/components/select/index.js.map +1 -0
  182. package/components/select/select.css +298 -0
  183. package/components/skeleton/index.d.ts +19 -0
  184. package/components/skeleton/index.js +2 -0
  185. package/components/skeleton/index.js.map +1 -0
  186. package/components/skeleton/skeleton.css +13 -0
  187. package/components/status/index.d.ts +20 -0
  188. package/components/status/index.js +2 -0
  189. package/components/status/index.js.map +1 -0
  190. package/components/status/status.css +86 -0
  191. package/components/tag/index.d.ts +35 -0
  192. package/components/tag/index.js +2 -0
  193. package/components/tag/index.js.map +1 -0
  194. package/components/tag/tag.css +10 -0
  195. package/components/testimonial/index.d.ts +30 -0
  196. package/components/testimonial/index.js +2 -0
  197. package/components/testimonial/index.js.map +1 -0
  198. package/components/testimonial/testimonial.css +109 -0
  199. package/components/testimonial-grid/index.d.ts +12 -0
  200. package/components/testimonial-grid/index.js +2 -0
  201. package/components/testimonial-grid/index.js.map +1 -0
  202. package/components/testimonial-grid/testimonial-grid.css +58 -0
  203. package/components/theme-switcher/index.d.ts +24 -0
  204. package/components/theme-switcher/index.js +2 -0
  205. package/components/theme-switcher/index.js.map +1 -0
  206. package/components/theme-switcher/theme-switcher.css +130 -0
  207. package/components/toast/index.d.ts +20 -0
  208. package/components/toast/index.js +2 -0
  209. package/components/toast/index.js.map +1 -0
  210. package/components/toast/toast.css +22 -0
  211. package/components/toc/index.d.ts +27 -0
  212. package/components/toc/index.js +2 -0
  213. package/components/toc/index.js.map +1 -0
  214. package/components/toggle/index.d.ts +20 -0
  215. package/components/toggle/index.js +2 -0
  216. package/components/toggle/index.js.map +1 -0
  217. package/components/toggle/toggle.css +108 -0
  218. package/foundations/breakpoints.d.ts +12 -0
  219. package/foundations/breakpoints.js +2 -0
  220. package/foundations/breakpoints.js.map +1 -0
  221. package/foundations/use-breakpoint.d.ts +5 -0
  222. package/foundations/use-breakpoint.js +3 -0
  223. package/foundations/use-breakpoint.js.map +1 -0
  224. package/index.d.ts +42 -0
  225. package/index.js +2 -0
  226. package/index.js.map +1 -0
  227. package/lib/utils.d.ts +7 -0
  228. package/lib/utils.js +2 -0
  229. package/lib/utils.js.map +1 -0
  230. package/package.json +228 -0
  231. package/styles/theme/animations.css +206 -0
  232. package/styles/theme/base.css +75 -0
  233. package/styles/theme/tailwind.css +371 -0
  234. package/styles/theme/tokens.css +562 -0
  235. package/styles/theme/typography.css +108 -0
  236. package/styles/theme/utilities.css +281 -0
  237. package/styles/theme.css +68 -0
@@ -0,0 +1,35 @@
1
+ import * as React$1 from 'react';
2
+
3
+ type TagSize = "sm" | "md" | "lg";
4
+ type TagVariant = "filter" | "chip";
5
+ interface TagBaseProps {
6
+ active?: boolean;
7
+ interactive?: boolean;
8
+ size?: TagSize;
9
+ variant?: TagVariant;
10
+ asChild?: boolean;
11
+ }
12
+ type InteractiveTagProps = TagBaseProps & React$1.ComponentProps<"button"> & {
13
+ interactive?: true;
14
+ };
15
+ type StaticTagProps = TagBaseProps & React$1.ComponentProps<"span"> & {
16
+ interactive?: false;
17
+ };
18
+ type TagProps = InteractiveTagProps | StaticTagProps;
19
+ type TagCountProps = React$1.ComponentProps<"span">;
20
+
21
+ declare function TagCount({ className, ref, ...props }: TagCountProps): React.ReactElement;
22
+
23
+ declare function TagRoot({ className, active, size, variant, interactive, asChild, ref, ...props }: TagProps): React.ReactElement;
24
+
25
+ /**
26
+ * @module Tag
27
+ * Description for Tag component.
28
+ */
29
+
30
+ declare const Tag: typeof TagRoot & {
31
+ displayName: string;
32
+ Count: typeof TagCount;
33
+ };
34
+
35
+ export { type InteractiveTagProps, type StaticTagProps, Tag, type TagCountProps, type TagProps, type TagSize, type TagVariant };
@@ -0,0 +1,2 @@
1
+ export{a as Tag}from'../../chunk-B5P3RAN2.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,10 @@
1
+ @layer theme, base, components, utilities;
2
+
3
+ @layer components {
4
+ .ml-tag[data-interactive="false"] {
5
+ border-color: var(--border-strong);
6
+ background: transparent;
7
+ color: var(--text-body);
8
+ box-shadow: none;
9
+ }
10
+ }
@@ -0,0 +1,30 @@
1
+ import { TestimonialGrid } from '../testimonial-grid/index.js';
2
+ import * as React$1 from 'react';
3
+
4
+ type TestimonialSize = "sm" | "md" | "lg";
5
+ type TestimonialVariant = "default" | "plain";
6
+ interface TestimonialProps extends Omit<React$1.ComponentProps<"figure">, "role"> {
7
+ quote: React$1.ReactNode;
8
+ author: React$1.ReactNode;
9
+ authorHref?: string;
10
+ role?: React$1.ReactNode;
11
+ initials?: string;
12
+ avatarSrc?: string;
13
+ avatarAlt?: string;
14
+ size?: TestimonialSize;
15
+ variant?: TestimonialVariant;
16
+ }
17
+
18
+ declare function TestimonialRoot({ className, quote, author, authorHref, role, initials, avatarSrc, avatarAlt, size, variant, ref, ...props }: TestimonialProps): React.ReactElement;
19
+
20
+ /**
21
+ * @module Testimonial
22
+ * Description for Testimonial component.
23
+ */
24
+
25
+ declare const Testimonial: typeof TestimonialRoot & {
26
+ displayName: string;
27
+ Grid: typeof TestimonialGrid;
28
+ };
29
+
30
+ export { Testimonial, TestimonialGrid, type TestimonialProps, type TestimonialSize, type TestimonialVariant };
@@ -0,0 +1,2 @@
1
+ export{a as Testimonial}from'../../chunk-6AEWSPAE.js';export{a as TestimonialGrid}from'../../chunk-R2YSVBHS.js';import'../../chunk-N37GMCSK.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,109 @@
1
+ @layer theme, base, components, utilities;
2
+
3
+ @layer components {
4
+ .ml-testimonial {
5
+ --ml-testimonial-gap: var(--ml-space-4);
6
+ --ml-testimonial-padding: var(--ml-space-5);
7
+ --ml-testimonial-quote-text: var(--text-md);
8
+ --ml-testimonial-name-text: var(--text-sm);
9
+ --ml-testimonial-role-text: var(--text-2xs);
10
+ --ml-testimonial-mark-text: var(--text-5xl);
11
+
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: var(--ml-testimonial-gap);
15
+ border: var(--border-thin) solid var(--border);
16
+ border-radius: var(--radius-2xl);
17
+ background: var(--surface);
18
+ padding: var(--ml-testimonial-padding);
19
+ color: var(--text-body);
20
+ }
21
+
22
+ .ml-testimonial[data-size="sm"] {
23
+ --ml-testimonial-gap: var(--ml-space-3);
24
+ --ml-testimonial-padding: var(--ml-space-4);
25
+ --ml-testimonial-quote-text: var(--text-sm);
26
+ --ml-testimonial-name-text: var(--text-xs);
27
+ --ml-testimonial-role-text: var(--text-3xs);
28
+ --ml-testimonial-mark-text: var(--text-4xl);
29
+ }
30
+
31
+ .ml-testimonial[data-size="lg"] {
32
+ --ml-testimonial-gap: var(--ml-space-5);
33
+ --ml-testimonial-padding: var(--ml-space-7);
34
+ --ml-testimonial-quote-text: var(--text-lg);
35
+ --ml-testimonial-name-text: var(--text-base);
36
+ --ml-testimonial-role-text: var(--text-xs);
37
+ }
38
+
39
+ .ml-testimonial__mark {
40
+ color: var(--accent);
41
+ font-family: var(--font-mono);
42
+ font-size: var(--ml-testimonial-mark-text);
43
+ line-height: 0.5;
44
+ opacity: 0.7;
45
+ }
46
+
47
+ .ml-testimonial__quote {
48
+ margin: 0;
49
+ color: var(--text-body);
50
+ font-size: var(--ml-testimonial-quote-text);
51
+ line-height: var(--leading-relaxed);
52
+ text-wrap: pretty;
53
+ }
54
+
55
+ .ml-testimonial[data-size="lg"] .ml-testimonial__quote {
56
+ font-family: var(--font-headline);
57
+ font-weight: 500;
58
+ }
59
+
60
+ .ml-testimonial__author {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: var(--ml-space-3);
64
+ margin-block-start: auto;
65
+ border-block-start: var(--border-thin) solid var(--border);
66
+ padding-block-start: var(--ml-space-4);
67
+ }
68
+
69
+ .ml-testimonial__author-copy {
70
+ display: flex;
71
+ min-width: 0;
72
+ flex-direction: column;
73
+ }
74
+
75
+ .ml-testimonial__name {
76
+ color: var(--primary);
77
+ font-size: var(--ml-testimonial-name-text);
78
+ font-weight: 600;
79
+ line-height: var(--leading-snug);
80
+ }
81
+
82
+ a.ml-testimonial__name {
83
+ text-decoration: none;
84
+ display: inline-flex;
85
+ align-items: center;
86
+ gap: var(--ml-space-1);
87
+ transition: color var(--duration-micro) var(--ease-out);
88
+ }
89
+
90
+ a.ml-testimonial__name:hover {
91
+ color: var(--accent);
92
+ }
93
+
94
+ .ml-testimonial__role {
95
+ color: var(--text-muted);
96
+ font-family: var(--font-mono);
97
+ font-size: var(--ml-testimonial-role-text);
98
+ line-height: var(--leading-normal);
99
+ }
100
+
101
+ .ml-testimonial[data-variant="plain"] .ml-testimonial__quote {
102
+ font-family: var(--font-sans);
103
+ font-weight: 500;
104
+ }
105
+
106
+ .ml-testimonial[data-variant="plain"] .ml-testimonial__author {
107
+ margin-block-start: auto;
108
+ }
109
+ }
@@ -0,0 +1,12 @@
1
+ import * as React$1 from 'react';
2
+
3
+ type TestimonialGridVariant = "grid" | "masonry";
4
+ type TestimonialGridAlign = "start" | "stretch";
5
+ interface TestimonialGridProps extends React$1.ComponentProps<"div"> {
6
+ variant?: TestimonialGridVariant;
7
+ align?: TestimonialGridAlign;
8
+ }
9
+
10
+ declare function TestimonialGrid({ align, className, variant, ref, ...props }: TestimonialGridProps): React.ReactElement;
11
+
12
+ export { TestimonialGrid, type TestimonialGridAlign, type TestimonialGridProps, type TestimonialGridVariant };
@@ -0,0 +1,2 @@
1
+ export{a as TestimonialGrid}from'../../chunk-R2YSVBHS.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,58 @@
1
+ @layer theme, base, components, utilities;
2
+
3
+ @layer components {
4
+ .ml-testimonial-grid {
5
+ --ml-testimonial-grid-gap: var(--ml-space-4);
6
+
7
+ width: 100%;
8
+ }
9
+
10
+ .ml-testimonial-grid[data-variant="grid"] {
11
+ display: grid;
12
+ grid-template-columns: minmax(0, 1fr);
13
+ gap: var(--ml-testimonial-grid-gap);
14
+ align-items: stretch;
15
+ }
16
+
17
+ .ml-testimonial-grid[data-variant="grid"][data-align="start"] {
18
+ align-items: start;
19
+ }
20
+
21
+ .ml-testimonial-grid[data-variant="masonry"] {
22
+ column-count: 1;
23
+ column-gap: var(--ml-testimonial-grid-gap);
24
+ }
25
+
26
+ .ml-testimonial-grid[data-variant="masonry"] > * {
27
+ break-inside: avoid;
28
+ margin-block-end: var(--ml-testimonial-grid-gap);
29
+ }
30
+
31
+ @media (min-width: 48rem) {
32
+ .ml-testimonial-grid {
33
+ --ml-testimonial-grid-gap: var(--ml-space-5);
34
+ }
35
+
36
+ .ml-testimonial-grid[data-variant="grid"] {
37
+ grid-template-columns: repeat(2, minmax(0, 1fr));
38
+ }
39
+
40
+ .ml-testimonial-grid[data-variant="masonry"] {
41
+ column-count: 2;
42
+ }
43
+ }
44
+
45
+ @media (min-width: 64rem) {
46
+ .ml-testimonial-grid {
47
+ --ml-testimonial-grid-gap: var(--ml-space-6);
48
+ }
49
+
50
+ .ml-testimonial-grid[data-variant="grid"] {
51
+ grid-template-columns: repeat(3, minmax(0, 1fr));
52
+ }
53
+
54
+ .ml-testimonial-grid[data-variant="masonry"] {
55
+ column-count: 3;
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,24 @@
1
+ import * as React$1 from 'react';
2
+
3
+ type ThemeSwitcherTheme = "light" | "dark";
4
+ type ThemeSwitcherMode = "mini" | "full";
5
+ type ThemeSwitcherSize = "sm" | "md" | "lg";
6
+ interface ThemeSwitcherProps extends Omit<React$1.ComponentProps<"button">, "onChange"> {
7
+ theme: ThemeSwitcherTheme;
8
+ mode?: ThemeSwitcherMode;
9
+ size?: ThemeSwitcherSize;
10
+ onThemeChange: (theme: ThemeSwitcherTheme) => void;
11
+ lightLabel?: string;
12
+ darkLabel?: string;
13
+ }
14
+
15
+ declare function ThemeSwitcherRoot({ className, theme, mode, size, onThemeChange, lightLabel, darkLabel, disabled, type, ref, ...props }: ThemeSwitcherProps): React.ReactElement;
16
+
17
+ /**
18
+ * @module theme-switcher
19
+ * Description for theme-switcher component.
20
+ */
21
+
22
+ declare const ThemeSwitcher: typeof ThemeSwitcherRoot;
23
+
24
+ export { ThemeSwitcher, type ThemeSwitcherMode, type ThemeSwitcherProps, type ThemeSwitcherSize, type ThemeSwitcherTheme };
@@ -0,0 +1,2 @@
1
+ export{a as ThemeSwitcher}from'../../chunk-FLUGXF5D.js';import'../../chunk-QUG36ONS.js';import'../../chunk-JBOP2AJB.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,130 @@
1
+ @layer theme, base, components, utilities;
2
+
3
+ @layer components {
4
+ .ml-theme-switcher {
5
+ display: inline-flex;
6
+ align-items: center;
7
+ color: var(--text);
8
+ }
9
+
10
+ .ml-theme-switcher__icon {
11
+ display: inline-grid;
12
+ place-items: center;
13
+ color: var(--text-muted);
14
+ font-size: var(--text-2xl);
15
+ line-height: 1;
16
+ transition:
17
+ color var(--duration-micro) var(--ease-out),
18
+ opacity var(--duration-micro) var(--ease-out),
19
+ transform var(--duration-short) var(--ease-out);
20
+ }
21
+
22
+ .ml-theme-switcher--mini {
23
+ padding: 0;
24
+ }
25
+
26
+ .ml-theme-switcher--mini .ml-theme-switcher__icon {
27
+ color: var(--text);
28
+ font-size: var(--text-base);
29
+ }
30
+
31
+ .ml-theme-switcher--mini[data-size="lg"] .ml-theme-switcher__icon {
32
+ font-size: var(--text-xl);
33
+ }
34
+
35
+ .ml-theme-switcher--full {
36
+ gap: var(--space-4);
37
+ }
38
+
39
+ .ml-theme-switcher--full[data-size="sm"] {
40
+ gap: var(--space-3);
41
+ }
42
+
43
+ .ml-theme-switcher--full[data-size="sm"] .ml-theme-switcher__icon {
44
+ font-size: var(--text-xl);
45
+ }
46
+
47
+ .ml-theme-switcher--full[data-size="lg"] {
48
+ gap: var(--space-5);
49
+ }
50
+
51
+ .ml-theme-switcher--full[data-size="lg"] .ml-theme-switcher__icon {
52
+ font-size: var(--text-3xl);
53
+ }
54
+
55
+ .ml-theme-switcher__toggle {
56
+ border-color: var(--primary);
57
+ background: var(--primary);
58
+ transition:
59
+ background-color var(--duration-short) var(--ease-out),
60
+ border-color var(--duration-short) var(--ease-out),
61
+ box-shadow var(--duration-micro) var(--ease-out);
62
+ }
63
+
64
+ .ml-theme-switcher__toggle .ml-toggle__thumb {
65
+ background: var(--primary-foreground);
66
+ transition:
67
+ background-color var(--duration-short) var(--ease-out),
68
+ transform var(--duration-short) var(--ease-out-expo);
69
+ }
70
+
71
+ .theme-transitioning .ml-theme-switcher__toggle .ml-toggle__thumb {
72
+ transition:
73
+ background-color var(--duration-short) var(--ease-out),
74
+ transform var(--duration-short) var(--ease-out-expo);
75
+ }
76
+
77
+ .theme-transitioning,
78
+ .theme-transitioning *,
79
+ .theme-transitioning *::before,
80
+ .theme-transitioning *::after {
81
+ transition:
82
+ background-color var(--duration-short) var(--ease-out),
83
+ border-color var(--duration-short) var(--ease-out),
84
+ color var(--duration-short) var(--ease-out),
85
+ box-shadow var(--duration-short) var(--ease-out) !important;
86
+ }
87
+
88
+ :root:not([data-theme="light"]) .ml-theme-switcher__toggle,
89
+ [data-theme="dark"] .ml-theme-switcher__toggle {
90
+ border-color: var(--border-strong);
91
+ background: var(--surface);
92
+ }
93
+
94
+ :root:not([data-theme="light"]) .ml-theme-switcher__toggle .ml-toggle__thumb,
95
+ [data-theme="dark"] .ml-theme-switcher__toggle .ml-toggle__thumb {
96
+ background: var(--primary);
97
+ }
98
+
99
+ .ml-theme-switcher__toggle[data-state="on"] {
100
+ border-color: var(--accent);
101
+ background: var(--accent-soft);
102
+ }
103
+
104
+ .ml-theme-switcher__toggle[data-state="on"] .ml-toggle__thumb {
105
+ background: var(--accent);
106
+ }
107
+
108
+ .ml-theme-switcher__toggle:hover:not(:disabled) {
109
+ border-color: var(--accent);
110
+ }
111
+
112
+ .ml-theme-switcher__toggle:active:not(:disabled) {
113
+ box-shadow: inset 0 0 0 var(--border-thin)
114
+ color-mix(in oklch, var(--accent) 28%, transparent);
115
+ }
116
+
117
+ .ml-theme-switcher--full[data-theme-value="light"]
118
+ .ml-theme-switcher__icon:first-child,
119
+ .ml-theme-switcher--full[data-theme-value="dark"]
120
+ .ml-theme-switcher__icon:last-child {
121
+ color: var(--text);
122
+ }
123
+
124
+ .ml-theme-switcher--full[data-theme-value="light"]
125
+ .ml-theme-switcher__icon:last-child,
126
+ .ml-theme-switcher--full[data-theme-value="dark"]
127
+ .ml-theme-switcher__icon:first-child {
128
+ opacity: 0.62;
129
+ }
130
+ }
@@ -0,0 +1,20 @@
1
+ import * as React$1 from 'react';
2
+
3
+ type ToastVariant = "accent" | "success" | "warn";
4
+ interface ToastProps extends React$1.ComponentProps<"div"> {
5
+ variant?: ToastVariant;
6
+ onDismiss?: () => void;
7
+ }
8
+
9
+ declare function ToastRoot({ className, variant, children, onDismiss, ref, ...props }: ToastProps): React.ReactElement;
10
+
11
+ /**
12
+ * @module Toast
13
+ * Description for Toast component.
14
+ */
15
+
16
+ declare const Toast: typeof ToastRoot & {
17
+ displayName: string;
18
+ };
19
+
20
+ export { Toast, type ToastProps, type ToastVariant };
@@ -0,0 +1,2 @@
1
+ export{a as Toast}from'../../chunk-7ANXAXP5.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,22 @@
1
+ @layer theme, base, components, utilities;
2
+
3
+ @layer components {
4
+ .ml-toast {
5
+ border-color: var(--border-strong);
6
+ background: var(--button);
7
+ box-shadow: 0 12px 36px oklch(0 0 0 / 0.4);
8
+ }
9
+
10
+ .ml-toast-dot--accent {
11
+ background: var(--accent);
12
+ box-shadow: 0 0 0 4px var(--accent-soft);
13
+ }
14
+
15
+ .ml-toast-dot--success {
16
+ background: var(--callout-tip-accent, var(--accent));
17
+ }
18
+
19
+ .ml-toast-dot--warn {
20
+ background: oklch(0.7 0.16 80);
21
+ }
22
+ }
@@ -0,0 +1,27 @@
1
+ import * as React$1 from 'react';
2
+
3
+ interface TocItem {
4
+ id: string;
5
+ label: React$1.ReactNode;
6
+ }
7
+ interface TocProps extends React$1.ComponentProps<"nav"> {
8
+ items: TocItem[];
9
+ activeId?: string;
10
+ heading?: React$1.ReactNode;
11
+ scrollOffset?: number;
12
+ collapsible?: boolean;
13
+ defaultOpen?: boolean;
14
+ }
15
+
16
+ declare function TocRoot({ className, items, activeId: controlledActive, heading, scrollOffset, collapsible, defaultOpen, ref, ...props }: TocProps): React.ReactElement;
17
+
18
+ /**
19
+ * @module Toc
20
+ * Description for Toc component.
21
+ */
22
+
23
+ declare const Toc: typeof TocRoot & {
24
+ displayName: string;
25
+ };
26
+
27
+ export { Toc, type TocItem, type TocProps };
@@ -0,0 +1,2 @@
1
+ export{a as Toc}from'../../chunk-ZU3HIOBU.js';import'../../chunk-VSATIFOR.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,20 @@
1
+ import * as React from 'react';
2
+
3
+ type ToggleSize = "sm" | "md" | "lg";
4
+ interface ToggleProps extends Omit<React.ComponentProps<"button">, "onChange"> {
5
+ size?: ToggleSize;
6
+ checked?: boolean;
7
+ defaultChecked?: boolean;
8
+ onCheckedChange?: (checked: boolean) => void;
9
+ }
10
+
11
+ declare function ToggleRoot({ className, size, checked, defaultChecked, onCheckedChange, onClick, disabled, ref, ...props }: ToggleProps): React.ReactElement;
12
+
13
+ /**
14
+ * @module toggle
15
+ * Description for toggle component.
16
+ */
17
+
18
+ declare const Toggle: typeof ToggleRoot;
19
+
20
+ export { Toggle, type ToggleProps, type ToggleSize };
@@ -0,0 +1,2 @@
1
+ export{a as Toggle}from'../../chunk-QUG36ONS.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,108 @@
1
+ @layer theme, base, components, utilities;
2
+
3
+ @layer components {
4
+ .ml-toggle {
5
+ --ml-toggle-height: var(--ml-space-10);
6
+ --ml-toggle-width: var(--ml-space-20);
7
+ --ml-toggle-padding: var(--ml-space-0-5);
8
+ --ml-toggle-border-width: var(--border-medium);
9
+ --ml-toggle-thumb-size: calc(
10
+ var(--ml-toggle-height) - (var(--ml-toggle-padding) * 2) -
11
+ (var(--ml-toggle-border-width) * 2)
12
+ );
13
+ --ml-toggle-travel: calc(
14
+ var(--ml-toggle-width) - var(--ml-toggle-thumb-size) -
15
+ (var(--ml-toggle-padding) * 2) - (var(--ml-toggle-border-width) * 2)
16
+ );
17
+
18
+ position: relative;
19
+ display: inline-flex;
20
+ inline-size: var(--ml-toggle-width);
21
+ block-size: var(--ml-toggle-height);
22
+ flex-shrink: 0;
23
+ align-items: center;
24
+ overflow: hidden;
25
+ padding: var(--ml-toggle-padding);
26
+ border: var(--ml-toggle-border-width) solid var(--primary);
27
+ border-radius: var(--radius-pill);
28
+ background: var(--primary);
29
+ cursor: pointer;
30
+ transition:
31
+ background-color var(--duration-short) var(--ease-out),
32
+ border-color var(--duration-short) var(--ease-out),
33
+ box-shadow var(--duration-micro) var(--ease-out);
34
+ }
35
+
36
+ .ml-toggle[data-size="sm"] {
37
+ --ml-toggle-height: var(--ml-space-8);
38
+ --ml-toggle-width: var(--ml-space-14);
39
+ }
40
+
41
+ .ml-toggle[data-size="lg"] {
42
+ --ml-toggle-height: var(--ml-space-12);
43
+ --ml-toggle-width: var(--space-24);
44
+ }
45
+
46
+ .ml-toggle[data-state="on"] {
47
+ border-color: var(--accent);
48
+ background: var(--accent-soft);
49
+ }
50
+
51
+ .ml-toggle[data-state="off"]:hover:not(:disabled) {
52
+ border-color: var(--border-strong);
53
+ }
54
+
55
+ .ml-toggle[data-state="on"]:hover:not(:disabled) {
56
+ border-color: var(--accent);
57
+ background: var(--accent-soft);
58
+ }
59
+
60
+ .ml-toggle:active:not(:disabled) {
61
+ box-shadow: inset 0 0 0 var(--border-thin)
62
+ color-mix(in oklch, var(--primary) 24%, transparent);
63
+ }
64
+
65
+ .ml-toggle:focus-visible {
66
+ outline: none;
67
+ box-shadow: var(--focus-ring);
68
+ }
69
+
70
+ .ml-toggle:disabled {
71
+ cursor: not-allowed;
72
+ opacity: 0.45;
73
+ }
74
+
75
+ .ml-toggle__thumb {
76
+ display: block;
77
+ inline-size: var(--ml-toggle-thumb-size);
78
+ block-size: var(--ml-toggle-thumb-size);
79
+ border-radius: var(--radius-pill);
80
+ background: var(--primary-foreground);
81
+ transform: translate3d(0, 0, 0);
82
+ transition:
83
+ background-color var(--duration-short) var(--ease-out),
84
+ transform var(--duration-short) var(--ease-out-expo);
85
+ }
86
+
87
+ :root:not([data-theme="light"]) .ml-toggle[data-state="off"],
88
+ [data-theme="dark"] .ml-toggle[data-state="off"] {
89
+ border-color: var(--border-strong);
90
+ background: var(--surface);
91
+ }
92
+
93
+ :root:not([data-theme="light"])
94
+ .ml-toggle[data-state="off"]
95
+ .ml-toggle__thumb,
96
+ [data-theme="dark"] .ml-toggle[data-state="off"] .ml-toggle__thumb {
97
+ background: var(--primary);
98
+ }
99
+
100
+ .ml-toggle[data-state="on"] .ml-toggle__thumb {
101
+ background: var(--accent);
102
+ transform: translate3d(var(--ml-toggle-travel), 0, 0);
103
+ }
104
+
105
+ .ml-toggle:disabled .ml-toggle__thumb {
106
+ transition-duration: var(--duration-instant);
107
+ }
108
+ }
@@ -0,0 +1,12 @@
1
+ declare const monolineBreakpoints: {
2
+ readonly mobile: 390;
3
+ readonly mobileMax: 767;
4
+ readonly tablet: 834;
5
+ readonly tabletMin: 768;
6
+ readonly tabletMax: 1023;
7
+ readonly desktop: 1280;
8
+ readonly wide: 1536;
9
+ };
10
+ type MonolineBreakpoint = keyof typeof monolineBreakpoints;
11
+
12
+ export { type MonolineBreakpoint, monolineBreakpoints };