@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.
- package/LICENSE +21 -0
- package/README.md +328 -0
- package/dist/_shared/client-CLAcY4nN.cjs +1 -0
- package/dist/_shared/client-CsCPbj42.mjs +93 -0
- package/dist/_shared/rolldown-runtime-BocRIvOZ.cjs +1 -0
- package/dist/_shared/shared-B07rlYN8.cjs +1 -0
- package/dist/_shared/shared-DZTw1JIu.mjs +400 -0
- package/dist/components/Article/Article.d.ts +7 -0
- package/dist/components/Article/Article.d.ts.map +1 -0
- package/dist/components/Article/index.cjs +1 -0
- package/dist/components/Article/index.d.ts +9 -0
- package/dist/components/Article/index.d.ts.map +1 -0
- package/dist/components/Article/index.mjs +6 -0
- package/dist/components/Aside/Aside.d.ts +9 -0
- package/dist/components/Aside/Aside.d.ts.map +1 -0
- package/dist/components/Aside/index.cjs +1 -0
- package/dist/components/Aside/index.d.ts +12 -0
- package/dist/components/Aside/index.d.ts.map +1 -0
- package/dist/components/Aside/index.mjs +22 -0
- package/dist/components/Aside/styles.css +3 -0
- package/dist/components/Aside/styles.scss +3 -0
- package/dist/components/Body/Body.d.ts +7 -0
- package/dist/components/Body/Body.d.ts.map +1 -0
- package/dist/components/Body/index.cjs +1 -0
- package/dist/components/Body/index.d.ts +9 -0
- package/dist/components/Body/index.d.ts.map +1 -0
- package/dist/components/Body/index.mjs +9 -0
- package/dist/components/Button/Button.d.ts +24 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/index.cjs +1 -0
- package/dist/components/Button/index.d.ts +35 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.mjs +2 -0
- package/dist/components/Button/styles.css +120 -0
- package/dist/components/Button/styles.scss +120 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +10 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/components/ButtonGroup/index.cjs +1 -0
- package/dist/components/ButtonGroup/index.d.ts +17 -0
- package/dist/components/ButtonGroup/index.d.ts.map +1 -0
- package/dist/components/ButtonGroup/index.mjs +2 -0
- package/dist/components/ButtonGroup/styles.css +22 -0
- package/dist/components/ButtonGroup/styles.scss +22 -0
- package/dist/components/Card/Card.d.ts +16 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.cjs +1 -0
- package/dist/components/Card/index.d.ts +48 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Card/index.mjs +21 -0
- package/dist/components/Card/styles.css +133 -0
- package/dist/components/Card/styles.scss +133 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +12 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/CodeBlock/index.cjs +1 -0
- package/dist/components/CodeBlock/index.d.ts +29 -0
- package/dist/components/CodeBlock/index.d.ts.map +1 -0
- package/dist/components/CodeBlock/index.mjs +20 -0
- package/dist/components/CodeBlock/styles.css +53 -0
- package/dist/components/CodeBlock/styles.scss +53 -0
- package/dist/components/Column/Column.d.ts +23 -0
- package/dist/components/Column/Column.d.ts.map +1 -0
- package/dist/components/Column/ColumnContent.d.ts +10 -0
- package/dist/components/Column/ColumnContent.d.ts.map +1 -0
- package/dist/components/Column/index.cjs +1 -0
- package/dist/components/Column/index.d.ts +33 -0
- package/dist/components/Column/index.d.ts.map +1 -0
- package/dist/components/Column/index.mjs +21 -0
- package/dist/components/Column/styles.css +74 -0
- package/dist/components/Column/styles.scss +74 -0
- package/dist/components/Container/Container.d.ts +16 -0
- package/dist/components/Container/Container.d.ts.map +1 -0
- package/dist/components/Container/index.cjs +1 -0
- package/dist/components/Container/index.d.ts +51 -0
- package/dist/components/Container/index.d.ts.map +1 -0
- package/dist/components/Container/index.mjs +2 -0
- package/dist/components/Container/styles.css +126 -0
- package/dist/components/Container/styles.scss +126 -0
- package/dist/components/Figure/Figure.d.ts +12 -0
- package/dist/components/Figure/Figure.d.ts.map +1 -0
- package/dist/components/Figure/index.cjs +1 -0
- package/dist/components/Figure/index.d.ts +14 -0
- package/dist/components/Figure/index.d.ts.map +1 -0
- package/dist/components/Figure/index.mjs +23 -0
- package/dist/components/Figure/styles.css +78 -0
- package/dist/components/Figure/styles.scss +78 -0
- package/dist/components/FlexGroup/FlexGroup.d.ts +21 -0
- package/dist/components/FlexGroup/FlexGroup.d.ts.map +1 -0
- package/dist/components/FlexGroup/index.cjs +1 -0
- package/dist/components/FlexGroup/index.d.ts +69 -0
- package/dist/components/FlexGroup/index.d.ts.map +1 -0
- package/dist/components/FlexGroup/index.mjs +2 -0
- package/dist/components/FlexGroup/styles.css +197 -0
- package/dist/components/FlexGroup/styles.scss +197 -0
- package/dist/components/GridGroup/GridGroup.d.ts +16 -0
- package/dist/components/GridGroup/GridGroup.d.ts.map +1 -0
- package/dist/components/GridGroup/index.cjs +1 -0
- package/dist/components/GridGroup/index.d.ts +46 -0
- package/dist/components/GridGroup/index.d.ts.map +1 -0
- package/dist/components/GridGroup/index.mjs +22 -0
- package/dist/components/GridGroup/styles.css +144 -0
- package/dist/components/GridGroup/styles.scss +144 -0
- package/dist/components/Hero/Hero.d.ts +7 -0
- package/dist/components/Hero/Hero.d.ts.map +1 -0
- package/dist/components/Hero/index.cjs +1 -0
- package/dist/components/Hero/index.d.ts +9 -0
- package/dist/components/Hero/index.d.ts.map +1 -0
- package/dist/components/Hero/index.mjs +23 -0
- package/dist/components/Hero/styles.css +27 -0
- package/dist/components/Hero/styles.scss +27 -0
- package/dist/components/HeroHeader/HeroHeader.d.ts +11 -0
- package/dist/components/HeroHeader/HeroHeader.d.ts.map +1 -0
- package/dist/components/HeroHeader/index.cjs +1 -0
- package/dist/components/HeroHeader/index.d.ts +14 -0
- package/dist/components/HeroHeader/index.d.ts.map +1 -0
- package/dist/components/HeroHeader/index.mjs +30 -0
- package/dist/components/HeroHeader/styles.css +39 -0
- package/dist/components/HeroHeader/styles.scss +39 -0
- package/dist/components/InfoBar/InfoBar.d.ts +8 -0
- package/dist/components/InfoBar/InfoBar.d.ts.map +1 -0
- package/dist/components/InfoBar/index.cjs +1 -0
- package/dist/components/InfoBar/index.d.ts +10 -0
- package/dist/components/InfoBar/index.d.ts.map +1 -0
- package/dist/components/InfoBar/index.mjs +44 -0
- package/dist/components/InfoBar/styles.css +11 -0
- package/dist/components/InfoBar/styles.scss +11 -0
- package/dist/components/LinkProvider/LinkContext.d.ts +4 -0
- package/dist/components/LinkProvider/LinkContext.d.ts.map +1 -0
- package/dist/components/LinkProvider/index.cjs +1 -0
- package/dist/components/LinkProvider/index.d.ts +16 -0
- package/dist/components/LinkProvider/index.d.ts.map +1 -0
- package/dist/components/LinkProvider/index.mjs +11 -0
- package/dist/components/LinkProvider/useLinkContext.d.ts +2 -0
- package/dist/components/LinkProvider/useLinkContext.d.ts.map +1 -0
- package/dist/components/Main/Main.d.ts +8 -0
- package/dist/components/Main/Main.d.ts.map +1 -0
- package/dist/components/Main/index.cjs +1 -0
- package/dist/components/Main/index.d.ts +10 -0
- package/dist/components/Main/index.d.ts.map +1 -0
- package/dist/components/Main/index.mjs +20 -0
- package/dist/components/Main/styles.css +19 -0
- package/dist/components/Main/styles.scss +19 -0
- package/dist/components/SectionHeader/SectionHeader.d.ts +9 -0
- package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/components/SectionHeader/index.cjs +1 -0
- package/dist/components/SectionHeader/index.d.ts +12 -0
- package/dist/components/SectionHeader/index.d.ts.map +1 -0
- package/dist/components/SectionHeader/index.mjs +19 -0
- package/dist/components/SectionHeader/styles.css +29 -0
- package/dist/components/SectionHeader/styles.scss +29 -0
- package/dist/components/SiteHeader/SiteHeader.d.ts +9 -0
- package/dist/components/SiteHeader/SiteHeader.d.ts.map +1 -0
- package/dist/components/SiteHeader/index.cjs +1 -0
- package/dist/components/SiteHeader/index.d.ts +11 -0
- package/dist/components/SiteHeader/index.d.ts.map +1 -0
- package/dist/components/SiteHeader/index.mjs +73 -0
- package/dist/components/SiteHeader/styles.css +47 -0
- package/dist/components/SiteHeader/styles.scss +47 -0
- package/dist/components/_shared/Button-CAFrgdq8.mjs +28 -0
- package/dist/components/_shared/Button-CQIUEu-m.cjs +1 -0
- package/dist/components/_shared/ButtonGroup-B0V_8y-2.mjs +9 -0
- package/dist/components/_shared/ButtonGroup-ChqwMTps.cjs +1 -0
- package/dist/components/_shared/Container-Bl4f1ZwJ.cjs +1 -0
- package/dist/components/_shared/Container-OGjfScEb.mjs +26 -0
- package/dist/components/_shared/FlexGroup-CgPbyEha.cjs +1 -0
- package/dist/components/_shared/FlexGroup-CnOrx2MF.mjs +24 -0
- package/dist/components/_shared/parlour-tokens-BT0frVnY.cjs +1 -0
- package/dist/components/_shared/parlour-tokens-CHt4gBUd.mjs +245 -0
- package/dist/components/_shared/propClasses-CLbmpfVJ.cjs +1 -0
- package/dist/components/_shared/propClasses-R9s_eOfA.mjs +40 -0
- package/dist/components/_shared/rolldown-runtime-BocRIvOZ.cjs +1 -0
- package/dist/components/_shared/useLinkContext-CJko6HGf.mjs +6 -0
- package/dist/components/_shared/useLinkContext-DwwV1iqK.cjs +1 -0
- package/dist/components/tokens/index.cjs +1 -0
- package/dist/components/tokens/index.d.ts +5 -0
- package/dist/components/tokens/index.d.ts.map +1 -0
- package/dist/components/tokens/index.mjs +2 -0
- package/dist/data/ArticleData.d.ts +2 -0
- package/dist/data/ArticleData.d.ts.map +1 -0
- package/dist/data/CodeData.d.ts +3 -0
- package/dist/data/CodeData.d.ts.map +1 -0
- package/dist/data/ImageData.d.ts +5 -0
- package/dist/data/ImageData.d.ts.map +1 -0
- package/dist/data/NewsData.d.ts +11 -0
- package/dist/data/NewsData.d.ts.map +1 -0
- package/dist/data/SampleContent.d.ts +9 -0
- package/dist/data/SampleContent.d.ts.map +1 -0
- package/dist/data-images/attend-1-thumb.jpg +0 -0
- package/dist/data-images/attend-2-thumb.jpg +0 -0
- package/dist/data-images/attend-3-thumb.jpg +0 -0
- package/dist/data-images/attend-4-thumb.jpg +0 -0
- package/dist/data-images/event-1-thumb.jpg +0 -0
- package/dist/data-images/event-2-thumb.jpg +0 -0
- package/dist/data-images/event-3-thumb.jpg +0 -0
- package/dist/data-images/event-4-thumb.jpg +0 -0
- package/dist/data-images/story-1-thumb.jpg +0 -0
- package/dist/data-images/story-2-thumb.jpg +0 -0
- package/dist/data-images/story-3-thumb.jpg +0 -0
- package/dist/data-images/story-4-thumb.jpg +0 -0
- package/dist/docs/stylebook/components/BorderRadiusSamples.d.ts +7 -0
- package/dist/docs/stylebook/components/BorderRadiusSamples.d.ts.map +1 -0
- package/dist/docs/stylebook/components/ColorSwatches.d.ts +9 -0
- package/dist/docs/stylebook/components/ColorSwatches.d.ts.map +1 -0
- package/dist/docs/stylebook/components/ShadowSamples.d.ts +7 -0
- package/dist/docs/stylebook/components/ShadowSamples.d.ts.map +1 -0
- package/dist/docs/stylebook/components/SpacingScale.d.ts +8 -0
- package/dist/docs/stylebook/components/SpacingScale.d.ts.map +1 -0
- package/dist/docs/stylebook/components/TypographyScale.d.ts +23 -0
- package/dist/docs/stylebook/components/TypographyScale.d.ts.map +1 -0
- package/dist/fonts/inter-tight/inter-tight-variable-italic.woff2 +0 -0
- package/dist/fonts/inter-tight/inter-tight-variable-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-variable-italic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-variable-normal.woff2 +0 -0
- package/dist/fonts/source-serif-4/source-serif-4-variable-italic.woff2 +0 -0
- package/dist/fonts/source-serif-4/source-serif-4-variable-normal.woff2 +0 -0
- package/dist/fonts.css +43 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/sample-imgs/event-img.jpg +0 -0
- package/dist/sample-imgs/news-img.jpg +0 -0
- package/dist/sample-imgs/page-img.jpg +0 -0
- package/dist/sample-imgs/people-img.jpg +0 -0
- package/dist/style.css +43 -0
- package/dist/styles/_parlour-variables.scss +83 -0
- package/dist/styles/c2b/parlour-tokens.d.ts +19 -0
- package/dist/styles/parlour-base-styles.css +72 -0
- package/dist/styles/parlour-base-styles.scss +72 -0
- package/dist/styles/parlour-layout.css +50 -0
- package/dist/styles/parlour-layout.scss +50 -0
- package/dist/styles/parlour-tokens.css +129 -0
- package/dist/styles/parlour-tokens.d.ts +19 -0
- package/dist/styles/parlour-tokens.js +148 -0
- package/dist/styles/parlour-tokens.scss +129 -0
- package/dist/styles/parlour-typography.css +29 -0
- package/dist/styles/parlour-typography.scss +29 -0
- package/dist/utils/propClasses.d.ts +101 -0
- package/dist/utils/propClasses.d.ts.map +1 -0
- package/dist/wordpress/block-theme.css +157 -0
- package/dist/wordpress/hybrid-theme.css +324 -0
- package/dist/wordpress/integrate.php +139 -0
- package/dist/wordpress/theme-parlour.json +581 -0
- package/package.json +154 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { borderRadiusClasses, backgroundColorClasses } from '../../utils/propClasses';
|
|
2
|
+
type borderRadiusKeys = keyof typeof borderRadiusClasses;
|
|
3
|
+
type backgroundColorKeys = keyof typeof backgroundColorClasses;
|
|
4
|
+
export interface CodeBlockProps extends Omit<React.HTMLAttributes<HTMLPreElement>, 'children'> {
|
|
5
|
+
code: string;
|
|
6
|
+
color?: backgroundColorKeys;
|
|
7
|
+
hasBorder?: boolean;
|
|
8
|
+
borderRadius?: borderRadiusKeys;
|
|
9
|
+
}
|
|
10
|
+
export declare const CodeBlock: ({ code, color, className, hasBorder, borderRadius, ...rest }: CodeBlockProps) => import('react').JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,eAAe,CAAC;AAEvB,KAAK,gBAAgB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AACzD,KAAK,mBAAmB,GAAG,MAAM,OAAO,sBAAsB,CAAC;AAE/D,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC1F,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACnC;AAED,eAAO,MAAM,SAAS,GAAI,8DAOvB,cAAc,gCAiBhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/propClasses-CLbmpfVJ.cjs");let t=require("react/jsx-runtime");var n=({code:n,color:r,className:i,hasBorder:a,borderRadius:o,...s})=>{let c=[`parlour-code-block`,r&&`parlour-code-block--${e.t[r]}`,a&&`parlour-code-block--has-border`,o&&`parlour-code-block--radius-${e.n[o]}`,i].filter(Boolean).join(` `);return(0,t.jsx)(`pre`,{className:c,tabIndex:0,...s,children:(0,t.jsx)(`code`,{children:n})})};exports.CodeBlock=n;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const borderRadiusClasses: {
|
|
4
|
+
sm: "sm";
|
|
5
|
+
md: "md";
|
|
6
|
+
lg: "lg";
|
|
7
|
+
xl: "xl";
|
|
8
|
+
full: "full";
|
|
9
|
+
none: string;
|
|
10
|
+
};
|
|
11
|
+
declare const backgroundColorClasses: {
|
|
12
|
+
light: string;
|
|
13
|
+
medium: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
white: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type borderRadiusKeys = keyof typeof borderRadiusClasses;
|
|
19
|
+
type backgroundColorKeys = keyof typeof backgroundColorClasses;
|
|
20
|
+
interface CodeBlockProps extends Omit<React.HTMLAttributes<HTMLPreElement>, 'children'> {
|
|
21
|
+
code: string;
|
|
22
|
+
color?: backgroundColorKeys;
|
|
23
|
+
hasBorder?: boolean;
|
|
24
|
+
borderRadius?: borderRadiusKeys;
|
|
25
|
+
}
|
|
26
|
+
declare const CodeBlock: ({ code, color, className, hasBorder, borderRadius, ...rest }: CodeBlockProps) => react.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { CodeBlock };
|
|
29
|
+
export type { CodeBlockProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CodeBlock/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { n as e, t } from "../_shared/propClasses-R9s_eOfA.mjs";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/CodeBlock/CodeBlock.tsx
|
|
4
|
+
var r = ({ code: r, color: i, className: a, hasBorder: o, borderRadius: s, ...c }) => {
|
|
5
|
+
let l = [
|
|
6
|
+
"parlour-code-block",
|
|
7
|
+
i && `parlour-code-block--${t[i]}`,
|
|
8
|
+
o && "parlour-code-block--has-border",
|
|
9
|
+
s && `parlour-code-block--radius-${e[s]}`,
|
|
10
|
+
a
|
|
11
|
+
].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ n("pre", {
|
|
13
|
+
className: l,
|
|
14
|
+
tabIndex: 0,
|
|
15
|
+
...c,
|
|
16
|
+
children: /* @__PURE__ */ n("code", { children: r })
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as CodeBlock };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.parlour-code-block {
|
|
2
|
+
padding-inline: var(--parlour--spacing-x-large);
|
|
3
|
+
padding-block: var(--parlour--spacing-x-large);
|
|
4
|
+
overflow-x: auto;
|
|
5
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
6
|
+
font-size: var(--parlour--font-size-small);
|
|
7
|
+
line-height: var(--parlour--line-height-normal);
|
|
8
|
+
color: var(--parlour--color-neutral-950);
|
|
9
|
+
background-color: var(--parlour--color-neutral-200);
|
|
10
|
+
border-color: var(--parlour--color-neutral-300);
|
|
11
|
+
}
|
|
12
|
+
.parlour-code-block code {
|
|
13
|
+
display: block;
|
|
14
|
+
font-family: inherit;
|
|
15
|
+
}
|
|
16
|
+
.parlour-code-block--light {
|
|
17
|
+
background-color: var(--parlour--color-neutral-200);
|
|
18
|
+
}
|
|
19
|
+
.parlour-code-block--medium {
|
|
20
|
+
color: var(--parlour--color-white);
|
|
21
|
+
background-color: var(--parlour--color-neutral-900);
|
|
22
|
+
border-color: var(--parlour--color-neutral-900);
|
|
23
|
+
}
|
|
24
|
+
.parlour-code-block--dark {
|
|
25
|
+
color: var(--parlour--color-white);
|
|
26
|
+
background-color: var(--parlour--color-neutral-950);
|
|
27
|
+
border-color: var(--parlour--color-neutral-950);
|
|
28
|
+
}
|
|
29
|
+
.parlour-code-block--white {
|
|
30
|
+
background-color: var(--parlour--color-white);
|
|
31
|
+
}
|
|
32
|
+
.parlour-code-block--has-border {
|
|
33
|
+
border-style: solid;
|
|
34
|
+
border-width: 1px;
|
|
35
|
+
}
|
|
36
|
+
.parlour-code-block--radius-sm {
|
|
37
|
+
border-radius: var(--parlour--radius-sm);
|
|
38
|
+
}
|
|
39
|
+
.parlour-code-block--radius-md {
|
|
40
|
+
border-radius: var(--parlour--radius-md);
|
|
41
|
+
}
|
|
42
|
+
.parlour-code-block--radius-lg {
|
|
43
|
+
border-radius: var(--parlour--radius-lg);
|
|
44
|
+
}
|
|
45
|
+
.parlour-code-block--radius-xl {
|
|
46
|
+
border-radius: var(--parlour--radius-xl);
|
|
47
|
+
}
|
|
48
|
+
.parlour-code-block--radius-full {
|
|
49
|
+
border-radius: var(--parlour--radius-full);
|
|
50
|
+
}
|
|
51
|
+
.parlour-code-block--radius-none {
|
|
52
|
+
border-radius: 0;
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.parlour-code-block {
|
|
2
|
+
padding-inline: var(--parlour--spacing-x-large);
|
|
3
|
+
padding-block: var(--parlour--spacing-x-large);
|
|
4
|
+
overflow-x: auto;
|
|
5
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
6
|
+
font-size: var(--parlour--font-size-small);
|
|
7
|
+
line-height: var(--parlour--line-height-normal);
|
|
8
|
+
color: var(--parlour--color-neutral-950);
|
|
9
|
+
background-color: var(--parlour--color-neutral-200);
|
|
10
|
+
border-color: var(--parlour--color-neutral-300);
|
|
11
|
+
}
|
|
12
|
+
.parlour-code-block code {
|
|
13
|
+
display: block;
|
|
14
|
+
font-family: inherit;
|
|
15
|
+
}
|
|
16
|
+
.parlour-code-block--light {
|
|
17
|
+
background-color: var(--parlour--color-neutral-200);
|
|
18
|
+
}
|
|
19
|
+
.parlour-code-block--medium {
|
|
20
|
+
color: var(--parlour--color-white);
|
|
21
|
+
background-color: var(--parlour--color-neutral-900);
|
|
22
|
+
border-color: var(--parlour--color-neutral-900);
|
|
23
|
+
}
|
|
24
|
+
.parlour-code-block--dark {
|
|
25
|
+
color: var(--parlour--color-white);
|
|
26
|
+
background-color: var(--parlour--color-neutral-950);
|
|
27
|
+
border-color: var(--parlour--color-neutral-950);
|
|
28
|
+
}
|
|
29
|
+
.parlour-code-block--white {
|
|
30
|
+
background-color: var(--parlour--color-white);
|
|
31
|
+
}
|
|
32
|
+
.parlour-code-block--has-border {
|
|
33
|
+
border-style: solid;
|
|
34
|
+
border-width: 1px;
|
|
35
|
+
}
|
|
36
|
+
.parlour-code-block--radius-sm {
|
|
37
|
+
border-radius: var(--parlour--radius-sm);
|
|
38
|
+
}
|
|
39
|
+
.parlour-code-block--radius-md {
|
|
40
|
+
border-radius: var(--parlour--radius-md);
|
|
41
|
+
}
|
|
42
|
+
.parlour-code-block--radius-lg {
|
|
43
|
+
border-radius: var(--parlour--radius-lg);
|
|
44
|
+
}
|
|
45
|
+
.parlour-code-block--radius-xl {
|
|
46
|
+
border-radius: var(--parlour--radius-xl);
|
|
47
|
+
}
|
|
48
|
+
.parlour-code-block--radius-full {
|
|
49
|
+
border-radius: var(--parlour--radius-full);
|
|
50
|
+
}
|
|
51
|
+
.parlour-code-block--radius-none {
|
|
52
|
+
border-radius: 0;
|
|
53
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { gridColumnClasses } from '../../utils/propClasses';
|
|
3
|
+
type gridColumnKeys = keyof typeof gridColumnClasses;
|
|
4
|
+
export interface ColumnProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
cols?: gridColumnKeys;
|
|
7
|
+
maxWidth?: 'aligncontent' | 'alignwide' | 'alignfull';
|
|
8
|
+
}
|
|
9
|
+
export declare const ColumnWrapper: {
|
|
10
|
+
({ children, cols, maxWidth }: ColumnProps): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const Column: {
|
|
14
|
+
({ children, cols, maxWidth }: ColumnProps): React.JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
} & {
|
|
17
|
+
Content: {
|
|
18
|
+
({ children, isFirst }: import('./ColumnContent').ColumnContentProps): React.JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=Column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../src/components/Column/Column.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,eAAe,CAAC;AAEvB,KAAK,cAAc,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAErD,MAAM,WAAW,WAAW;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,WAAW,CAAC;CACzD;AAED,eAAO,MAAM,aAAa;mCAAyD,WAAW;;CAS7F,CAAC;AAEF,eAAO,MAAM,MAAM;mCAXgE,WAAW;;;;;;;CAa5F,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ColumnContentProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
isFirst?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const ColumnContent: {
|
|
7
|
+
({ children, isFirst }: ColumnContentProps): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ColumnContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnContent.d.ts","sourceRoot":"","sources":["../../../src/components/Column/ColumnContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,aAAa;4BAAmC,kBAAkB;;CAE9E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs"),t=require("../_shared/propClasses-CLbmpfVJ.cjs");let n=require("react");n=e.t(n,1);let r=require("react/jsx-runtime");var i=({children:e,isFirst:t=!1})=>(0,r.jsx)(`div`,{className:`parlour-column__content ${t?`is-first`:``}`,children:e});i.displayName=`Column.Content`;var a=({children:e,cols:n=`2`,maxWidth:i=`aligncontent`})=>{let a=[`parlour-layout parlour-column parlour-column--${t.a[n]}`,i].filter(Boolean).join(` `);return(0,r.jsx)(`div`,{className:a,children:e})},o=Object.assign(a,{Content:i});a.displayName=`Column`,exports.Column=o;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface ColumnContentProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
isFirst?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare const gridColumnClasses: {
|
|
9
|
+
'1': string;
|
|
10
|
+
'2': string;
|
|
11
|
+
'3': string;
|
|
12
|
+
'4': string;
|
|
13
|
+
'1/3': string;
|
|
14
|
+
'2/3': string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type gridColumnKeys = keyof typeof gridColumnClasses;
|
|
18
|
+
interface ColumnProps {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
cols?: gridColumnKeys;
|
|
21
|
+
maxWidth?: 'aligncontent' | 'alignwide' | 'alignfull';
|
|
22
|
+
}
|
|
23
|
+
declare const Column: {
|
|
24
|
+
({ children, cols, maxWidth }: ColumnProps): React.JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
} & {
|
|
27
|
+
Content: {
|
|
28
|
+
({ children, isFirst }: ColumnContentProps): React.JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { Column };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Column/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { a as e } from "../_shared/propClasses-R9s_eOfA.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/Column/ColumnContent.tsx
|
|
5
|
+
var n = ({ children: e, isFirst: n = !1 }) => /* @__PURE__ */ t("div", {
|
|
6
|
+
className: `parlour-column__content ${n ? "is-first" : ""}`,
|
|
7
|
+
children: e
|
|
8
|
+
});
|
|
9
|
+
n.displayName = "Column.Content";
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/Column/Column.tsx
|
|
12
|
+
var r = ({ children: n, cols: r = "2", maxWidth: i = "aligncontent" }) => {
|
|
13
|
+
let a = [`parlour-layout parlour-column parlour-column--${e[r]}`, i].filter(Boolean).join(" ");
|
|
14
|
+
return /* @__PURE__ */ t("div", {
|
|
15
|
+
className: a,
|
|
16
|
+
children: n
|
|
17
|
+
});
|
|
18
|
+
}, i = Object.assign(r, { Content: n });
|
|
19
|
+
r.displayName = "Column";
|
|
20
|
+
//#endregion
|
|
21
|
+
export { i as Column };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.parlour-column {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--parlour--spacing-large);
|
|
5
|
+
margin-left: auto;
|
|
6
|
+
margin-right: auto;
|
|
7
|
+
}
|
|
8
|
+
.parlour-column--one {
|
|
9
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
10
|
+
}
|
|
11
|
+
.parlour-column--two {
|
|
12
|
+
grid-template-columns: 1fr;
|
|
13
|
+
}
|
|
14
|
+
@media (width > 600px) {
|
|
15
|
+
.parlour-column--two {
|
|
16
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.parlour-column--three {
|
|
20
|
+
grid-template-columns: 1fr;
|
|
21
|
+
}
|
|
22
|
+
@media (width > 768px) {
|
|
23
|
+
.parlour-column--three {
|
|
24
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.parlour-column--four {
|
|
28
|
+
grid-template-columns: 1fr;
|
|
29
|
+
}
|
|
30
|
+
@media (width > 600px) {
|
|
31
|
+
.parlour-column--four {
|
|
32
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.parlour-column--one-third {
|
|
36
|
+
grid-template-columns: 1fr;
|
|
37
|
+
}
|
|
38
|
+
@media (width > 768px) {
|
|
39
|
+
.parlour-column--one-third {
|
|
40
|
+
grid-template-columns: 33% auto;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.parlour-column--two-thirds {
|
|
44
|
+
grid-template-columns: 1fr;
|
|
45
|
+
}
|
|
46
|
+
@media (width > 768px) {
|
|
47
|
+
.parlour-column--two-thirds {
|
|
48
|
+
grid-template-columns: 66% auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.parlour-column > .parlour-column__content *:first-child {
|
|
53
|
+
margin-top: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.parlour-column > .parlour-column__content *:last-child {
|
|
57
|
+
margin-bottom: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Ordering — isFirst only applies once the columns sit side by side, so stacked columns keep DOM order */
|
|
61
|
+
@media (width > 600px) {
|
|
62
|
+
.parlour-column--two > .is-first,
|
|
63
|
+
.parlour-column--four > .is-first {
|
|
64
|
+
order: -1;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (width > 768px) {
|
|
69
|
+
.parlour-column--three > .is-first,
|
|
70
|
+
.parlour-column--one-third > .is-first,
|
|
71
|
+
.parlour-column--two-thirds > .is-first {
|
|
72
|
+
order: -1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.parlour-column {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--parlour--spacing-large);
|
|
5
|
+
margin-left: auto;
|
|
6
|
+
margin-right: auto;
|
|
7
|
+
}
|
|
8
|
+
.parlour-column--one {
|
|
9
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
10
|
+
}
|
|
11
|
+
.parlour-column--two {
|
|
12
|
+
grid-template-columns: 1fr;
|
|
13
|
+
}
|
|
14
|
+
@media (width > 600px) {
|
|
15
|
+
.parlour-column--two {
|
|
16
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.parlour-column--three {
|
|
20
|
+
grid-template-columns: 1fr;
|
|
21
|
+
}
|
|
22
|
+
@media (width > 768px) {
|
|
23
|
+
.parlour-column--three {
|
|
24
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.parlour-column--four {
|
|
28
|
+
grid-template-columns: 1fr;
|
|
29
|
+
}
|
|
30
|
+
@media (width > 600px) {
|
|
31
|
+
.parlour-column--four {
|
|
32
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.parlour-column--one-third {
|
|
36
|
+
grid-template-columns: 1fr;
|
|
37
|
+
}
|
|
38
|
+
@media (width > 768px) {
|
|
39
|
+
.parlour-column--one-third {
|
|
40
|
+
grid-template-columns: 33% auto;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.parlour-column--two-thirds {
|
|
44
|
+
grid-template-columns: 1fr;
|
|
45
|
+
}
|
|
46
|
+
@media (width > 768px) {
|
|
47
|
+
.parlour-column--two-thirds {
|
|
48
|
+
grid-template-columns: 66% auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.parlour-column > .parlour-column__content *:first-child {
|
|
53
|
+
margin-top: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.parlour-column > .parlour-column__content *:last-child {
|
|
57
|
+
margin-bottom: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Ordering — isFirst only applies once the columns sit side by side, so stacked columns keep DOM order */
|
|
61
|
+
@media (width > 600px) {
|
|
62
|
+
.parlour-column--two > .is-first,
|
|
63
|
+
.parlour-column--four > .is-first {
|
|
64
|
+
order: -1;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (width > 768px) {
|
|
69
|
+
.parlour-column--three > .is-first,
|
|
70
|
+
.parlour-column--one-third > .is-first,
|
|
71
|
+
.parlour-column--two-thirds > .is-first {
|
|
72
|
+
order: -1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { maxWidthClasses, elementClasses, borderRadiusClasses, backgroundColorClasses } from '../../utils/propClasses';
|
|
2
|
+
type maxWidthKeys = keyof typeof maxWidthClasses;
|
|
3
|
+
type elementKeys = keyof typeof elementClasses;
|
|
4
|
+
type borderRadiusKeys = keyof typeof borderRadiusClasses;
|
|
5
|
+
type colorKeys = keyof typeof backgroundColorClasses;
|
|
6
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
as?: elementKeys;
|
|
9
|
+
maxWidth?: maxWidthKeys;
|
|
10
|
+
contentWidth?: maxWidthKeys;
|
|
11
|
+
color?: colorKeys;
|
|
12
|
+
borderRadius?: borderRadiusKeys;
|
|
13
|
+
}
|
|
14
|
+
export declare const Container: ({ children, as, maxWidth, contentWidth, color, className, borderRadius, ...rest }: ContainerProps) => import('react').JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,eAAe,CAAC;AAEvB,KAAK,YAAY,GAAG,MAAM,OAAO,eAAe,CAAC;AACjD,KAAK,WAAW,GAAG,MAAM,OAAO,cAAc,CAAC;AAC/C,KAAK,gBAAgB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AACzD,KAAK,SAAS,GAAG,MAAM,OAAO,sBAAsB,CAAC;AAErD,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACnC;AAED,eAAO,MAAM,SAAS,GAAI,mFASvB,cAAc,gCAuBhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/Container-Bl4f1ZwJ.cjs");exports.Container=e.t;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const maxWidthClasses: {
|
|
4
|
+
alignsmall: string;
|
|
5
|
+
aligncontent: string;
|
|
6
|
+
alignwide: string;
|
|
7
|
+
alignfull: string;
|
|
8
|
+
};
|
|
9
|
+
declare const elementClasses: {
|
|
10
|
+
div: string;
|
|
11
|
+
section: string;
|
|
12
|
+
header: string;
|
|
13
|
+
main: string;
|
|
14
|
+
footer: string;
|
|
15
|
+
article: string;
|
|
16
|
+
nav: string;
|
|
17
|
+
aside: string;
|
|
18
|
+
ul: string;
|
|
19
|
+
ol: string;
|
|
20
|
+
};
|
|
21
|
+
declare const borderRadiusClasses: {
|
|
22
|
+
sm: "sm";
|
|
23
|
+
md: "md";
|
|
24
|
+
lg: "lg";
|
|
25
|
+
xl: "xl";
|
|
26
|
+
full: "full";
|
|
27
|
+
none: string;
|
|
28
|
+
};
|
|
29
|
+
declare const backgroundColorClasses: {
|
|
30
|
+
light: string;
|
|
31
|
+
medium: string;
|
|
32
|
+
dark: string;
|
|
33
|
+
white: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
type maxWidthKeys = keyof typeof maxWidthClasses;
|
|
37
|
+
type elementKeys = keyof typeof elementClasses;
|
|
38
|
+
type borderRadiusKeys = keyof typeof borderRadiusClasses;
|
|
39
|
+
type colorKeys = keyof typeof backgroundColorClasses;
|
|
40
|
+
interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
as?: elementKeys;
|
|
43
|
+
maxWidth?: maxWidthKeys;
|
|
44
|
+
contentWidth?: maxWidthKeys;
|
|
45
|
+
color?: colorKeys;
|
|
46
|
+
borderRadius?: borderRadiusKeys;
|
|
47
|
+
}
|
|
48
|
+
declare const Container: ({ children, as, maxWidth, contentWidth, color, className, borderRadius, ...rest }: ContainerProps) => react.JSX.Element;
|
|
49
|
+
|
|
50
|
+
export { Container };
|
|
51
|
+
export type { ContainerProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
.parlour-container > * {
|
|
2
|
+
margin-left: auto;
|
|
3
|
+
margin-right: auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.parlour-container > * + * {
|
|
7
|
+
margin-block-start: var(--parlour--spacing-medium);
|
|
8
|
+
margin-block-end: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.parlour-container > .has-global-padding,
|
|
12
|
+
.has-global-padding > .parlour-container.alignfull > .has-global-padding {
|
|
13
|
+
padding-left: 0;
|
|
14
|
+
padding-right: 0;
|
|
15
|
+
}
|
|
16
|
+
.parlour-container > .has-global-padding > *:first-child,
|
|
17
|
+
.has-global-padding > .parlour-container.alignfull > .has-global-padding > *:first-child {
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
}
|
|
20
|
+
.parlour-container > .has-global-padding > *:last-child,
|
|
21
|
+
.has-global-padding > .parlour-container.alignfull > .has-global-padding > *:last-child {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.parlour-container.aligncontent,
|
|
26
|
+
.parlour-container.alignwide,
|
|
27
|
+
.parlour-container.alignfull {
|
|
28
|
+
padding-right: var(--parlour--spacing-3-x-large);
|
|
29
|
+
padding-left: var(--parlour--spacing-3-x-large);
|
|
30
|
+
}
|
|
31
|
+
@media (width > 768px) {
|
|
32
|
+
.parlour-container.aligncontent,
|
|
33
|
+
.parlour-container.alignwide,
|
|
34
|
+
.parlour-container.alignfull {
|
|
35
|
+
padding-right: var(--parlour--spacing-4-x-large);
|
|
36
|
+
padding-left: var(--parlour--spacing-4-x-large);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.parlour-main > div > .parlour-container--no-gap + .parlour-container--no-gap {
|
|
41
|
+
margin-top: var(--parlour--spacing-2-x-large);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.parlour-main > div > .parlour-container--no-gap.alignfull + .parlour-container--no-gap.alignfull {
|
|
45
|
+
margin-top: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.parlour-container--light,
|
|
49
|
+
.parlour-container--medium,
|
|
50
|
+
.parlour-container--dark,
|
|
51
|
+
.parlour-container--white {
|
|
52
|
+
padding-block: var(--parlour--spacing-5-x-large);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.parlour-container--light {
|
|
56
|
+
background-color: var(--parlour--color-neutral-200);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.parlour-container--medium {
|
|
60
|
+
background-color: var(--parlour--color-neutral-900);
|
|
61
|
+
color: var(--parlour--color-white);
|
|
62
|
+
}
|
|
63
|
+
.parlour-container--medium h2,
|
|
64
|
+
.parlour-container--medium h3,
|
|
65
|
+
.parlour-container--medium h4,
|
|
66
|
+
.parlour-container--medium h5,
|
|
67
|
+
.parlour-container--medium h6 {
|
|
68
|
+
color: var(--parlour--color-white);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.parlour-container--dark {
|
|
72
|
+
background-color: var(--parlour--color-neutral-950);
|
|
73
|
+
color: var(--parlour--color-white);
|
|
74
|
+
}
|
|
75
|
+
.parlour-container--dark h2,
|
|
76
|
+
.parlour-container--dark h3,
|
|
77
|
+
.parlour-container--dark h4,
|
|
78
|
+
.parlour-container--dark h5,
|
|
79
|
+
.parlour-container--dark h6 {
|
|
80
|
+
color: var(--parlour--color-white);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.parlour-container--white {
|
|
84
|
+
background-color: var(--parlour--color-white);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.parlour-container--light,
|
|
88
|
+
.parlour-container--white {
|
|
89
|
+
border: 1px solid var(--parlour--color-neutral-300);
|
|
90
|
+
}
|
|
91
|
+
.parlour-container--light.alignfull,
|
|
92
|
+
.parlour-container--white.alignfull {
|
|
93
|
+
border-inline: none;
|
|
94
|
+
}
|
|
95
|
+
.parlour-container--light.alignfull + .parlour-container--has-border,
|
|
96
|
+
.parlour-container--white.alignfull + .parlour-container--has-border {
|
|
97
|
+
border-top: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.parlour-container--full {
|
|
101
|
+
width: 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.parlour-container--radius-sm:not(.alignfull) {
|
|
105
|
+
border-radius: var(--parlour--radius-sm);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.parlour-container--radius-md:not(.alignfull) {
|
|
109
|
+
border-radius: var(--parlour--radius-md);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.parlour-container--radius-lg:not(.alignfull) {
|
|
113
|
+
border-radius: var(--parlour--radius-lg);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.parlour-container--radius-xl:not(.alignfull) {
|
|
117
|
+
border-radius: var(--parlour--radius-xl);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.parlour-container--radius-full:not(.alignfull) {
|
|
121
|
+
border-radius: var(--parlour--radius-full);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.parlour-container--radius-none:not(.alignfull) {
|
|
125
|
+
border-radius: 0;
|
|
126
|
+
}
|