jvetrau-ds 0.1.21 → 0.1.23
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/index.cjs +12 -0
- package/index.d.cts +2 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/layouts/base/base.cjs +16 -5
- package/layouts/base/base.cjs.map +1 -1
- package/layouts/base/base.css +75 -0
- package/layouts/base/base.d.cts +3 -1
- package/layouts/base/base.d.ts +3 -1
- package/layouts/base/base.js +17 -6
- package/layouts/base/base.js.map +1 -1
- package/layouts/base/index.d.cts +1 -1
- package/layouts/base/index.d.ts +1 -1
- package/layouts/foundation/foundation.cjs +1 -1
- package/layouts/foundation/foundation.cjs.map +1 -1
- package/layouts/foundation/foundation.css +6 -0
- package/layouts/foundation/foundation.js +1 -1
- package/layouts/foundation/foundation.js.map +1 -1
- package/package.json +1 -1
- package/patterns/form/form.cjs +26 -0
- package/patterns/form/form.cjs.map +1 -0
- package/patterns/form/form.css +19 -0
- package/patterns/form/form.d.cts +7 -0
- package/patterns/form/form.d.ts +7 -0
- package/patterns/form/form.js +24 -0
- package/patterns/form/form.js.map +1 -0
- package/patterns/form/index.cjs +13 -0
- package/patterns/form/index.cjs.map +1 -0
- package/patterns/form/index.d.cts +2 -0
- package/patterns/form/index.d.ts +2 -0
- package/patterns/form/index.js +3 -0
- package/patterns/form/index.js.map +1 -0
- package/patterns/index.cjs +40 -0
- package/patterns/index.cjs.map +1 -0
- package/patterns/index.d.cts +6 -0
- package/patterns/index.d.ts +6 -0
- package/patterns/index.js +7 -0
- package/patterns/index.js.map +1 -0
- package/patterns/masthead/index.cjs +13 -0
- package/patterns/masthead/index.cjs.map +1 -0
- package/patterns/masthead/index.d.cts +2 -0
- package/patterns/masthead/index.d.ts +2 -0
- package/patterns/masthead/index.js +3 -0
- package/patterns/masthead/index.js.map +1 -0
- package/patterns/masthead/masthead.cjs +27 -0
- package/patterns/masthead/masthead.cjs.map +1 -0
- package/patterns/masthead/masthead.css +28 -0
- package/patterns/masthead/masthead.d.cts +8 -0
- package/patterns/masthead/masthead.d.ts +8 -0
- package/patterns/masthead/masthead.js +25 -0
- package/patterns/masthead/masthead.js.map +1 -0
- package/styles.css +132 -0
package/index.cjs
CHANGED
|
@@ -23,6 +23,8 @@ var avatar = require('./components/avatar');
|
|
|
23
23
|
var header = require('./patterns/header');
|
|
24
24
|
var footer = require('./patterns/footer');
|
|
25
25
|
var screenHeader = require('./patterns/screen-header');
|
|
26
|
+
var form = require('./patterns/form');
|
|
27
|
+
var masthead = require('./patterns/masthead');
|
|
26
28
|
var foundation = require('./layouts/foundation');
|
|
27
29
|
var base = require('./layouts/base');
|
|
28
30
|
var sidebar = require('./layouts/sidebar');
|
|
@@ -55,6 +57,8 @@ var avatar__default = /*#__PURE__*/_interopDefault(avatar);
|
|
|
55
57
|
var header__default = /*#__PURE__*/_interopDefault(header);
|
|
56
58
|
var footer__default = /*#__PURE__*/_interopDefault(footer);
|
|
57
59
|
var screenHeader__default = /*#__PURE__*/_interopDefault(screenHeader);
|
|
60
|
+
var form__default = /*#__PURE__*/_interopDefault(form);
|
|
61
|
+
var masthead__default = /*#__PURE__*/_interopDefault(masthead);
|
|
58
62
|
var foundation__default = /*#__PURE__*/_interopDefault(foundation);
|
|
59
63
|
var base__default = /*#__PURE__*/_interopDefault(base);
|
|
60
64
|
var sidebar__default = /*#__PURE__*/_interopDefault(sidebar);
|
|
@@ -156,6 +160,14 @@ Object.defineProperty(exports, "ScreenHeader", {
|
|
|
156
160
|
enumerable: true,
|
|
157
161
|
get: function () { return screenHeader__default.default; }
|
|
158
162
|
});
|
|
163
|
+
Object.defineProperty(exports, "Form", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return form__default.default; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "Masthead", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return masthead__default.default; }
|
|
170
|
+
});
|
|
159
171
|
Object.defineProperty(exports, "LayoutFoundation", {
|
|
160
172
|
enumerable: true,
|
|
161
173
|
get: function () { return foundation__default.default; }
|
package/index.d.cts
CHANGED
|
@@ -21,6 +21,8 @@ export { default as Avatar, AvatarProps } from './components/avatar/avatar.cjs';
|
|
|
21
21
|
export { default as Header, HeaderProps } from './patterns/header/header.cjs';
|
|
22
22
|
export { default as Footer, FooterProps } from './patterns/footer/footer.cjs';
|
|
23
23
|
export { default as ScreenHeader, ScreenHeaderProps } from './patterns/screen-header/screen-header.cjs';
|
|
24
|
+
export { default as Form, FormProps } from './patterns/form/form.cjs';
|
|
25
|
+
export { default as Masthead, MastheadProps } from './patterns/masthead/masthead.cjs';
|
|
24
26
|
export { default as LayoutFoundation, LayoutFoundationProps, LayoutFoundationWidth } from './layouts/foundation/foundation.cjs';
|
|
25
27
|
export { default as LayoutBase, LayoutBaseProps } from './layouts/base/base.cjs';
|
|
26
28
|
export { default as LayoutSidebar, LayoutSidebarProps } from './layouts/sidebar/sidebar.cjs';
|
package/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export { default as Avatar, AvatarProps } from './components/avatar/avatar.js';
|
|
|
21
21
|
export { default as Header, HeaderProps } from './patterns/header/header.js';
|
|
22
22
|
export { default as Footer, FooterProps } from './patterns/footer/footer.js';
|
|
23
23
|
export { default as ScreenHeader, ScreenHeaderProps } from './patterns/screen-header/screen-header.js';
|
|
24
|
+
export { default as Form, FormProps } from './patterns/form/form.js';
|
|
25
|
+
export { default as Masthead, MastheadProps } from './patterns/masthead/masthead.js';
|
|
24
26
|
export { default as LayoutFoundation, LayoutFoundationProps, LayoutFoundationWidth } from './layouts/foundation/foundation.js';
|
|
25
27
|
export { default as LayoutBase, LayoutBaseProps } from './layouts/base/base.js';
|
|
26
28
|
export { default as LayoutSidebar, LayoutSidebarProps } from './layouts/sidebar/sidebar.js';
|
package/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export { default as Avatar } from './components/avatar';
|
|
|
21
21
|
export { default as Header } from './patterns/header';
|
|
22
22
|
export { default as Footer } from './patterns/footer';
|
|
23
23
|
export { default as ScreenHeader } from './patterns/screen-header';
|
|
24
|
+
export { default as Form } from './patterns/form';
|
|
25
|
+
export { default as Masthead } from './patterns/masthead';
|
|
24
26
|
export { default as LayoutFoundation } from './layouts/foundation';
|
|
25
27
|
export { default as LayoutBase } from './layouts/base';
|
|
26
28
|
export { default as LayoutSidebar } from './layouts/sidebar';
|
package/layouts/base/base.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var LayoutFoundation = require('../foundation');
|
|
5
5
|
require('./base.css');
|
|
6
|
+
var classnames = require('../../components/helpers/classnames');
|
|
6
7
|
|
|
7
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
9
|
|
|
@@ -10,23 +11,33 @@ var LayoutFoundation__default = /*#__PURE__*/_interopDefault(LayoutFoundation);
|
|
|
10
11
|
|
|
11
12
|
const LayoutBase = ({
|
|
12
13
|
width = "default",
|
|
14
|
+
mainAlign = "start",
|
|
13
15
|
header,
|
|
14
16
|
footer,
|
|
15
17
|
children,
|
|
16
18
|
className = "",
|
|
17
19
|
...props
|
|
18
20
|
}) => {
|
|
19
|
-
|
|
21
|
+
const contentClasses = classnames.classnames("layout-base__content", "", {
|
|
22
|
+
"layout-base__content--narrow": width === "narrow",
|
|
23
|
+
"layout-base__content--wide": width === "wide",
|
|
24
|
+
"layout-base__content--full": width === "full"
|
|
25
|
+
});
|
|
26
|
+
const mainClasses = classnames.classnames("layout-base__main", "", {
|
|
27
|
+
"layout-base__main--align-center": mainAlign === "center",
|
|
28
|
+
"layout-base__main--align-end": mainAlign === "end"
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
31
|
LayoutFoundation__default.default,
|
|
21
32
|
{
|
|
22
|
-
width,
|
|
33
|
+
width: "full",
|
|
23
34
|
className,
|
|
24
35
|
...props,
|
|
25
|
-
children: [
|
|
36
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "layout-base", children: [
|
|
26
37
|
header && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "layout-base__header", children: header }),
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "
|
|
38
|
+
/* @__PURE__ */ jsxRuntime.jsx("main", { className: mainClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: contentClasses, children }) }),
|
|
28
39
|
footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "layout-base__footer", children: footer })
|
|
29
|
-
]
|
|
40
|
+
] })
|
|
30
41
|
}
|
|
31
42
|
);
|
|
32
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/layouts/base/base.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/layouts/base/base.tsx"],"names":["classnames","jsx","LayoutFoundation","jsxs"],"mappings":";;;;;;;;;;;AAoBA,MAAM,aAAwC,CAAC;AAAA,EAC7C,KAAA,GAAQ,SAAA;AAAA,EACR,SAAA,GAAY,OAAA;AAAA,EACZ,MAAA;AAAA,EACA,MAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,cAAA,GAAiBA,qBAAA,CAAW,sBAAA,EAAwB,EAAA,EAAI;AAAA,IAC5D,gCAAgC,KAAA,KAAU,QAAA;AAAA,IAC1C,8BAA8B,KAAA,KAAU,MAAA;AAAA,IACxC,8BAA8B,KAAA,KAAU;AAAA,GACzC,CAAA;AAED,EAAA,MAAM,WAAA,GAAcA,qBAAA,CAAW,mBAAA,EAAqB,EAAA,EAAI;AAAA,IACtD,mCAAmC,SAAA,KAAc,QAAA;AAAA,IACjD,gCAAgC,SAAA,KAAc;AAAA,GAC/C,CAAA;AAED,EAAA,uBACEC,cAAA;AAAA,IAACC,iCAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,MAAA;AAAA,MACN,SAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAC,eAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,aAAA,EACZ,QAAA,EAAA;AAAA,QAAA,MAAA,oBACCF,cAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,qBAAA,EACZ,QAAA,EAAA,MAAA,EACH,CAAA;AAAA,wBAGFA,cAAA,CAAC,UAAK,SAAA,EAAW,WAAA,EACf,yCAAC,KAAA,EAAA,EAAI,SAAA,EAAW,cAAA,EACb,QAAA,EACH,CAAA,EACF,CAAA;AAAA,QAEC,MAAA,oBACCA,cAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,uBACZ,QAAA,EAAA,MAAA,EACH;AAAA,OAAA,EAEJ;AAAA;AAAA,GACF;AAEJ,CAAA;AAEA,IAAO,YAAA,GAAQ","file":"base.cjs","sourcesContent":["import React from 'react';\nimport LayoutFoundation, {\n type LayoutFoundationWidth,\n} from '../foundation';\nimport './base.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport type LayoutBaseMainAlign =\n | 'start'\n | 'center'\n | 'end';\n\nexport interface LayoutBaseProps\n extends React.HTMLAttributes<HTMLDivElement> {\n width?: LayoutFoundationWidth;\n mainAlign?: LayoutBaseMainAlign;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n}\n\nconst LayoutBase: React.FC<LayoutBaseProps> = ({\n width = 'default',\n mainAlign = 'start',\n header,\n footer,\n children,\n className = '',\n ...props\n}) => {\n const contentClasses = classnames('layout-base__content', '', {\n 'layout-base__content--narrow': width === 'narrow',\n 'layout-base__content--wide': width === 'wide',\n 'layout-base__content--full': width === 'full',\n });\n\n const mainClasses = classnames('layout-base__main', '', {\n 'layout-base__main--align-center': mainAlign === 'center',\n 'layout-base__main--align-end': mainAlign === 'end',\n });\n\n return (\n <LayoutFoundation\n width=\"full\"\n className={className}\n {...props}\n >\n <div className=\"layout-base\">\n {header && (\n <div className=\"layout-base__header\">\n {header}\n </div>\n )}\n\n <main className={mainClasses}>\n <div className={contentClasses}>\n {children}\n </div>\n </main>\n\n {footer && (\n <div className=\"layout-base__footer\">\n {footer}\n </div>\n )}\n </div>\n </LayoutFoundation>\n );\n};\n\nexport default LayoutBase;"]}
|
package/layouts/base/base.css
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
.layout-base {
|
|
2
|
+
/* color */
|
|
3
|
+
|
|
4
|
+
/* typography */
|
|
5
|
+
|
|
6
|
+
/* size */
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
|
|
10
|
+
width: 100%;
|
|
11
|
+
min-height:
|
|
12
|
+
calc(
|
|
13
|
+
100dvh -
|
|
14
|
+
(
|
|
15
|
+
var(--layout-foundation-padding-vert) * 2
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
/* border */
|
|
20
|
+
|
|
21
|
+
/* depth */
|
|
22
|
+
|
|
23
|
+
/* motion */
|
|
24
|
+
}
|
|
25
|
+
|
|
1
26
|
.layout-base__header {
|
|
2
27
|
/* color */
|
|
3
28
|
|
|
@@ -19,7 +44,19 @@
|
|
|
19
44
|
/* typography */
|
|
20
45
|
|
|
21
46
|
/* size */
|
|
47
|
+
display: flex;
|
|
48
|
+
flex: 1;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
align-items: flex-start;
|
|
51
|
+
|
|
22
52
|
width: 100%;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
|
|
55
|
+
padding:
|
|
56
|
+
var(--layout-foundation-padding-vert)
|
|
57
|
+
var(--layout-foundation-padding-horz);
|
|
58
|
+
|
|
59
|
+
box-sizing: border-box;
|
|
23
60
|
|
|
24
61
|
/* border */
|
|
25
62
|
|
|
@@ -28,6 +65,44 @@
|
|
|
28
65
|
/* motion */
|
|
29
66
|
}
|
|
30
67
|
|
|
68
|
+
.layout-base__main--align-center {
|
|
69
|
+
align-items: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.layout-base__main--align-end {
|
|
73
|
+
align-items: flex-end;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.layout-base__content {
|
|
77
|
+
/* color */
|
|
78
|
+
|
|
79
|
+
/* typography */
|
|
80
|
+
|
|
81
|
+
/* size */
|
|
82
|
+
--layout-base-content-width: 960px;
|
|
83
|
+
|
|
84
|
+
width: 100%;
|
|
85
|
+
max-width: var(--layout-base-content-width);
|
|
86
|
+
|
|
87
|
+
/* border */
|
|
88
|
+
|
|
89
|
+
/* depth */
|
|
90
|
+
|
|
91
|
+
/* motion */
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.layout-base__content--narrow {
|
|
95
|
+
--layout-base-content-width: 720px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.layout-base__content--wide {
|
|
99
|
+
--layout-base-content-width: 1200px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.layout-base__content--full {
|
|
103
|
+
max-width: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
31
106
|
.layout-base__footer {
|
|
32
107
|
/* color */
|
|
33
108
|
|
package/layouts/base/base.d.cts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LayoutFoundationWidth } from '../foundation/foundation.cjs';
|
|
3
3
|
|
|
4
|
+
type LayoutBaseMainAlign = 'start' | 'center' | 'end';
|
|
4
5
|
interface LayoutBaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
width?: LayoutFoundationWidth;
|
|
7
|
+
mainAlign?: LayoutBaseMainAlign;
|
|
6
8
|
header?: React.ReactNode;
|
|
7
9
|
footer?: React.ReactNode;
|
|
8
10
|
}
|
|
9
11
|
declare const LayoutBase: React.FC<LayoutBaseProps>;
|
|
10
12
|
|
|
11
|
-
export { type LayoutBaseProps, LayoutBase as default };
|
|
13
|
+
export { type LayoutBaseMainAlign, type LayoutBaseProps, LayoutBase as default };
|
package/layouts/base/base.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LayoutFoundationWidth } from '../foundation/foundation.js';
|
|
3
3
|
|
|
4
|
+
type LayoutBaseMainAlign = 'start' | 'center' | 'end';
|
|
4
5
|
interface LayoutBaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
width?: LayoutFoundationWidth;
|
|
7
|
+
mainAlign?: LayoutBaseMainAlign;
|
|
6
8
|
header?: React.ReactNode;
|
|
7
9
|
footer?: React.ReactNode;
|
|
8
10
|
}
|
|
9
11
|
declare const LayoutBase: React.FC<LayoutBaseProps>;
|
|
10
12
|
|
|
11
|
-
export { type LayoutBaseProps, LayoutBase as default };
|
|
13
|
+
export { type LayoutBaseMainAlign, type LayoutBaseProps, LayoutBase as default };
|
package/layouts/base/base.js
CHANGED
|
@@ -1,26 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import LayoutFoundation from '../foundation';
|
|
3
3
|
import './base.css';
|
|
4
|
+
import { classnames } from '../../components/helpers/classnames';
|
|
4
5
|
|
|
5
6
|
const LayoutBase = ({
|
|
6
7
|
width = "default",
|
|
8
|
+
mainAlign = "start",
|
|
7
9
|
header,
|
|
8
10
|
footer,
|
|
9
11
|
children,
|
|
10
12
|
className = "",
|
|
11
13
|
...props
|
|
12
14
|
}) => {
|
|
13
|
-
|
|
15
|
+
const contentClasses = classnames("layout-base__content", "", {
|
|
16
|
+
"layout-base__content--narrow": width === "narrow",
|
|
17
|
+
"layout-base__content--wide": width === "wide",
|
|
18
|
+
"layout-base__content--full": width === "full"
|
|
19
|
+
});
|
|
20
|
+
const mainClasses = classnames("layout-base__main", "", {
|
|
21
|
+
"layout-base__main--align-center": mainAlign === "center",
|
|
22
|
+
"layout-base__main--align-end": mainAlign === "end"
|
|
23
|
+
});
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
14
25
|
LayoutFoundation,
|
|
15
26
|
{
|
|
16
|
-
width,
|
|
27
|
+
width: "full",
|
|
17
28
|
className,
|
|
18
29
|
...props,
|
|
19
|
-
children: [
|
|
30
|
+
children: /* @__PURE__ */ jsxs("div", { className: "layout-base", children: [
|
|
20
31
|
header && /* @__PURE__ */ jsx("div", { className: "layout-base__header", children: header }),
|
|
21
|
-
/* @__PURE__ */ jsx("main", { className: "
|
|
32
|
+
/* @__PURE__ */ jsx("main", { className: mainClasses, children: /* @__PURE__ */ jsx("div", { className: contentClasses, children }) }),
|
|
22
33
|
footer && /* @__PURE__ */ jsx("div", { className: "layout-base__footer", children: footer })
|
|
23
|
-
]
|
|
34
|
+
] })
|
|
24
35
|
}
|
|
25
36
|
);
|
|
26
37
|
};
|
package/layouts/base/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/layouts/base/base.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/layouts/base/base.tsx"],"names":[],"mappings":";;;;;AAoBA,MAAM,aAAwC,CAAC;AAAA,EAC7C,KAAA,GAAQ,SAAA;AAAA,EACR,SAAA,GAAY,OAAA;AAAA,EACZ,MAAA;AAAA,EACA,MAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,cAAA,GAAiB,UAAA,CAAW,sBAAA,EAAwB,EAAA,EAAI;AAAA,IAC5D,gCAAgC,KAAA,KAAU,QAAA;AAAA,IAC1C,8BAA8B,KAAA,KAAU,MAAA;AAAA,IACxC,8BAA8B,KAAA,KAAU;AAAA,GACzC,CAAA;AAED,EAAA,MAAM,WAAA,GAAc,UAAA,CAAW,mBAAA,EAAqB,EAAA,EAAI;AAAA,IACtD,mCAAmC,SAAA,KAAc,QAAA;AAAA,IACjD,gCAAgC,SAAA,KAAc;AAAA,GAC/C,CAAA;AAED,EAAA,uBACE,GAAA;AAAA,IAAC,gBAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,MAAA;AAAA,MACN,SAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,aAAA,EACZ,QAAA,EAAA;AAAA,QAAA,MAAA,oBACC,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,qBAAA,EACZ,QAAA,EAAA,MAAA,EACH,CAAA;AAAA,wBAGF,GAAA,CAAC,UAAK,SAAA,EAAW,WAAA,EACf,8BAAC,KAAA,EAAA,EAAI,SAAA,EAAW,cAAA,EACb,QAAA,EACH,CAAA,EACF,CAAA;AAAA,QAEC,MAAA,oBACC,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,uBACZ,QAAA,EAAA,MAAA,EACH;AAAA,OAAA,EAEJ;AAAA;AAAA,GACF;AAEJ,CAAA;AAEA,IAAO,YAAA,GAAQ","file":"base.js","sourcesContent":["import React from 'react';\nimport LayoutFoundation, {\n type LayoutFoundationWidth,\n} from '../foundation';\nimport './base.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport type LayoutBaseMainAlign =\n | 'start'\n | 'center'\n | 'end';\n\nexport interface LayoutBaseProps\n extends React.HTMLAttributes<HTMLDivElement> {\n width?: LayoutFoundationWidth;\n mainAlign?: LayoutBaseMainAlign;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n}\n\nconst LayoutBase: React.FC<LayoutBaseProps> = ({\n width = 'default',\n mainAlign = 'start',\n header,\n footer,\n children,\n className = '',\n ...props\n}) => {\n const contentClasses = classnames('layout-base__content', '', {\n 'layout-base__content--narrow': width === 'narrow',\n 'layout-base__content--wide': width === 'wide',\n 'layout-base__content--full': width === 'full',\n });\n\n const mainClasses = classnames('layout-base__main', '', {\n 'layout-base__main--align-center': mainAlign === 'center',\n 'layout-base__main--align-end': mainAlign === 'end',\n });\n\n return (\n <LayoutFoundation\n width=\"full\"\n className={className}\n {...props}\n >\n <div className=\"layout-base\">\n {header && (\n <div className=\"layout-base__header\">\n {header}\n </div>\n )}\n\n <main className={mainClasses}>\n <div className={contentClasses}>\n {children}\n </div>\n </main>\n\n {footer && (\n <div className=\"layout-base__footer\">\n {footer}\n </div>\n )}\n </div>\n </LayoutFoundation>\n );\n};\n\nexport default LayoutBase;"]}
|
package/layouts/base/index.d.cts
CHANGED
package/layouts/base/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/layouts/foundation/foundation.tsx"],"names":["classnames","jsx"],"mappings":";;;;;;AAeA,MAAM,mBAAoD,CAAC;AAAA,EACzD,KAAA,GAAQ,
|
|
1
|
+
{"version":3,"sources":["../../../src/layouts/foundation/foundation.tsx"],"names":["classnames","jsx"],"mappings":";;;;;;AAeA,MAAM,mBAAoD,CAAC;AAAA,EACzD,KAAA,GAAQ,MAAA;AAAA,EACR,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAUA,qBAAA,CAAW,mBAAA,EAAqB,SAAA,EAAW;AAAA,IACzD,6BAA6B,KAAA,KAAU,QAAA;AAAA,IACvC,2BAA2B,KAAA,KAAU,MAAA;AAAA,IACrC,2BAA2B,KAAA,KAAU;AAAA,GACtC,CAAA;AAED,EAAA,uBACEC,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAA,cAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,yBAAA,EACZ,QAAA,EACH;AAAA;AAAA,GACF;AAEJ,CAAA;AAEA,IAAO,kBAAA,GAAQ","file":"foundation.cjs","sourcesContent":["import React from 'react';\nimport './foundation.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport type LayoutFoundationWidth =\n | 'narrow'\n | 'default'\n | 'wide'\n | 'full';\n\nexport interface LayoutFoundationProps\n extends React.HTMLAttributes<HTMLDivElement> {\n width?: LayoutFoundationWidth;\n}\n\nconst LayoutFoundation: React.FC<LayoutFoundationProps> = ({\n width = 'full',\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames('layout-foundation', className, {\n 'layout-foundation--narrow': width === 'narrow',\n 'layout-foundation--wide': width === 'wide',\n 'layout-foundation--full': width === 'full',\n });\n\n return (\n <div\n className={classes}\n {...props}\n >\n <div className=\"layout-foundation__grid\">\n {children}\n </div>\n </div>\n );\n};\n\nexport default LayoutFoundation;"]}
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
--layout-foundation-columns: 12;
|
|
12
12
|
--layout-foundation-gap: var(--size-grid-margin);
|
|
13
13
|
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
|
|
14
17
|
width: 100%;
|
|
15
18
|
min-height: 100dvh;
|
|
16
19
|
max-width: var(--layout-foundation-width);
|
|
@@ -45,11 +48,14 @@
|
|
|
45
48
|
display: grid;
|
|
46
49
|
grid-template-columns: repeat(var(--layout-foundation-columns), minmax(0, 1fr));
|
|
47
50
|
gap: var(--layout-foundation-gap);
|
|
51
|
+
|
|
48
52
|
width: 100%;
|
|
49
53
|
min-height: 100dvh;
|
|
54
|
+
|
|
50
55
|
padding:
|
|
51
56
|
var(--layout-foundation-padding-vert)
|
|
52
57
|
var(--layout-foundation-padding-horz);
|
|
58
|
+
|
|
53
59
|
box-sizing: border-box;
|
|
54
60
|
|
|
55
61
|
/* border */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/layouts/foundation/foundation.tsx"],"names":[],"mappings":";;;;AAeA,MAAM,mBAAoD,CAAC;AAAA,EACzD,KAAA,GAAQ,
|
|
1
|
+
{"version":3,"sources":["../../../src/layouts/foundation/foundation.tsx"],"names":[],"mappings":";;;;AAeA,MAAM,mBAAoD,CAAC;AAAA,EACzD,KAAA,GAAQ,MAAA;AAAA,EACR,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAU,UAAA,CAAW,mBAAA,EAAqB,SAAA,EAAW;AAAA,IACzD,6BAA6B,KAAA,KAAU,QAAA;AAAA,IACvC,2BAA2B,KAAA,KAAU,MAAA;AAAA,IACrC,2BAA2B,KAAA,KAAU;AAAA,GACtC,CAAA;AAED,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,yBAAA,EACZ,QAAA,EACH;AAAA;AAAA,GACF;AAEJ,CAAA;AAEA,IAAO,kBAAA,GAAQ","file":"foundation.js","sourcesContent":["import React from 'react';\nimport './foundation.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport type LayoutFoundationWidth =\n | 'narrow'\n | 'default'\n | 'wide'\n | 'full';\n\nexport interface LayoutFoundationProps\n extends React.HTMLAttributes<HTMLDivElement> {\n width?: LayoutFoundationWidth;\n}\n\nconst LayoutFoundation: React.FC<LayoutFoundationProps> = ({\n width = 'full',\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames('layout-foundation', className, {\n 'layout-foundation--narrow': width === 'narrow',\n 'layout-foundation--wide': width === 'wide',\n 'layout-foundation--full': width === 'full',\n });\n\n return (\n <div\n className={classes}\n {...props}\n >\n <div className=\"layout-foundation__grid\">\n {children}\n </div>\n </div>\n );\n};\n\nexport default LayoutFoundation;"]}
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
require('./form.css');
|
|
5
|
+
var classnames = require('../../components/helpers/classnames');
|
|
6
|
+
|
|
7
|
+
const Form = ({
|
|
8
|
+
className = "",
|
|
9
|
+
children,
|
|
10
|
+
...props
|
|
11
|
+
}) => {
|
|
12
|
+
const classes = classnames.classnames("form", className, {});
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14
|
+
"form",
|
|
15
|
+
{
|
|
16
|
+
className: classes,
|
|
17
|
+
...props,
|
|
18
|
+
children
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
var form_default = Form;
|
|
23
|
+
|
|
24
|
+
module.exports = form_default;
|
|
25
|
+
//# sourceMappingURL=form.cjs.map
|
|
26
|
+
//# sourceMappingURL=form.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/patterns/form/form.tsx"],"names":["classnames","jsx"],"mappings":";;;;;;AAOA,MAAM,OAA4B,CAAC;AAAA,EACjC,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAUA,qBAAA,CAAW,MAAA,EAAQ,SAAA,EAAW,EAAE,CAAA;AAEhD,EAAA,uBACEC,cAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ,CAAA;AAEA,IAAO,YAAA,GAAQ","file":"form.cjs","sourcesContent":["import React from 'react';\nimport './form.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport interface FormProps\n extends React.FormHTMLAttributes<HTMLFormElement> {}\n\nconst Form: React.FC<FormProps> = ({\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames('form', className, {});\n\n return (\n <form\n className={classes}\n {...props}\n >\n {children}\n </form>\n );\n};\n\nexport default Form;"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.form {
|
|
2
|
+
/* color */
|
|
3
|
+
|
|
4
|
+
/* typography */
|
|
5
|
+
|
|
6
|
+
/* size */
|
|
7
|
+
--form-gap: var(--margin-form-field-vert);
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--form-gap);
|
|
12
|
+
width: 100%;
|
|
13
|
+
|
|
14
|
+
/* border */
|
|
15
|
+
|
|
16
|
+
/* depth */
|
|
17
|
+
|
|
18
|
+
/* motion */
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import './form.css';
|
|
3
|
+
import { classnames } from '../../components/helpers/classnames';
|
|
4
|
+
|
|
5
|
+
const Form = ({
|
|
6
|
+
className = "",
|
|
7
|
+
children,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const classes = classnames("form", className, {});
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
"form",
|
|
13
|
+
{
|
|
14
|
+
className: classes,
|
|
15
|
+
...props,
|
|
16
|
+
children
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
var form_default = Form;
|
|
21
|
+
|
|
22
|
+
export { form_default as default };
|
|
23
|
+
//# sourceMappingURL=form.js.map
|
|
24
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/patterns/form/form.tsx"],"names":[],"mappings":";;;;AAOA,MAAM,OAA4B,CAAC;AAAA,EACjC,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAU,UAAA,CAAW,MAAA,EAAQ,SAAA,EAAW,EAAE,CAAA;AAEhD,EAAA,uBACE,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ,CAAA;AAEA,IAAO,YAAA,GAAQ","file":"form.js","sourcesContent":["import React from 'react';\nimport './form.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport interface FormProps\n extends React.FormHTMLAttributes<HTMLFormElement> {}\n\nconst Form: React.FC<FormProps> = ({\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames('form', className, {});\n\n return (\n <form\n className={classes}\n {...props}\n >\n {children}\n </form>\n );\n};\n\nexport default Form;"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var form = require('./form');
|
|
4
|
+
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var form__default = /*#__PURE__*/_interopDefault(form);
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module.exports = form__default.default;
|
|
12
|
+
//# sourceMappingURL=index.cjs.map
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var header = require('./header');
|
|
4
|
+
var footer = require('./footer');
|
|
5
|
+
var screenHeader = require('./screen-header');
|
|
6
|
+
var form = require('./form');
|
|
7
|
+
var masthead = require('./masthead');
|
|
8
|
+
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var header__default = /*#__PURE__*/_interopDefault(header);
|
|
12
|
+
var footer__default = /*#__PURE__*/_interopDefault(footer);
|
|
13
|
+
var screenHeader__default = /*#__PURE__*/_interopDefault(screenHeader);
|
|
14
|
+
var form__default = /*#__PURE__*/_interopDefault(form);
|
|
15
|
+
var masthead__default = /*#__PURE__*/_interopDefault(masthead);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "Header", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return header__default.default; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "Footer", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return footer__default.default; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "ScreenHeader", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return screenHeader__default.default; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "Form", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return form__default.default; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "Masthead", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return masthead__default.default; }
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.cjs.map
|
|
40
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Header, HeaderProps } from './header/header.cjs';
|
|
2
|
+
export { default as Footer, FooterProps } from './footer/footer.cjs';
|
|
3
|
+
export { default as ScreenHeader, ScreenHeaderProps } from './screen-header/screen-header.cjs';
|
|
4
|
+
export { default as Form, FormProps } from './form/form.cjs';
|
|
5
|
+
export { default as Masthead, MastheadProps } from './masthead/masthead.cjs';
|
|
6
|
+
import 'react';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Header, HeaderProps } from './header/header.js';
|
|
2
|
+
export { default as Footer, FooterProps } from './footer/footer.js';
|
|
3
|
+
export { default as ScreenHeader, ScreenHeaderProps } from './screen-header/screen-header.js';
|
|
4
|
+
export { default as Form, FormProps } from './form/form.js';
|
|
5
|
+
export { default as Masthead, MastheadProps } from './masthead/masthead.js';
|
|
6
|
+
import 'react';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Header } from './header';
|
|
2
|
+
export { default as Footer } from './footer';
|
|
3
|
+
export { default as ScreenHeader } from './screen-header';
|
|
4
|
+
export { default as Form } from './form';
|
|
5
|
+
export { default as Masthead } from './masthead';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var masthead = require('./masthead');
|
|
4
|
+
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var masthead__default = /*#__PURE__*/_interopDefault(masthead);
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module.exports = masthead__default.default;
|
|
12
|
+
//# sourceMappingURL=index.cjs.map
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
require('./masthead.css');
|
|
5
|
+
var classnames = require('../../components/helpers/classnames');
|
|
6
|
+
|
|
7
|
+
const Masthead = ({
|
|
8
|
+
logo,
|
|
9
|
+
className = "",
|
|
10
|
+
children,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
const classes = classnames.classnames("masthead", className, {});
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
"header",
|
|
16
|
+
{
|
|
17
|
+
className: classes,
|
|
18
|
+
...props,
|
|
19
|
+
children: (logo || children) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "masthead__logo", children: logo || children })
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
var masthead_default = Masthead;
|
|
24
|
+
|
|
25
|
+
module.exports = masthead_default;
|
|
26
|
+
//# sourceMappingURL=masthead.cjs.map
|
|
27
|
+
//# sourceMappingURL=masthead.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/patterns/masthead/masthead.tsx"],"names":["classnames","jsx"],"mappings":";;;;;;AASA,MAAM,WAAoC,CAAC;AAAA,EACzC,IAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAUA,qBAAA,CAAW,UAAA,EAAY,SAAA,EAAW,EAAE,CAAA;AAEpD,EAAA,uBACEC,cAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEF,mBAAQ,QAAA,qBACRA,cAAA,CAAC,SAAI,SAAA,EAAU,gBAAA,EACZ,kBAAQ,QAAA,EACX;AAAA;AAAA,GAEJ;AAEJ,CAAA;AAEA,IAAO,gBAAA,GAAQ","file":"masthead.cjs","sourcesContent":["import React from 'react';\nimport './masthead.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport interface MastheadProps\n extends React.HTMLAttributes<HTMLElement> {\n logo?: React.ReactNode;\n}\n\nconst Masthead: React.FC<MastheadProps> = ({\n logo,\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames('masthead', className, {});\n\n return (\n <header\n className={classes}\n {...props}\n >\n {(logo || children) && (\n <div className=\"masthead__logo\">\n {logo || children}\n </div>\n )}\n </header>\n );\n};\n\nexport default Masthead;"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.masthead {
|
|
2
|
+
/* color */
|
|
3
|
+
/* color: var(--color-text);*/
|
|
4
|
+
|
|
5
|
+
/* typography */
|
|
6
|
+
|
|
7
|
+
/* size */
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
|
|
12
|
+
width: 100%;
|
|
13
|
+
|
|
14
|
+
padding-block: var(--margin-container-item) 0;
|
|
15
|
+
|
|
16
|
+
/* border */
|
|
17
|
+
|
|
18
|
+
/* depth */
|
|
19
|
+
|
|
20
|
+
/* motion */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.masthead__logo {
|
|
24
|
+
/* size */
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import './masthead.css';
|
|
3
|
+
import { classnames } from '../../components/helpers/classnames';
|
|
4
|
+
|
|
5
|
+
const Masthead = ({
|
|
6
|
+
logo,
|
|
7
|
+
className = "",
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
const classes = classnames("masthead", className, {});
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
"header",
|
|
14
|
+
{
|
|
15
|
+
className: classes,
|
|
16
|
+
...props,
|
|
17
|
+
children: (logo || children) && /* @__PURE__ */ jsx("div", { className: "masthead__logo", children: logo || children })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
var masthead_default = Masthead;
|
|
22
|
+
|
|
23
|
+
export { masthead_default as default };
|
|
24
|
+
//# sourceMappingURL=masthead.js.map
|
|
25
|
+
//# sourceMappingURL=masthead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/patterns/masthead/masthead.tsx"],"names":[],"mappings":";;;;AASA,MAAM,WAAoC,CAAC;AAAA,EACzC,IAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAU,UAAA,CAAW,UAAA,EAAY,SAAA,EAAW,EAAE,CAAA;AAEpD,EAAA,uBACE,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEF,mBAAQ,QAAA,qBACR,GAAA,CAAC,SAAI,SAAA,EAAU,gBAAA,EACZ,kBAAQ,QAAA,EACX;AAAA;AAAA,GAEJ;AAEJ,CAAA;AAEA,IAAO,gBAAA,GAAQ","file":"masthead.js","sourcesContent":["import React from 'react';\nimport './masthead.css';\nimport { classnames } from '../../components/helpers/classnames';\n\nexport interface MastheadProps\n extends React.HTMLAttributes<HTMLElement> {\n logo?: React.ReactNode;\n}\n\nconst Masthead: React.FC<MastheadProps> = ({\n logo,\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames('masthead', className, {});\n\n return (\n <header\n className={classes}\n {...props}\n >\n {(logo || children) && (\n <div className=\"masthead__logo\">\n {logo || children}\n </div>\n )}\n </header>\n );\n};\n\nexport default Masthead;"]}
|
package/styles.css
CHANGED
|
@@ -2480,6 +2480,27 @@
|
|
|
2480
2480
|
}
|
|
2481
2481
|
}
|
|
2482
2482
|
|
|
2483
|
+
/* src/patterns/form/form.css */
|
|
2484
|
+
.form {
|
|
2485
|
+
/* color */
|
|
2486
|
+
|
|
2487
|
+
/* typography */
|
|
2488
|
+
|
|
2489
|
+
/* size */
|
|
2490
|
+
--form-gap: var(--margin-form-field-vert);
|
|
2491
|
+
|
|
2492
|
+
display: flex;
|
|
2493
|
+
flex-direction: column;
|
|
2494
|
+
gap: var(--form-gap);
|
|
2495
|
+
width: 100%;
|
|
2496
|
+
|
|
2497
|
+
/* border */
|
|
2498
|
+
|
|
2499
|
+
/* depth */
|
|
2500
|
+
|
|
2501
|
+
/* motion */
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2483
2504
|
/* src/patterns/header/header.css */
|
|
2484
2505
|
.header {
|
|
2485
2506
|
/* color */
|
|
@@ -2563,6 +2584,36 @@
|
|
|
2563
2584
|
/* motion */
|
|
2564
2585
|
}
|
|
2565
2586
|
|
|
2587
|
+
/* src/patterns/masthead/masthead.css */
|
|
2588
|
+
.masthead {
|
|
2589
|
+
/* color */
|
|
2590
|
+
/* color: var(--color-text);*/
|
|
2591
|
+
|
|
2592
|
+
/* typography */
|
|
2593
|
+
|
|
2594
|
+
/* size */
|
|
2595
|
+
display: flex;
|
|
2596
|
+
align-items: center;
|
|
2597
|
+
justify-content: center;
|
|
2598
|
+
|
|
2599
|
+
width: 100%;
|
|
2600
|
+
|
|
2601
|
+
padding-block: var(--margin-container-item) 0;
|
|
2602
|
+
|
|
2603
|
+
/* border */
|
|
2604
|
+
|
|
2605
|
+
/* depth */
|
|
2606
|
+
|
|
2607
|
+
/* motion */
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
.masthead__logo {
|
|
2611
|
+
/* size */
|
|
2612
|
+
display: flex;
|
|
2613
|
+
align-items: center;
|
|
2614
|
+
justify-content: center;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2566
2617
|
/* src/patterns/screen-header/screen-header.css */
|
|
2567
2618
|
.screen-header {
|
|
2568
2619
|
/* color */
|
|
@@ -2693,6 +2744,31 @@
|
|
|
2693
2744
|
}
|
|
2694
2745
|
|
|
2695
2746
|
/* src/layouts/base/base.css */
|
|
2747
|
+
.layout-base {
|
|
2748
|
+
/* color */
|
|
2749
|
+
|
|
2750
|
+
/* typography */
|
|
2751
|
+
|
|
2752
|
+
/* size */
|
|
2753
|
+
display: flex;
|
|
2754
|
+
flex-direction: column;
|
|
2755
|
+
|
|
2756
|
+
width: 100%;
|
|
2757
|
+
min-height:
|
|
2758
|
+
calc(
|
|
2759
|
+
100dvh -
|
|
2760
|
+
(
|
|
2761
|
+
var(--layout-foundation-padding-vert) * 2
|
|
2762
|
+
)
|
|
2763
|
+
);
|
|
2764
|
+
|
|
2765
|
+
/* border */
|
|
2766
|
+
|
|
2767
|
+
/* depth */
|
|
2768
|
+
|
|
2769
|
+
/* motion */
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2696
2772
|
.layout-base__header {
|
|
2697
2773
|
/* color */
|
|
2698
2774
|
|
|
@@ -2714,7 +2790,19 @@
|
|
|
2714
2790
|
/* typography */
|
|
2715
2791
|
|
|
2716
2792
|
/* size */
|
|
2793
|
+
display: flex;
|
|
2794
|
+
flex: 1;
|
|
2795
|
+
justify-content: center;
|
|
2796
|
+
align-items: flex-start;
|
|
2797
|
+
|
|
2717
2798
|
width: 100%;
|
|
2799
|
+
min-width: 0;
|
|
2800
|
+
|
|
2801
|
+
padding:
|
|
2802
|
+
var(--layout-foundation-padding-vert)
|
|
2803
|
+
var(--layout-foundation-padding-horz);
|
|
2804
|
+
|
|
2805
|
+
box-sizing: border-box;
|
|
2718
2806
|
|
|
2719
2807
|
/* border */
|
|
2720
2808
|
|
|
@@ -2723,6 +2811,44 @@
|
|
|
2723
2811
|
/* motion */
|
|
2724
2812
|
}
|
|
2725
2813
|
|
|
2814
|
+
.layout-base__main--align-center {
|
|
2815
|
+
align-items: center;
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
.layout-base__main--align-end {
|
|
2819
|
+
align-items: flex-end;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
.layout-base__content {
|
|
2823
|
+
/* color */
|
|
2824
|
+
|
|
2825
|
+
/* typography */
|
|
2826
|
+
|
|
2827
|
+
/* size */
|
|
2828
|
+
--layout-base-content-width: 960px;
|
|
2829
|
+
|
|
2830
|
+
width: 100%;
|
|
2831
|
+
max-width: var(--layout-base-content-width);
|
|
2832
|
+
|
|
2833
|
+
/* border */
|
|
2834
|
+
|
|
2835
|
+
/* depth */
|
|
2836
|
+
|
|
2837
|
+
/* motion */
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
.layout-base__content--narrow {
|
|
2841
|
+
--layout-base-content-width: 720px;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
.layout-base__content--wide {
|
|
2845
|
+
--layout-base-content-width: 1200px;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
.layout-base__content--full {
|
|
2849
|
+
max-width: none;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2726
2852
|
.layout-base__footer {
|
|
2727
2853
|
/* color */
|
|
2728
2854
|
|
|
@@ -2752,6 +2878,9 @@
|
|
|
2752
2878
|
--layout-foundation-columns: 12;
|
|
2753
2879
|
--layout-foundation-gap: var(--size-grid-margin);
|
|
2754
2880
|
|
|
2881
|
+
display: flex;
|
|
2882
|
+
flex-direction: column;
|
|
2883
|
+
|
|
2755
2884
|
width: 100%;
|
|
2756
2885
|
min-height: 100dvh;
|
|
2757
2886
|
max-width: var(--layout-foundation-width);
|
|
@@ -2786,11 +2915,14 @@
|
|
|
2786
2915
|
display: grid;
|
|
2787
2916
|
grid-template-columns: repeat(var(--layout-foundation-columns), minmax(0, 1fr));
|
|
2788
2917
|
gap: var(--layout-foundation-gap);
|
|
2918
|
+
|
|
2789
2919
|
width: 100%;
|
|
2790
2920
|
min-height: 100dvh;
|
|
2921
|
+
|
|
2791
2922
|
padding:
|
|
2792
2923
|
var(--layout-foundation-padding-vert)
|
|
2793
2924
|
var(--layout-foundation-padding-horz);
|
|
2925
|
+
|
|
2794
2926
|
box-sizing: border-box;
|
|
2795
2927
|
|
|
2796
2928
|
/* border */
|