@troychaplin/parlour-ui 0.1.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 (243) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +328 -0
  3. package/dist/_shared/client-CLAcY4nN.cjs +1 -0
  4. package/dist/_shared/client-CsCPbj42.mjs +93 -0
  5. package/dist/_shared/rolldown-runtime-BocRIvOZ.cjs +1 -0
  6. package/dist/_shared/shared-B07rlYN8.cjs +1 -0
  7. package/dist/_shared/shared-DZTw1JIu.mjs +400 -0
  8. package/dist/components/Article/Article.d.ts +7 -0
  9. package/dist/components/Article/Article.d.ts.map +1 -0
  10. package/dist/components/Article/index.cjs +1 -0
  11. package/dist/components/Article/index.d.ts +9 -0
  12. package/dist/components/Article/index.d.ts.map +1 -0
  13. package/dist/components/Article/index.mjs +6 -0
  14. package/dist/components/Aside/Aside.d.ts +9 -0
  15. package/dist/components/Aside/Aside.d.ts.map +1 -0
  16. package/dist/components/Aside/index.cjs +1 -0
  17. package/dist/components/Aside/index.d.ts +12 -0
  18. package/dist/components/Aside/index.d.ts.map +1 -0
  19. package/dist/components/Aside/index.mjs +22 -0
  20. package/dist/components/Aside/styles.css +3 -0
  21. package/dist/components/Aside/styles.scss +3 -0
  22. package/dist/components/Body/Body.d.ts +7 -0
  23. package/dist/components/Body/Body.d.ts.map +1 -0
  24. package/dist/components/Body/index.cjs +1 -0
  25. package/dist/components/Body/index.d.ts +9 -0
  26. package/dist/components/Body/index.d.ts.map +1 -0
  27. package/dist/components/Body/index.mjs +9 -0
  28. package/dist/components/Button/Button.d.ts +24 -0
  29. package/dist/components/Button/Button.d.ts.map +1 -0
  30. package/dist/components/Button/index.cjs +1 -0
  31. package/dist/components/Button/index.d.ts +35 -0
  32. package/dist/components/Button/index.d.ts.map +1 -0
  33. package/dist/components/Button/index.mjs +2 -0
  34. package/dist/components/Button/styles.css +120 -0
  35. package/dist/components/Button/styles.scss +120 -0
  36. package/dist/components/ButtonGroup/ButtonGroup.d.ts +10 -0
  37. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
  38. package/dist/components/ButtonGroup/index.cjs +1 -0
  39. package/dist/components/ButtonGroup/index.d.ts +17 -0
  40. package/dist/components/ButtonGroup/index.d.ts.map +1 -0
  41. package/dist/components/ButtonGroup/index.mjs +2 -0
  42. package/dist/components/ButtonGroup/styles.css +22 -0
  43. package/dist/components/ButtonGroup/styles.scss +22 -0
  44. package/dist/components/Card/Card.d.ts +16 -0
  45. package/dist/components/Card/Card.d.ts.map +1 -0
  46. package/dist/components/Card/index.cjs +1 -0
  47. package/dist/components/Card/index.d.ts +48 -0
  48. package/dist/components/Card/index.d.ts.map +1 -0
  49. package/dist/components/Card/index.mjs +21 -0
  50. package/dist/components/Card/styles.css +133 -0
  51. package/dist/components/Card/styles.scss +133 -0
  52. package/dist/components/CodeBlock/CodeBlock.d.ts +12 -0
  53. package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  54. package/dist/components/CodeBlock/index.cjs +1 -0
  55. package/dist/components/CodeBlock/index.d.ts +29 -0
  56. package/dist/components/CodeBlock/index.d.ts.map +1 -0
  57. package/dist/components/CodeBlock/index.mjs +20 -0
  58. package/dist/components/CodeBlock/styles.css +53 -0
  59. package/dist/components/CodeBlock/styles.scss +53 -0
  60. package/dist/components/Column/Column.d.ts +23 -0
  61. package/dist/components/Column/Column.d.ts.map +1 -0
  62. package/dist/components/Column/ColumnContent.d.ts +10 -0
  63. package/dist/components/Column/ColumnContent.d.ts.map +1 -0
  64. package/dist/components/Column/index.cjs +1 -0
  65. package/dist/components/Column/index.d.ts +33 -0
  66. package/dist/components/Column/index.d.ts.map +1 -0
  67. package/dist/components/Column/index.mjs +21 -0
  68. package/dist/components/Column/styles.css +74 -0
  69. package/dist/components/Column/styles.scss +74 -0
  70. package/dist/components/Container/Container.d.ts +16 -0
  71. package/dist/components/Container/Container.d.ts.map +1 -0
  72. package/dist/components/Container/index.cjs +1 -0
  73. package/dist/components/Container/index.d.ts +51 -0
  74. package/dist/components/Container/index.d.ts.map +1 -0
  75. package/dist/components/Container/index.mjs +2 -0
  76. package/dist/components/Container/styles.css +126 -0
  77. package/dist/components/Container/styles.scss +126 -0
  78. package/dist/components/Figure/Figure.d.ts +12 -0
  79. package/dist/components/Figure/Figure.d.ts.map +1 -0
  80. package/dist/components/Figure/index.cjs +1 -0
  81. package/dist/components/Figure/index.d.ts +14 -0
  82. package/dist/components/Figure/index.d.ts.map +1 -0
  83. package/dist/components/Figure/index.mjs +23 -0
  84. package/dist/components/Figure/styles.css +78 -0
  85. package/dist/components/Figure/styles.scss +78 -0
  86. package/dist/components/FlexGroup/FlexGroup.d.ts +21 -0
  87. package/dist/components/FlexGroup/FlexGroup.d.ts.map +1 -0
  88. package/dist/components/FlexGroup/index.cjs +1 -0
  89. package/dist/components/FlexGroup/index.d.ts +69 -0
  90. package/dist/components/FlexGroup/index.d.ts.map +1 -0
  91. package/dist/components/FlexGroup/index.mjs +2 -0
  92. package/dist/components/FlexGroup/styles.css +197 -0
  93. package/dist/components/FlexGroup/styles.scss +197 -0
  94. package/dist/components/GridGroup/GridGroup.d.ts +16 -0
  95. package/dist/components/GridGroup/GridGroup.d.ts.map +1 -0
  96. package/dist/components/GridGroup/index.cjs +1 -0
  97. package/dist/components/GridGroup/index.d.ts +46 -0
  98. package/dist/components/GridGroup/index.d.ts.map +1 -0
  99. package/dist/components/GridGroup/index.mjs +22 -0
  100. package/dist/components/GridGroup/styles.css +144 -0
  101. package/dist/components/GridGroup/styles.scss +144 -0
  102. package/dist/components/Hero/Hero.d.ts +7 -0
  103. package/dist/components/Hero/Hero.d.ts.map +1 -0
  104. package/dist/components/Hero/index.cjs +1 -0
  105. package/dist/components/Hero/index.d.ts +9 -0
  106. package/dist/components/Hero/index.d.ts.map +1 -0
  107. package/dist/components/Hero/index.mjs +23 -0
  108. package/dist/components/Hero/styles.css +27 -0
  109. package/dist/components/Hero/styles.scss +27 -0
  110. package/dist/components/HeroHeader/HeroHeader.d.ts +11 -0
  111. package/dist/components/HeroHeader/HeroHeader.d.ts.map +1 -0
  112. package/dist/components/HeroHeader/index.cjs +1 -0
  113. package/dist/components/HeroHeader/index.d.ts +14 -0
  114. package/dist/components/HeroHeader/index.d.ts.map +1 -0
  115. package/dist/components/HeroHeader/index.mjs +30 -0
  116. package/dist/components/HeroHeader/styles.css +39 -0
  117. package/dist/components/HeroHeader/styles.scss +39 -0
  118. package/dist/components/InfoBar/InfoBar.d.ts +8 -0
  119. package/dist/components/InfoBar/InfoBar.d.ts.map +1 -0
  120. package/dist/components/InfoBar/index.cjs +1 -0
  121. package/dist/components/InfoBar/index.d.ts +10 -0
  122. package/dist/components/InfoBar/index.d.ts.map +1 -0
  123. package/dist/components/InfoBar/index.mjs +44 -0
  124. package/dist/components/InfoBar/styles.css +11 -0
  125. package/dist/components/InfoBar/styles.scss +11 -0
  126. package/dist/components/LinkProvider/LinkContext.d.ts +4 -0
  127. package/dist/components/LinkProvider/LinkContext.d.ts.map +1 -0
  128. package/dist/components/LinkProvider/index.cjs +1 -0
  129. package/dist/components/LinkProvider/index.d.ts +16 -0
  130. package/dist/components/LinkProvider/index.d.ts.map +1 -0
  131. package/dist/components/LinkProvider/index.mjs +11 -0
  132. package/dist/components/LinkProvider/useLinkContext.d.ts +2 -0
  133. package/dist/components/LinkProvider/useLinkContext.d.ts.map +1 -0
  134. package/dist/components/Main/Main.d.ts +8 -0
  135. package/dist/components/Main/Main.d.ts.map +1 -0
  136. package/dist/components/Main/index.cjs +1 -0
  137. package/dist/components/Main/index.d.ts +10 -0
  138. package/dist/components/Main/index.d.ts.map +1 -0
  139. package/dist/components/Main/index.mjs +20 -0
  140. package/dist/components/Main/styles.css +19 -0
  141. package/dist/components/Main/styles.scss +19 -0
  142. package/dist/components/SectionHeader/SectionHeader.d.ts +9 -0
  143. package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -0
  144. package/dist/components/SectionHeader/index.cjs +1 -0
  145. package/dist/components/SectionHeader/index.d.ts +12 -0
  146. package/dist/components/SectionHeader/index.d.ts.map +1 -0
  147. package/dist/components/SectionHeader/index.mjs +19 -0
  148. package/dist/components/SectionHeader/styles.css +29 -0
  149. package/dist/components/SectionHeader/styles.scss +29 -0
  150. package/dist/components/SiteHeader/SiteHeader.d.ts +9 -0
  151. package/dist/components/SiteHeader/SiteHeader.d.ts.map +1 -0
  152. package/dist/components/SiteHeader/index.cjs +1 -0
  153. package/dist/components/SiteHeader/index.d.ts +11 -0
  154. package/dist/components/SiteHeader/index.d.ts.map +1 -0
  155. package/dist/components/SiteHeader/index.mjs +73 -0
  156. package/dist/components/SiteHeader/styles.css +47 -0
  157. package/dist/components/SiteHeader/styles.scss +47 -0
  158. package/dist/components/_shared/Button-CAFrgdq8.mjs +28 -0
  159. package/dist/components/_shared/Button-CQIUEu-m.cjs +1 -0
  160. package/dist/components/_shared/ButtonGroup-B0V_8y-2.mjs +9 -0
  161. package/dist/components/_shared/ButtonGroup-ChqwMTps.cjs +1 -0
  162. package/dist/components/_shared/Container-Bl4f1ZwJ.cjs +1 -0
  163. package/dist/components/_shared/Container-OGjfScEb.mjs +26 -0
  164. package/dist/components/_shared/FlexGroup-CgPbyEha.cjs +1 -0
  165. package/dist/components/_shared/FlexGroup-CnOrx2MF.mjs +24 -0
  166. package/dist/components/_shared/parlour-tokens-BT0frVnY.cjs +1 -0
  167. package/dist/components/_shared/parlour-tokens-CHt4gBUd.mjs +245 -0
  168. package/dist/components/_shared/propClasses-CLbmpfVJ.cjs +1 -0
  169. package/dist/components/_shared/propClasses-R9s_eOfA.mjs +40 -0
  170. package/dist/components/_shared/rolldown-runtime-BocRIvOZ.cjs +1 -0
  171. package/dist/components/_shared/useLinkContext-CJko6HGf.mjs +6 -0
  172. package/dist/components/_shared/useLinkContext-DwwV1iqK.cjs +1 -0
  173. package/dist/components/tokens/index.cjs +1 -0
  174. package/dist/components/tokens/index.d.ts +5 -0
  175. package/dist/components/tokens/index.d.ts.map +1 -0
  176. package/dist/components/tokens/index.mjs +2 -0
  177. package/dist/data/ArticleData.d.ts +2 -0
  178. package/dist/data/ArticleData.d.ts.map +1 -0
  179. package/dist/data/CodeData.d.ts +3 -0
  180. package/dist/data/CodeData.d.ts.map +1 -0
  181. package/dist/data/ImageData.d.ts +5 -0
  182. package/dist/data/ImageData.d.ts.map +1 -0
  183. package/dist/data/NewsData.d.ts +11 -0
  184. package/dist/data/NewsData.d.ts.map +1 -0
  185. package/dist/data/SampleContent.d.ts +9 -0
  186. package/dist/data/SampleContent.d.ts.map +1 -0
  187. package/dist/data-images/attend-1-thumb.jpg +0 -0
  188. package/dist/data-images/attend-2-thumb.jpg +0 -0
  189. package/dist/data-images/attend-3-thumb.jpg +0 -0
  190. package/dist/data-images/attend-4-thumb.jpg +0 -0
  191. package/dist/data-images/event-1-thumb.jpg +0 -0
  192. package/dist/data-images/event-2-thumb.jpg +0 -0
  193. package/dist/data-images/event-3-thumb.jpg +0 -0
  194. package/dist/data-images/event-4-thumb.jpg +0 -0
  195. package/dist/data-images/story-1-thumb.jpg +0 -0
  196. package/dist/data-images/story-2-thumb.jpg +0 -0
  197. package/dist/data-images/story-3-thumb.jpg +0 -0
  198. package/dist/data-images/story-4-thumb.jpg +0 -0
  199. package/dist/docs/stylebook/components/BorderRadiusSamples.d.ts +7 -0
  200. package/dist/docs/stylebook/components/BorderRadiusSamples.d.ts.map +1 -0
  201. package/dist/docs/stylebook/components/ColorSwatches.d.ts +9 -0
  202. package/dist/docs/stylebook/components/ColorSwatches.d.ts.map +1 -0
  203. package/dist/docs/stylebook/components/ShadowSamples.d.ts +7 -0
  204. package/dist/docs/stylebook/components/ShadowSamples.d.ts.map +1 -0
  205. package/dist/docs/stylebook/components/SpacingScale.d.ts +8 -0
  206. package/dist/docs/stylebook/components/SpacingScale.d.ts.map +1 -0
  207. package/dist/docs/stylebook/components/TypographyScale.d.ts +23 -0
  208. package/dist/docs/stylebook/components/TypographyScale.d.ts.map +1 -0
  209. package/dist/fonts/inter-tight/inter-tight-variable-italic.woff2 +0 -0
  210. package/dist/fonts/inter-tight/inter-tight-variable-normal.woff2 +0 -0
  211. package/dist/fonts/jetbrains-mono/jetbrains-mono-variable-italic.woff2 +0 -0
  212. package/dist/fonts/jetbrains-mono/jetbrains-mono-variable-normal.woff2 +0 -0
  213. package/dist/fonts/source-serif-4/source-serif-4-variable-italic.woff2 +0 -0
  214. package/dist/fonts/source-serif-4/source-serif-4-variable-normal.woff2 +0 -0
  215. package/dist/fonts.css +43 -0
  216. package/dist/index.cjs +1 -0
  217. package/dist/index.d.ts +20 -0
  218. package/dist/index.d.ts.map +1 -0
  219. package/dist/index.mjs +3 -0
  220. package/dist/sample-imgs/event-img.jpg +0 -0
  221. package/dist/sample-imgs/news-img.jpg +0 -0
  222. package/dist/sample-imgs/page-img.jpg +0 -0
  223. package/dist/sample-imgs/people-img.jpg +0 -0
  224. package/dist/style.css +43 -0
  225. package/dist/styles/_parlour-variables.scss +83 -0
  226. package/dist/styles/c2b/parlour-tokens.d.ts +19 -0
  227. package/dist/styles/parlour-base-styles.css +72 -0
  228. package/dist/styles/parlour-base-styles.scss +72 -0
  229. package/dist/styles/parlour-layout.css +50 -0
  230. package/dist/styles/parlour-layout.scss +50 -0
  231. package/dist/styles/parlour-tokens.css +129 -0
  232. package/dist/styles/parlour-tokens.d.ts +19 -0
  233. package/dist/styles/parlour-tokens.js +148 -0
  234. package/dist/styles/parlour-tokens.scss +129 -0
  235. package/dist/styles/parlour-typography.css +29 -0
  236. package/dist/styles/parlour-typography.scss +29 -0
  237. package/dist/utils/propClasses.d.ts +101 -0
  238. package/dist/utils/propClasses.d.ts.map +1 -0
  239. package/dist/wordpress/block-theme.css +157 -0
  240. package/dist/wordpress/hybrid-theme.css +324 -0
  241. package/dist/wordpress/integrate.php +139 -0
  242. package/dist/wordpress/theme-parlour.json +581 -0
  243. package/package.json +154 -0
@@ -0,0 +1,400 @@
1
+ import "react";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ //#region src/components/Article/Article.tsx
4
+ var n = ({ children: t, content: n }) => n ? /* @__PURE__ */ e("article", { dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ e("article", { children: t }), r = ({ children: t, isSticky: n, topSpace: r = 0, className: i, ...a }) => {
5
+ let o = [
6
+ "relative",
7
+ "parlour-aside",
8
+ "parlour-prose",
9
+ i
10
+ ].filter(Boolean).join(" ");
11
+ return /* @__PURE__ */ e("aside", {
12
+ className: o,
13
+ ...a,
14
+ children: n ? /* @__PURE__ */ e("div", {
15
+ className: "sticky",
16
+ style: { top: `${r}px` },
17
+ children: t
18
+ }) : t
19
+ });
20
+ }, i = ({ children: t, className: n }) => /* @__PURE__ */ e("body", {
21
+ className: n || "",
22
+ children: t
23
+ }), a = ({ children: t, hasPadding: n = !0, className: r, ...i }) => {
24
+ let a = [
25
+ "parlour-main",
26
+ n && "parlour-main--padding",
27
+ r
28
+ ].filter(Boolean).join(" ");
29
+ return /* @__PURE__ */ e("main", {
30
+ className: a,
31
+ ...i,
32
+ children: /* @__PURE__ */ e("div", {
33
+ className: "alignfull has-global-padding is-layout-constrained entry-content",
34
+ children: t
35
+ })
36
+ });
37
+ }, o = {
38
+ color: {
39
+ black: "black",
40
+ white: "white",
41
+ "accent-primary": "accent-primary",
42
+ "accent-secondary": "accent-secondary",
43
+ "neutral-50": "neutral-50",
44
+ "neutral-100": "neutral-100",
45
+ "neutral-200": "neutral-200",
46
+ "neutral-300": "neutral-300",
47
+ "neutral-400": "neutral-400",
48
+ "neutral-500": "neutral-500",
49
+ "neutral-600": "neutral-600",
50
+ "neutral-700": "neutral-700",
51
+ "neutral-800": "neutral-800",
52
+ "neutral-900": "neutral-900",
53
+ "neutral-950": "neutral-950",
54
+ info: "info",
55
+ success: "success",
56
+ warning: "warning",
57
+ error: "error",
58
+ linkedin: "linkedin",
59
+ facebook: "facebook",
60
+ bluesky: "bluesky",
61
+ twitter: "twitter",
62
+ instagram: "instagram",
63
+ youtube: "youtube",
64
+ tiktok: "tiktok"
65
+ },
66
+ gradient: { "white-to-neutral-50": "white-to-neutral-50" },
67
+ spacing: {
68
+ "3-x-small": "3-x-small",
69
+ "2-x-small": "2-x-small",
70
+ "x-small": "x-small",
71
+ small: "small",
72
+ normal: "normal",
73
+ medium: "medium",
74
+ large: "large",
75
+ "x-large": "x-large",
76
+ "2-x-large": "2-x-large",
77
+ "3-x-large": "3-x-large",
78
+ "4-x-large": "4-x-large",
79
+ "5-x-large": "5-x-large"
80
+ },
81
+ fontFamily: {
82
+ "inter-tight": "inter-tight",
83
+ "source-serif-4": "source-serif-4",
84
+ "jetbrains-mono": "jetbrains-mono"
85
+ },
86
+ fontSize: {
87
+ "2-x-small": "2-x-small",
88
+ "x-small": "x-small",
89
+ small: "small",
90
+ medium: "medium",
91
+ large: "large",
92
+ "x-large": "x-large",
93
+ "2-x-large": "2-x-large",
94
+ "3-x-large": "3-x-large",
95
+ "4-x-large": "4-x-large",
96
+ "5-x-large": "5-x-large",
97
+ hero: "hero",
98
+ "heading-small": "heading-small",
99
+ "heading-medium": "heading-medium",
100
+ "heading-large": "heading-large",
101
+ "heading-x-large": "heading-x-large",
102
+ "heading-primary": "heading-primary"
103
+ },
104
+ shadow: {
105
+ natural: "natural",
106
+ deep: "deep",
107
+ sharp: "sharp",
108
+ outlined: "outlined",
109
+ crisp: "crisp"
110
+ },
111
+ fontWeight: {
112
+ thin: "thin",
113
+ "extra-light": "extra-light",
114
+ light: "light",
115
+ normal: "normal",
116
+ medium: "medium",
117
+ semibold: "semibold",
118
+ bold: "bold",
119
+ "extra-bold": "extra-bold",
120
+ black: "black"
121
+ },
122
+ lineHeight: {
123
+ tight: "tight",
124
+ normal: "normal",
125
+ loose: "loose"
126
+ },
127
+ radius: {
128
+ sm: "sm",
129
+ md: "md",
130
+ lg: "lg",
131
+ xl: "xl",
132
+ full: "full"
133
+ },
134
+ transition: {
135
+ fast: "fast",
136
+ base: "base"
137
+ },
138
+ z: {
139
+ 100: "100",
140
+ 200: "200",
141
+ 500: "500"
142
+ },
143
+ layout: {
144
+ "content-size": "content-size",
145
+ "wide-size": "wide-size",
146
+ "small-size": "small-size",
147
+ "full-size": "full-size"
148
+ },
149
+ viewport: {
150
+ mobile: "mobile",
151
+ tablet: "tablet"
152
+ }
153
+ }, s = {
154
+ alignsmall: "alignsmall",
155
+ aligncontent: "aligncontent",
156
+ alignwide: "alignwide",
157
+ alignfull: "alignfull"
158
+ }, c = {
159
+ 1: "one",
160
+ 2: "two",
161
+ 3: "three",
162
+ 4: "four",
163
+ "1/3": "one-third",
164
+ "2/3": "two-thirds"
165
+ };
166
+ ({ ...o.color });
167
+ var l = {
168
+ none: "none",
169
+ ...o.spacing
170
+ }, u = {
171
+ none: "none",
172
+ ...o.radius
173
+ }, d = {
174
+ start: "start",
175
+ center: "center",
176
+ end: "end",
177
+ "space-between": "space-between"
178
+ }, f = {
179
+ start: "start",
180
+ center: "center",
181
+ end: "end",
182
+ stretch: "stretch"
183
+ }, p = {
184
+ light: "light",
185
+ medium: "medium",
186
+ dark: "dark",
187
+ white: "white"
188
+ }, m = ({ children: t, as: n = "div", direction: r = "row", wrap: i = "wrap", justify: a, align: o, gap: c, padding: u, margin: p, maxWidth: m, className: h, ...g }) => {
189
+ let _ = n, v = [
190
+ "parlour-layout parlour-flex-group",
191
+ `parlour-flex-group--${r}`,
192
+ `parlour-flex-group--${i}`,
193
+ m && s[m],
194
+ a && `parlour-flex-group--justify-${d[a]}`,
195
+ o && `parlour-flex-group--align-${f[o]}`,
196
+ c && `parlour-flex-group--gap-${l[c]}`,
197
+ u && `parlour-flex-group--padding-${l[u]}`,
198
+ p && `parlour-flex-group--margin-${l[p]}`,
199
+ h
200
+ ].filter(Boolean).join(" ");
201
+ return /* @__PURE__ */ e(_, {
202
+ className: v,
203
+ ...g,
204
+ children: t
205
+ });
206
+ }, h = ({ children: t, align: n = "start" }) => /* @__PURE__ */ e("div", {
207
+ className: `parlour-buttongroup parlour-buttongroup--justify-${n}`,
208
+ children: t
209
+ }), g = 864e5, _ = (e) => (Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()) - Date.UTC(e.getFullYear(), 0, 0)) / g, v = (e) => [
210
+ e.getFullYear(),
211
+ e.getMonth() + 1,
212
+ e.getDate()
213
+ ].map((e) => String(e).padStart(2, "0")).join("-"), y = ({ className: n = "", children: r, date: i = /* @__PURE__ */ new Date() }) => {
214
+ let a = ["parlour-infobar", n].filter(Boolean).join(" "), o = i.toLocaleDateString("en-US", {
215
+ month: "long",
216
+ day: "numeric",
217
+ year: "numeric"
218
+ });
219
+ return /* @__PURE__ */ e("div", {
220
+ className: a,
221
+ children: /* @__PURE__ */ t(m, {
222
+ gap: "normal",
223
+ maxWidth: "alignwide",
224
+ justify: "space-between",
225
+ align: "center",
226
+ children: [
227
+ /* @__PURE__ */ e("p", { children: "Building since 2005" }),
228
+ /* @__PURE__ */ t("p", { children: [
229
+ "Day ",
230
+ _(i),
231
+ " ",
232
+ /* @__PURE__ */ e("span", {
233
+ "aria-hidden": "true",
234
+ children: "•"
235
+ }),
236
+ " ",
237
+ /* @__PURE__ */ e("time", {
238
+ dateTime: v(i),
239
+ children: o
240
+ })
241
+ ] }),
242
+ r
243
+ ]
244
+ })
245
+ });
246
+ }, b = ({ children: t, isFirst: n = !1 }) => /* @__PURE__ */ e("div", {
247
+ className: `parlour-column__content ${n ? "is-first" : ""}`,
248
+ children: t
249
+ });
250
+ b.displayName = "Column.Content";
251
+ //#endregion
252
+ //#region src/components/Column/Column.tsx
253
+ var x = ({ children: t, cols: n = "2", maxWidth: r = "aligncontent" }) => {
254
+ let i = [`parlour-layout parlour-column parlour-column--${c[n]}`, r].filter(Boolean).join(" ");
255
+ return /* @__PURE__ */ e("div", {
256
+ className: i,
257
+ children: t
258
+ });
259
+ }, S = Object.assign(x, { Content: b });
260
+ x.displayName = "Column";
261
+ //#endregion
262
+ //#region src/components/GridGroup/GridGroup.tsx
263
+ var C = ({ children: t, as: n = "div", columns: r = 3, gap: i = "medium", rowGap: a, align: o, maxWidth: c, className: u, ...d }) => {
264
+ let p = n, m = [
265
+ "parlour-layout parlour-grid-group",
266
+ `parlour-grid-group--columns-${r}`,
267
+ `parlour-grid-group--gap-${l[i]}`,
268
+ a && `parlour-grid-group--row-gap-${l[a]}`,
269
+ o && `parlour-grid-group--align-${f[o]}`,
270
+ c && s[c],
271
+ u
272
+ ].filter(Boolean).join(" ");
273
+ return /* @__PURE__ */ e(p, {
274
+ className: m,
275
+ role: n === "ul" || n === "ol" ? "list" : void 0,
276
+ ...d,
277
+ children: t
278
+ });
279
+ }, w = ({ children: t, as: n = "div", maxWidth: r = "aligncontent", contentWidth: i = "aligncontent", color: a, className: o, borderRadius: s = "md", ...c }) => {
280
+ let l = n, u = [
281
+ "parlour-layout parlour-container",
282
+ "is-layout-constrained",
283
+ r,
284
+ a && `parlour-container--no-gap parlour-container--${a}`,
285
+ s && `parlour-container--radius-${s}`,
286
+ o
287
+ ].filter(Boolean).join(" "), d = [
288
+ "has-global-padding",
289
+ i,
290
+ a && "has-root-padding"
291
+ ].filter(Boolean).join(" ");
292
+ return /* @__PURE__ */ e(l, {
293
+ className: u,
294
+ ...c,
295
+ children: /* @__PURE__ */ e("div", {
296
+ className: d,
297
+ children: t
298
+ })
299
+ });
300
+ }, T = ({ children: t, as: n = "div", backgroundColor: r = "light", border: i = !0, borderColor: a = "light", borderRadius: o = "none", padding: s = "large", className: c, ...d }) => {
301
+ let f = n, m = [
302
+ "parlour-card",
303
+ `parlour-card--bg-${p[r]}`,
304
+ i && "parlour-card--border",
305
+ i && `parlour-card--border-${p[a]}`,
306
+ `parlour-card--radius-${u[o]}`,
307
+ `parlour-card--padding-${l[s]}`,
308
+ c
309
+ ].filter(Boolean).join(" ");
310
+ return /* @__PURE__ */ e(f, {
311
+ className: m,
312
+ ...d,
313
+ children: t
314
+ });
315
+ }, E = ({ code: t, color: n, className: r, hasBorder: i, borderRadius: a, ...o }) => {
316
+ let s = [
317
+ "parlour-code-block",
318
+ n && `parlour-code-block--${p[n]}`,
319
+ i && "parlour-code-block--has-border",
320
+ a && `parlour-code-block--radius-${u[a]}`,
321
+ r
322
+ ].filter(Boolean).join(" ");
323
+ return /* @__PURE__ */ e("pre", {
324
+ className: s,
325
+ tabIndex: 0,
326
+ ...o,
327
+ children: /* @__PURE__ */ e("code", { children: t })
328
+ });
329
+ }, D = ({ children: n, caption: r, size: i = "full", align: a = "none" }) => {
330
+ let o = a === "left" ? "alignleft" : a === "right" ? "alignright" : "", s = [
331
+ "parlour-figure",
332
+ `parlour-figure--${i}`,
333
+ a === "none" ? "" : `parlour-figure--${a}`,
334
+ o
335
+ ].filter(Boolean).join(" ");
336
+ return /* @__PURE__ */ e("figure", {
337
+ className: s,
338
+ children: /* @__PURE__ */ t("div", {
339
+ className: "parlour-figure__inner",
340
+ children: [n, r && /* @__PURE__ */ e("figcaption", {
341
+ className: "parlour-figure__caption",
342
+ children: r
343
+ })]
344
+ })
345
+ });
346
+ }, O = ({ className: t = "", children: n }) => {
347
+ let r = ["parlour-hero", t].filter(Boolean).join(" ");
348
+ return /* @__PURE__ */ e(w, {
349
+ as: "section",
350
+ className: r,
351
+ maxWidth: "alignfull",
352
+ contentWidth: "alignwide",
353
+ children: /* @__PURE__ */ e(m, {
354
+ gap: "normal",
355
+ maxWidth: "alignwide",
356
+ justify: "space-between",
357
+ align: "center",
358
+ children: n
359
+ })
360
+ });
361
+ }, k = ({ className: n, prefix: r, title: i, titleAccent: a, level: o = 1, children: s, ...c }) => {
362
+ let l = ["parlour-hero-header", n].filter(Boolean).join(" "), u = `h${o}`;
363
+ return /* @__PURE__ */ t("header", {
364
+ className: l,
365
+ ...c,
366
+ children: [
367
+ r && /* @__PURE__ */ e("p", {
368
+ className: "parlour-hero-header__prefix",
369
+ children: r
370
+ }),
371
+ i && /* @__PURE__ */ t(u, {
372
+ className: "parlour-hero-header__title",
373
+ children: [
374
+ i,
375
+ " ",
376
+ a && /* @__PURE__ */ e("span", {
377
+ className: "parlour-hero-header__title-accent",
378
+ children: a
379
+ })
380
+ ]
381
+ }),
382
+ s
383
+ ]
384
+ });
385
+ }, A = ({ className: n, prefix: r, title: i, level: a = 2, ...o }) => {
386
+ let s = ["parlour-section-header", n].filter(Boolean).join(" "), c = `h${a}`;
387
+ return /* @__PURE__ */ t("header", {
388
+ className: s,
389
+ ...o,
390
+ children: [r && /* @__PURE__ */ e("p", {
391
+ className: "parlour-section-header__prefix",
392
+ children: r
393
+ }), i && /* @__PURE__ */ e(c, {
394
+ className: "parlour-section-header__title",
395
+ children: i
396
+ })]
397
+ });
398
+ };
399
+ //#endregion
400
+ export { E as a, C as c, h as d, m as f, n as g, r as h, D as i, S as l, i as m, k as n, T as o, a as p, O as r, w as s, A as t, y as u };
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export interface ArticleProps {
3
+ children?: React.ReactNode;
4
+ content?: string;
5
+ }
6
+ export declare const Article: ({ children, content }: ArticleProps) => React.JSX.Element;
7
+ //# sourceMappingURL=Article.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Article.d.ts","sourceRoot":"","sources":["../../../src/components/Article/Article.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,OAAO,GAAI,uBAAuB,YAAY,sBAM1D,CAAC"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs");let t=require("react");t=e.t(t,1);let n=require("react/jsx-runtime");var r=({children:e,content:t})=>t?(0,n.jsx)(`article`,{dangerouslySetInnerHTML:{__html:t}}):(0,n.jsx)(`article`,{children:e});exports.Article=r;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+
3
+ interface ArticleProps {
4
+ children?: React.ReactNode;
5
+ content?: string;
6
+ }
7
+ declare const Article: ({ children, content }: ArticleProps) => React.JSX.Element;
8
+
9
+ export { Article };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Article/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,6 @@
1
+ import "react";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/Article/Article.tsx
4
+ var t = ({ children: t, content: n }) => n ? /* @__PURE__ */ e("article", { dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ e("article", { children: t });
5
+ //#endregion
6
+ export { t as Article };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export interface AsideProps extends React.HTMLAttributes<HTMLElement> {
3
+ children: React.ReactNode;
4
+ isSticky?: boolean;
5
+ topSpace?: number;
6
+ className?: string;
7
+ }
8
+ export declare const Aside: ({ children, isSticky, topSpace, className, ...rest }: AsideProps) => React.JSX.Element;
9
+ //# sourceMappingURL=Aside.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Aside.d.ts","sourceRoot":"","sources":["../../../src/components/Aside/Aside.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,KAAK,GAAI,sDAA0D,UAAU,sBAgBzF,CAAC"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs");let t=require("react");t=e.t(t,1);let n=require("react/jsx-runtime");var r=({children:e,isSticky:t,topSpace:r=0,className:i,...a})=>{let o=[`relative`,`parlour-aside`,`parlour-prose`,i].filter(Boolean).join(` `);return(0,n.jsx)(`aside`,{className:o,...a,children:t?(0,n.jsx)(`div`,{className:`sticky`,style:{top:`${r}px`},children:e}):e})};exports.Aside=r;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+
3
+ interface AsideProps extends React.HTMLAttributes<HTMLElement> {
4
+ children: React.ReactNode;
5
+ isSticky?: boolean;
6
+ topSpace?: number;
7
+ className?: string;
8
+ }
9
+ declare const Aside: ({ children, isSticky, topSpace, className, ...rest }: AsideProps) => React.JSX.Element;
10
+
11
+ export { Aside };
12
+ export type { AsideProps };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Aside/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ import "react";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/Aside/Aside.tsx
4
+ var t = ({ children: t, isSticky: n, topSpace: r = 0, className: i, ...a }) => {
5
+ let o = [
6
+ "relative",
7
+ "parlour-aside",
8
+ "parlour-prose",
9
+ i
10
+ ].filter(Boolean).join(" ");
11
+ return /* @__PURE__ */ e("aside", {
12
+ className: o,
13
+ ...a,
14
+ children: n ? /* @__PURE__ */ e("div", {
15
+ className: "sticky",
16
+ style: { top: `${r}px` },
17
+ children: t
18
+ }) : t
19
+ });
20
+ };
21
+ //#endregion
22
+ export { t as Aside };
@@ -0,0 +1,3 @@
1
+ .parlour-aside > .sticky {
2
+ position: sticky;
3
+ }
@@ -0,0 +1,3 @@
1
+ .parlour-aside > .sticky {
2
+ position: sticky;
3
+ }
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export interface BodyProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ export declare const Body: ({ children, className }: BodyProps) => React.JSX.Element;
7
+ //# sourceMappingURL=Body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../src/components/Body/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,SAAS;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,IAAI,GAAI,yBAAyB,SAAS,sBAEtD,CAAC"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs");let t=require("react");t=e.t(t,1);let n=require("react/jsx-runtime");var r=({children:e,className:t})=>(0,n.jsx)(`body`,{className:t||``,children:e});exports.Body=r;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+
3
+ interface BodyProps {
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ }
7
+ declare const Body: ({ children, className }: BodyProps) => React.JSX.Element;
8
+
9
+ export { Body };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Body/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import "react";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/Body/Body.tsx
4
+ var t = ({ children: t, className: n }) => /* @__PURE__ */ e("body", {
5
+ className: n || "",
6
+ children: t
7
+ });
8
+ //#endregion
9
+ export { t as Body };
@@ -0,0 +1,24 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { borderRadiusClasses } from '../../utils/propClasses';
3
+ type borderRadiusKeys = keyof typeof borderRadiusClasses;
4
+ type colorKeys = 'light' | 'medium' | 'dark' | 'white' | 'link';
5
+ interface ButtonBaseProps {
6
+ text: string;
7
+ rounded?: borderRadiusKeys;
8
+ color?: colorKeys;
9
+ isSmall?: boolean;
10
+ isFull?: boolean;
11
+ isOutline?: boolean;
12
+ }
13
+ type ButtonElementProps = ButtonBaseProps & Omit<ComponentPropsWithoutRef<'button'>, keyof ButtonBaseProps> & {
14
+ href?: never;
15
+ };
16
+ type ButtonLinkProps = ButtonBaseProps & Omit<ComponentPropsWithoutRef<'a'>, keyof ButtonBaseProps | 'type'> & {
17
+ href: string;
18
+ type?: never;
19
+ disabled?: never;
20
+ };
21
+ export type ButtonProps = ButtonElementProps | ButtonLinkProps;
22
+ export declare const Button: ({ text, color, rounded, type, isSmall, isFull, isOutline, disabled, className, ...rest }: ButtonProps) => import('react').JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,eAAe,CAAC;AAEvB,KAAK,gBAAgB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AACzD,KAAK,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEhE,UAAU,eAAe;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,KAAK,kBAAkB,GAAG,eAAe,GACrC,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,MAAM,eAAe,CAAC,GAAG;IAC9D,IAAI,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEN,KAAK,eAAe,GAAG,eAAe,GAClC,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC;CACpB,CAAC;AAEN,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,eAAe,CAAC;AAE/D,eAAO,MAAM,MAAM,GAAI,0FAWpB,WAAW,gCA4Bb,CAAC"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/Button-CQIUEu-m.cjs");exports.Button=e.t;
@@ -0,0 +1,35 @@
1
+ import * as react from 'react';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
+
4
+ declare const borderRadiusClasses: {
5
+ sm: "sm";
6
+ md: "md";
7
+ lg: "lg";
8
+ xl: "xl";
9
+ full: "full";
10
+ none: string;
11
+ };
12
+
13
+ type borderRadiusKeys = keyof typeof borderRadiusClasses;
14
+ type colorKeys = 'light' | 'medium' | 'dark' | 'white' | 'link';
15
+ interface ButtonBaseProps {
16
+ text: string;
17
+ rounded?: borderRadiusKeys;
18
+ color?: colorKeys;
19
+ isSmall?: boolean;
20
+ isFull?: boolean;
21
+ isOutline?: boolean;
22
+ }
23
+ type ButtonElementProps = ButtonBaseProps & Omit<ComponentPropsWithoutRef<'button'>, keyof ButtonBaseProps> & {
24
+ href?: never;
25
+ };
26
+ type ButtonLinkProps = ButtonBaseProps & Omit<ComponentPropsWithoutRef<'a'>, keyof ButtonBaseProps | 'type'> & {
27
+ href: string;
28
+ type?: never;
29
+ disabled?: never;
30
+ };
31
+ type ButtonProps = ButtonElementProps | ButtonLinkProps;
32
+ declare const Button: ({ text, color, rounded, type, isSmall, isFull, isOutline, disabled, className, ...rest }: ButtonProps) => react.JSX.Element;
33
+
34
+ export { Button };
35
+ export type { ButtonProps };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../_shared/Button-CAFrgdq8.mjs";
2
+ export { e as Button };