jvetrau-ds 0.2.42 → 0.2.44
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/components/breadcrumbs/breadcrumbs.cjs +3 -1
- package/components/breadcrumbs/breadcrumbs.cjs.map +1 -1
- package/components/breadcrumbs/breadcrumbs.css +25 -3
- package/components/breadcrumbs/breadcrumbs.js +3 -1
- package/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/components/breadcrumbs/index.cjs +10 -1
- package/components/breadcrumbs/index.d.ts +1 -1
- package/components/breadcrumbs/index.js +1 -1
- package/components/dropdown/dropdown.css +3 -3
- package/components/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/layouts/auth/auth.meta.d.ts +2 -0
- package/layouts/auth/index.cjs +10 -1
- package/layouts/auth/index.d.ts +2 -2
- package/layouts/auth/index.js +1 -1
- package/layouts/base/base.css +78 -1
- package/layouts/base/base.meta.d.ts +2 -0
- package/layouts/base/index.cjs +10 -1
- package/layouts/base/index.d.ts +2 -2
- package/layouts/base/index.js +1 -1
- package/layouts/foundation/foundation.css +66 -0
- package/layouts/foundation/foundation.meta.d.ts +2 -0
- package/layouts/foundation/index.cjs +10 -1
- package/layouts/foundation/index.d.ts +1 -1
- package/layouts/foundation/index.js +1 -1
- package/layouts/public.d.ts +7 -7
- package/layouts/sidebar/index.cjs +10 -1
- package/layouts/sidebar/index.d.ts +2 -2
- package/layouts/sidebar/index.js +1 -1
- package/layouts/sidebar/sidebar.css +12 -1
- package/layouts/sidebar/sidebar.meta.d.ts +2 -0
- package/package.json +1 -1
- package/styles.css +182 -6
- package/themes/base/desktop.css +2 -0
- package/themes/base/desktop.md +2 -0
- package/themes/base/desktop.scoped.css +2 -0
- package/themes/base/diagram.css +2 -0
- package/themes/base/diagram.md +2 -0
- package/themes/base/diagram.scoped.css +2 -0
- package/themes/base/mobile.css +2 -0
- package/themes/base/mobile.md +2 -0
- package/themes/base/mobile.scoped.css +2 -0
- package/themes/brandcopilot/desktop.css +2 -0
- package/themes/brandcopilot/desktop.md +2 -0
- package/themes/brandcopilot/desktop.scoped.css +2 -0
- package/themes/brandcopilot/diagram.css +2 -0
- package/themes/brandcopilot/diagram.md +2 -0
- package/themes/brandcopilot/diagram.scoped.css +2 -0
- package/themes/brandcopilot/mobile.css +2 -0
- package/themes/brandcopilot/mobile.md +2 -0
- package/themes/brandcopilot/mobile.scoped.css +2 -0
- package/themes/dmpatterns/desktop.css +2 -0
- package/themes/dmpatterns/desktop.md +2 -0
- package/themes/dmpatterns/desktop.scoped.css +2 -0
- package/themes/dmpatterns/diagram.css +2 -0
- package/themes/dmpatterns/diagram.md +2 -0
- package/themes/dmpatterns/diagram.scoped.css +2 -0
- package/themes/dmpatterns/mobile.css +2 -0
- package/themes/dmpatterns/mobile.md +2 -0
- package/themes/dmpatterns/mobile.scoped.css +2 -0
- package/themes/pdigest/desktop.css +2 -0
- package/themes/pdigest/desktop.md +2 -0
- package/themes/pdigest/desktop.scoped.css +2 -0
- package/themes/pdigest/diagram.css +2 -0
- package/themes/pdigest/diagram.md +2 -0
- package/themes/pdigest/diagram.scoped.css +2 -0
- package/themes/pdigest/mobile.css +2 -0
- package/themes/pdigest/mobile.md +2 -0
- package/themes/pdigest/mobile.scoped.css +2 -0
- package/themes/retrack/desktop.css +2 -0
- package/themes/retrack/desktop.md +2 -0
- package/themes/retrack/desktop.scoped.css +2 -0
- package/themes/retrack/diagram.css +2 -0
- package/themes/retrack/diagram.md +2 -0
- package/themes/retrack/diagram.scoped.css +2 -0
- package/themes/retrack/mobile.css +2 -0
- package/themes/retrack/mobile.md +2 -0
- package/themes/retrack/mobile.scoped.css +2 -0
- package/tokens/runtime/tokens.base.desktop.runtime.cjs +2 -0
- package/tokens/runtime/tokens.base.desktop.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.base.desktop.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.base.desktop.runtime.js +2 -0
- package/tokens/runtime/tokens.base.desktop.runtime.js.map +1 -1
- package/tokens/runtime/tokens.base.diagram.runtime.cjs +2 -0
- package/tokens/runtime/tokens.base.diagram.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.base.diagram.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.base.diagram.runtime.js +2 -0
- package/tokens/runtime/tokens.base.diagram.runtime.js.map +1 -1
- package/tokens/runtime/tokens.base.mobile.runtime.cjs +2 -0
- package/tokens/runtime/tokens.base.mobile.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.base.mobile.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.base.mobile.runtime.js +2 -0
- package/tokens/runtime/tokens.base.mobile.runtime.js.map +1 -1
- package/tokens/runtime/tokens.brandcopilot.desktop.runtime.cjs +2 -0
- package/tokens/runtime/tokens.brandcopilot.desktop.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.brandcopilot.desktop.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.brandcopilot.desktop.runtime.js +2 -0
- package/tokens/runtime/tokens.brandcopilot.desktop.runtime.js.map +1 -1
- package/tokens/runtime/tokens.brandcopilot.diagram.runtime.cjs +2 -0
- package/tokens/runtime/tokens.brandcopilot.diagram.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.brandcopilot.diagram.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.brandcopilot.diagram.runtime.js +2 -0
- package/tokens/runtime/tokens.brandcopilot.diagram.runtime.js.map +1 -1
- package/tokens/runtime/tokens.brandcopilot.mobile.runtime.cjs +2 -0
- package/tokens/runtime/tokens.brandcopilot.mobile.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.brandcopilot.mobile.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.brandcopilot.mobile.runtime.js +2 -0
- package/tokens/runtime/tokens.brandcopilot.mobile.runtime.js.map +1 -1
- package/tokens/runtime/tokens.dmpatterns.desktop.runtime.cjs +2 -0
- package/tokens/runtime/tokens.dmpatterns.desktop.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.dmpatterns.desktop.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.dmpatterns.desktop.runtime.js +2 -0
- package/tokens/runtime/tokens.dmpatterns.desktop.runtime.js.map +1 -1
- package/tokens/runtime/tokens.dmpatterns.diagram.runtime.cjs +2 -0
- package/tokens/runtime/tokens.dmpatterns.diagram.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.dmpatterns.diagram.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.dmpatterns.diagram.runtime.js +2 -0
- package/tokens/runtime/tokens.dmpatterns.diagram.runtime.js.map +1 -1
- package/tokens/runtime/tokens.dmpatterns.mobile.runtime.cjs +2 -0
- package/tokens/runtime/tokens.dmpatterns.mobile.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.dmpatterns.mobile.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.dmpatterns.mobile.runtime.js +2 -0
- package/tokens/runtime/tokens.dmpatterns.mobile.runtime.js.map +1 -1
- package/tokens/runtime/tokens.pdigest.desktop.runtime.cjs +2 -0
- package/tokens/runtime/tokens.pdigest.desktop.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.pdigest.desktop.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.pdigest.desktop.runtime.js +2 -0
- package/tokens/runtime/tokens.pdigest.desktop.runtime.js.map +1 -1
- package/tokens/runtime/tokens.pdigest.diagram.runtime.cjs +2 -0
- package/tokens/runtime/tokens.pdigest.diagram.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.pdigest.diagram.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.pdigest.diagram.runtime.js +2 -0
- package/tokens/runtime/tokens.pdigest.diagram.runtime.js.map +1 -1
- package/tokens/runtime/tokens.pdigest.mobile.runtime.cjs +2 -0
- package/tokens/runtime/tokens.pdigest.mobile.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.pdigest.mobile.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.pdigest.mobile.runtime.js +2 -0
- package/tokens/runtime/tokens.pdigest.mobile.runtime.js.map +1 -1
- package/tokens/runtime/tokens.retrack.desktop.runtime.cjs +2 -0
- package/tokens/runtime/tokens.retrack.desktop.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.retrack.desktop.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.retrack.desktop.runtime.js +2 -0
- package/tokens/runtime/tokens.retrack.desktop.runtime.js.map +1 -1
- package/tokens/runtime/tokens.retrack.diagram.runtime.cjs +2 -0
- package/tokens/runtime/tokens.retrack.diagram.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.retrack.diagram.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.retrack.diagram.runtime.js +2 -0
- package/tokens/runtime/tokens.retrack.diagram.runtime.js.map +1 -1
- package/tokens/runtime/tokens.retrack.mobile.runtime.cjs +2 -0
- package/tokens/runtime/tokens.retrack.mobile.runtime.cjs.map +1 -1
- package/tokens/runtime/tokens.retrack.mobile.runtime.d.ts +2 -0
- package/tokens/runtime/tokens.retrack.mobile.runtime.js +2 -0
- package/tokens/runtime/tokens.retrack.mobile.runtime.js.map +1 -1
- package/tokens/themes/base/dist/desktop.json +16 -0
- package/tokens/themes/base/dist/diagram.json +16 -0
- package/tokens/themes/base/dist/mobile.json +16 -0
- package/tokens/themes/brandcopilot/dist/desktop.json +16 -0
- package/tokens/themes/brandcopilot/dist/diagram.json +16 -0
- package/tokens/themes/brandcopilot/dist/mobile.json +16 -0
- package/tokens/themes/dmpatterns/dist/desktop.json +16 -0
- package/tokens/themes/dmpatterns/dist/diagram.json +16 -0
- package/tokens/themes/dmpatterns/dist/mobile.json +16 -0
- package/tokens/themes/pdigest/dist/desktop.json +16 -0
- package/tokens/themes/pdigest/dist/diagram.json +16 -0
- package/tokens/themes/pdigest/dist/mobile.json +16 -0
- package/tokens/themes/retrack/dist/desktop.json +16 -0
- package/tokens/themes/retrack/dist/diagram.json +16 -0
- package/tokens/themes/retrack/dist/mobile.json +16 -0
|
@@ -32,7 +32,9 @@ const Breadcrumbs = ({
|
|
|
32
32
|
{
|
|
33
33
|
className: "breadcrumbs__icon",
|
|
34
34
|
name: "chevron-left",
|
|
35
|
-
|
|
35
|
+
size: "compact",
|
|
36
|
+
"aria-hidden": true,
|
|
37
|
+
focusable: false
|
|
36
38
|
}
|
|
37
39
|
),
|
|
38
40
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "breadcrumbs__label", children: item.label })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/breadcrumbs/breadcrumbs.tsx"],"names":["classnames","jsxs","Fragment","jsx","Icon"],"mappings":";;;;;;;;;;;AAkBA,MAAM,cAA0C,CAAC;AAAA,EAC/C,YAAA,GAAe,UAAA;AAAA,EACf,KAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAUA,qBAAA,CAAW,aAAA,EAAe,SAAA,EAAW;AAAA,IACnD,yBAAyB,YAAA,KAAiB,UAAA;AAAA,IAC1C,qBAAqB,YAAA,KAAiB;AAAA,GACvC,CAAA;AAED,EAAA,IAAI,iBAAiB,MAAA,EAAQ;AAC3B,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAM,IAAA,GAAO,MAAM,CAAC,CAAA;AAEpB,EAAA,IAAI,CAAC,IAAA,EAAM;AACT,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAM,0BACJC,eAAA,CAAAC,mBAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAAC,cAAA;AAAA,MAACC,qBAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAU,mBAAA;AAAA,QACV,IAAA,EAAK,cAAA;AAAA,QACL,aAAA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/breadcrumbs/breadcrumbs.tsx"],"names":["classnames","jsxs","Fragment","jsx","Icon"],"mappings":";;;;;;;;;;;AAkBA,MAAM,cAA0C,CAAC;AA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EJ;AAEJ,CAAA;AAEA,IAAO,mBAAA,GAAQ","file":"breadcrumbs.cjs","sourcesContent":["import React from 'react';\nimport './breadcrumbs.css';\nimport { classnames } from '../helpers/classnames';\nimport Icon from '../../icons/icon';\n\nexport type BreadcrumbsPresentation = 'backlink' | 'path';\n\nexport interface BreadcrumbItem {\n label: React.ReactNode;\n renderLink?: (children: React.ReactNode) => React.ReactNode;\n}\n\nexport interface BreadcrumbsProps\n extends React.HTMLAttributes<HTMLElement> {\n presentation?: BreadcrumbsPresentation;\n items: BreadcrumbItem[];\n}\n\nconst Breadcrumbs: React.FC<BreadcrumbsProps> = ({\n presentation = 'backlink',\n items,\n className = '',\n ...props\n}) => {\n const classes = classnames('breadcrumbs', className, {\n 'breadcrumbs--backlink': presentation === 'backlink',\n 'breadcrumbs--path': presentation === 'path',\n });\n\n if (presentation === 'path') {\n return null;\n }\n\n const item = items[0];\n\n if (!item) {\n return null;\n }\n\n const content = (\n <>\n <Icon\n className=\"breadcrumbs__icon\"\n name=\"chevron-left\"\n size=\"compact\"\n aria-hidden\n focusable={false}\n />\n\n <span className=\"breadcrumbs__label\">\n {item.label}\n </span>\n </>\n );\n\n return (\n <nav\n className={classes}\n aria-label=\"Breadcrumb\"\n {...props}\n >\n {item.renderLink ? (\n <span className=\"breadcrumbs__link\">\n {item.renderLink(content)}\n </span>\n ) : (\n <span className=\"breadcrumbs__current\">\n {content}\n </span>\n )}\n </nav>\n );\n};\n\nexport default Breadcrumbs;\n"]}
|
|
@@ -26,14 +26,16 @@
|
|
|
26
26
|
|
|
27
27
|
.breadcrumbs__link,
|
|
28
28
|
.breadcrumbs__current {
|
|
29
|
+
/* color */
|
|
30
|
+
color: inherit;
|
|
31
|
+
|
|
32
|
+
/* typography */
|
|
33
|
+
|
|
29
34
|
/* size */
|
|
30
35
|
display: inline-flex;
|
|
31
36
|
align-items: center;
|
|
32
37
|
gap: var(--margin-icon);
|
|
33
38
|
|
|
34
|
-
/* color */
|
|
35
|
-
color: inherit;
|
|
36
|
-
|
|
37
39
|
/* border */
|
|
38
40
|
|
|
39
41
|
/* depth */
|
|
@@ -47,11 +49,31 @@
|
|
|
47
49
|
color: inherit;
|
|
48
50
|
|
|
49
51
|
/* typography */
|
|
52
|
+
|
|
53
|
+
/* size */
|
|
54
|
+
|
|
55
|
+
/* border */
|
|
56
|
+
|
|
57
|
+
/* depth */
|
|
58
|
+
|
|
59
|
+
/* motion */
|
|
50
60
|
}
|
|
51
61
|
|
|
52
62
|
.breadcrumbs__icon {
|
|
63
|
+
/* color */
|
|
64
|
+
|
|
65
|
+
/* typography */
|
|
66
|
+
|
|
53
67
|
/* size */
|
|
54
68
|
flex-shrink: 0;
|
|
69
|
+
translate: 0 -0.0305em;
|
|
70
|
+
translate: 0 -0.08em;
|
|
71
|
+
|
|
72
|
+
/* border */
|
|
73
|
+
|
|
74
|
+
/* depth */
|
|
75
|
+
|
|
76
|
+
/* motion */
|
|
55
77
|
}
|
|
56
78
|
|
|
57
79
|
.breadcrumbs__label {
|
|
@@ -26,7 +26,9 @@ const Breadcrumbs = ({
|
|
|
26
26
|
{
|
|
27
27
|
className: "breadcrumbs__icon",
|
|
28
28
|
name: "chevron-left",
|
|
29
|
-
|
|
29
|
+
size: "compact",
|
|
30
|
+
"aria-hidden": true,
|
|
31
|
+
focusable: false
|
|
30
32
|
}
|
|
31
33
|
),
|
|
32
34
|
/* @__PURE__ */ jsx("span", { className: "breadcrumbs__label", children: item.label })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/breadcrumbs/breadcrumbs.tsx"],"names":[],"mappings":";;;;;AAkBA,MAAM,cAA0C,CAAC;AAAA,EAC/C,YAAA,GAAe,UAAA;AAAA,EACf,KAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAU,UAAA,CAAW,aAAA,EAAe,SAAA,EAAW;AAAA,IACnD,yBAAyB,YAAA,KA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aAAA,EAAW,IAAA;AAAA,QACX,SAAA,EAAW;AAAA;AAAA,KACb;AAAA,oBAEA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,oBAAA,EACb,eAAK,KAAA,EACR;AAAA,GAAA,EACF,CAAA;AAGF,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACX,YAAA,EAAW,YAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEH,QAAA,EAAA,IAAA,CAAK,UAAA,mBACJ,GAAA,CAAC,MAAA,EAAA,EAAK,WAAU,mBAAA,EACb,QAAA,EAAA,IAAA,CAAK,UAAA,CAAW,OAAO,GAC1B,CAAA,mBAEA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,wBACb,QAAA,EAAA,OAAA,EACH;AAAA;AAAA,GAEJ;AAEJ,CAAA;AAEA,IAAO,mBAAA,GAAQ","file":"breadcrumbs.js","sourcesContent":["import React from 'react';\nimport './breadcrumbs.css';\nimport { classnames } from '../helpers/classnames';\nimport Icon from '../../icons/icon';\n\nexport type BreadcrumbsPresentation = 'backlink' | 'path';\n\nexport interface BreadcrumbItem {\n label: React.ReactNode;\n renderLink?: (children: React.ReactNode) => React.ReactNode;\n}\n\nexport interface BreadcrumbsProps\n extends React.HTMLAttributes<HTMLElement> {\n presentation?: BreadcrumbsPresentation;\n items: BreadcrumbItem[];\n}\n\nconst Breadcrumbs: React.FC<BreadcrumbsProps> = ({\n presentation = 'backlink',\n items,\n className = '',\n ...props\n}) => {\n const classes = classnames('breadcrumbs', className, {\n 'breadcrumbs--backlink': presentation === 'backlink',\n 'breadcrumbs--path': presentation === 'path',\n });\n\n if (presentation === 'path') {\n return null;\n }\n\n const item = items[0];\n\n if (!item) {\n return null;\n }\n\n const content = (\n <>\n <Icon\n className=\"breadcrumbs__icon\"\n name=\"chevron-left\"\n size=\"compact\"\n aria-hidden\n focusable={false}\n />\n\n <span className=\"breadcrumbs__label\">\n {item.label}\n </span>\n </>\n );\n\n return (\n <nav\n className={classes}\n aria-label=\"Breadcrumb\"\n {...props}\n >\n {item.renderLink ? (\n <span className=\"breadcrumbs__link\">\n {item.renderLink(content)}\n </span>\n ) : (\n <span className=\"breadcrumbs__current\">\n {content}\n </span>\n )}\n </nav>\n );\n};\n\nexport default Breadcrumbs;\n"]}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var breadcrumbs = require('./breadcrumbs');
|
|
4
6
|
|
|
5
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8,6 +10,13 @@ var breadcrumbs__default = /*#__PURE__*/_interopDefault(breadcrumbs);
|
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Object.defineProperty(exports, "Breadcrumbs", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return breadcrumbs__default.default; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "default", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return breadcrumbs__default.default; }
|
|
20
|
+
});
|
|
12
21
|
//# sourceMappingURL=index.cjs.map
|
|
13
22
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './breadcrumbs';
|
|
1
|
+
export { default, default as Breadcrumbs, } from './breadcrumbs';
|
|
2
2
|
export type { BreadcrumbItem, BreadcrumbsPresentation, BreadcrumbsProps, } from './breadcrumbs';
|
|
@@ -197,9 +197,9 @@
|
|
|
197
197
|
/* color */
|
|
198
198
|
--dropdown-item-bg: transparent;
|
|
199
199
|
--dropdown-item-color: inherit;
|
|
200
|
-
--dropdown-item-bg-hover: var(--color-
|
|
201
|
-
--dropdown-item-bg-selected: var(--color-primary-
|
|
202
|
-
--dropdown-item-color-selected: var(--color-text-primary-
|
|
200
|
+
--dropdown-item-bg-hover: var(--color-primary-1-hover);
|
|
201
|
+
--dropdown-item-bg-selected: var(--color-primary-1);
|
|
202
|
+
--dropdown-item-color-selected: var(--color-text-primary-1);
|
|
203
203
|
--dropdown-item-color-disabled: var(--color-text-note);
|
|
204
204
|
|
|
205
205
|
background: var(--dropdown-item-bg);
|
package/components/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type { ActionGroupProps } from './action-group/action-group';
|
|
|
48
48
|
export { default as CardGroup } from './card-group/card-group';
|
|
49
49
|
export type { CardGroupProps } from './card-group/card-group';
|
|
50
50
|
export { default as Breadcrumbs } from './breadcrumbs/breadcrumbs';
|
|
51
|
-
export type { BreadcrumbsProps } from './breadcrumbs/breadcrumbs';
|
|
51
|
+
export type { BreadcrumbItem, BreadcrumbsPresentation, BreadcrumbsProps, } from './breadcrumbs/breadcrumbs';
|
|
52
52
|
export { default as Markdown } from './markdown/markdown';
|
|
53
53
|
export type { MarkdownEmbed, MarkdownProps, } from './markdown/markdown';
|
|
54
54
|
export { default as Discussion } from './discussion/discussion';
|
package/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export type { ActionGroupProps } from './components/action-group';
|
|
|
56
56
|
export { default as CardGroup } from './components/card-group';
|
|
57
57
|
export type { CardGroupProps } from './components/card-group';
|
|
58
58
|
export { default as Breadcrumbs } from './components/breadcrumbs';
|
|
59
|
-
export type { BreadcrumbsProps } from './components/breadcrumbs';
|
|
59
|
+
export type { BreadcrumbItem, BreadcrumbsPresentation, BreadcrumbsProps, } from './components/breadcrumbs';
|
|
60
60
|
export { default as Markdown } from './components/markdown';
|
|
61
61
|
export type { MarkdownEmbed, MarkdownProps, } from './components/markdown';
|
|
62
62
|
export { default as Discussion } from './components/discussion';
|
package/layouts/auth/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var auth = require('./auth');
|
|
4
6
|
|
|
5
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8,6 +10,13 @@ var auth__default = /*#__PURE__*/_interopDefault(auth);
|
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Object.defineProperty(exports, "LayoutAuth", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return auth__default.default; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "default", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return auth__default.default; }
|
|
20
|
+
});
|
|
12
21
|
//# sourceMappingURL=index.cjs.map
|
|
13
22
|
//# sourceMappingURL=index.cjs.map
|
package/layouts/auth/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './auth';
|
|
2
|
-
export type { LayoutAuthProps } from './auth';
|
|
1
|
+
export { default, default as LayoutAuth, } from './auth';
|
|
2
|
+
export type { LayoutAuthProps, } from './auth';
|
package/layouts/auth/index.js
CHANGED
package/layouts/base/base.css
CHANGED
|
@@ -40,11 +40,33 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.layout-base__header--align-center {
|
|
43
|
+
/* color */
|
|
44
|
+
|
|
45
|
+
/* typography */
|
|
46
|
+
|
|
47
|
+
/* size */
|
|
43
48
|
align-items: center;
|
|
49
|
+
|
|
50
|
+
/* border */
|
|
51
|
+
|
|
52
|
+
/* depth */
|
|
53
|
+
|
|
54
|
+
/* motion */
|
|
44
55
|
}
|
|
45
56
|
|
|
46
57
|
.layout-base__header--align-end {
|
|
58
|
+
/* color */
|
|
59
|
+
|
|
60
|
+
/* typography */
|
|
61
|
+
|
|
62
|
+
/* size */
|
|
47
63
|
align-items: flex-end;
|
|
64
|
+
|
|
65
|
+
/* border */
|
|
66
|
+
|
|
67
|
+
/* depth */
|
|
68
|
+
|
|
69
|
+
/* motion */
|
|
48
70
|
}
|
|
49
71
|
|
|
50
72
|
.layout-base__main {
|
|
@@ -70,11 +92,33 @@
|
|
|
70
92
|
}
|
|
71
93
|
|
|
72
94
|
.layout-base__main--align-center {
|
|
95
|
+
/* color */
|
|
96
|
+
|
|
97
|
+
/* typography */
|
|
98
|
+
|
|
99
|
+
/* size */
|
|
73
100
|
align-items: center;
|
|
101
|
+
|
|
102
|
+
/* border */
|
|
103
|
+
|
|
104
|
+
/* depth */
|
|
105
|
+
|
|
106
|
+
/* motion */
|
|
74
107
|
}
|
|
75
108
|
|
|
76
109
|
.layout-base__main--align-end {
|
|
110
|
+
/* color */
|
|
111
|
+
|
|
112
|
+
/* typography */
|
|
113
|
+
|
|
114
|
+
/* size */
|
|
77
115
|
align-items: flex-end;
|
|
116
|
+
|
|
117
|
+
/* border */
|
|
118
|
+
|
|
119
|
+
/* depth */
|
|
120
|
+
|
|
121
|
+
/* motion */
|
|
78
122
|
}
|
|
79
123
|
|
|
80
124
|
.layout-base__content {
|
|
@@ -112,15 +156,48 @@
|
|
|
112
156
|
}
|
|
113
157
|
|
|
114
158
|
.layout-base__content--narrow {
|
|
159
|
+
/* color */
|
|
160
|
+
|
|
161
|
+
/* typography */
|
|
162
|
+
|
|
163
|
+
/* size */
|
|
115
164
|
--layout-base-content-width: 720px;
|
|
165
|
+
|
|
166
|
+
/* border */
|
|
167
|
+
|
|
168
|
+
/* depth */
|
|
169
|
+
|
|
170
|
+
/* motion */
|
|
116
171
|
}
|
|
117
172
|
|
|
118
173
|
.layout-base__content--wide {
|
|
174
|
+
/* color */
|
|
175
|
+
|
|
176
|
+
/* typography */
|
|
177
|
+
|
|
178
|
+
/* size */
|
|
119
179
|
--layout-base-content-width: 1200px;
|
|
180
|
+
|
|
181
|
+
/* border */
|
|
182
|
+
|
|
183
|
+
/* depth */
|
|
184
|
+
|
|
185
|
+
/* motion */
|
|
120
186
|
}
|
|
121
187
|
|
|
122
188
|
.layout-base__content--full {
|
|
189
|
+
/* color */
|
|
190
|
+
|
|
191
|
+
/* typography */
|
|
192
|
+
|
|
193
|
+
/* size */
|
|
123
194
|
max-width: none;
|
|
195
|
+
|
|
196
|
+
/* border */
|
|
197
|
+
|
|
198
|
+
/* depth */
|
|
199
|
+
|
|
200
|
+
/* motion */
|
|
124
201
|
}
|
|
125
202
|
|
|
126
203
|
.layout-base__content--align-center {
|
|
@@ -153,4 +230,4 @@
|
|
|
153
230
|
/* depth */
|
|
154
231
|
|
|
155
232
|
/* motion */
|
|
156
|
-
}
|
|
233
|
+
}
|
package/layouts/base/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var base = require('./base');
|
|
4
6
|
|
|
5
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8,6 +10,13 @@ var base__default = /*#__PURE__*/_interopDefault(base);
|
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Object.defineProperty(exports, "LayoutBase", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return base__default.default; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "default", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return base__default.default; }
|
|
20
|
+
});
|
|
12
21
|
//# sourceMappingURL=index.cjs.map
|
|
13
22
|
//# sourceMappingURL=index.cjs.map
|
package/layouts/base/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './base';
|
|
2
|
-
export type { LayoutBaseHeaderAlign, LayoutBaseMainAlign, LayoutBaseProps, } from './base';
|
|
1
|
+
export { default, default as LayoutBase, } from './base';
|
|
2
|
+
export type { LayoutBaseContentAlign, LayoutBaseHeaderAlign, LayoutBaseMainAlign, LayoutBaseProps, } from './base';
|
package/layouts/base/index.js
CHANGED
|
@@ -28,15 +28,48 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.layout-foundation--narrow {
|
|
31
|
+
/* color */
|
|
32
|
+
|
|
33
|
+
/* typography */
|
|
34
|
+
|
|
35
|
+
/* size */
|
|
31
36
|
--layout-foundation-width: 720px;
|
|
37
|
+
|
|
38
|
+
/* border */
|
|
39
|
+
|
|
40
|
+
/* depth */
|
|
41
|
+
|
|
42
|
+
/* motion */
|
|
32
43
|
}
|
|
33
44
|
|
|
34
45
|
.layout-foundation--wide {
|
|
46
|
+
/* color */
|
|
47
|
+
|
|
48
|
+
/* typography */
|
|
49
|
+
|
|
50
|
+
/* size */
|
|
35
51
|
--layout-foundation-width: 1200px;
|
|
52
|
+
|
|
53
|
+
/* border */
|
|
54
|
+
|
|
55
|
+
/* depth */
|
|
56
|
+
|
|
57
|
+
/* motion */
|
|
36
58
|
}
|
|
37
59
|
|
|
38
60
|
.layout-foundation--full {
|
|
61
|
+
/* color */
|
|
62
|
+
|
|
63
|
+
/* typography */
|
|
64
|
+
|
|
65
|
+
/* size */
|
|
39
66
|
max-width: none;
|
|
67
|
+
|
|
68
|
+
/* border */
|
|
69
|
+
|
|
70
|
+
/* depth */
|
|
71
|
+
|
|
72
|
+
/* motion */
|
|
40
73
|
}
|
|
41
74
|
|
|
42
75
|
.layout-foundation__grid {
|
|
@@ -66,17 +99,50 @@
|
|
|
66
99
|
}
|
|
67
100
|
|
|
68
101
|
.layout-foundation__grid > * {
|
|
102
|
+
/* color */
|
|
103
|
+
|
|
104
|
+
/* typography */
|
|
105
|
+
|
|
106
|
+
/* size */
|
|
69
107
|
grid-column: 1 / -1;
|
|
108
|
+
|
|
109
|
+
/* border */
|
|
110
|
+
|
|
111
|
+
/* depth */
|
|
112
|
+
|
|
113
|
+
/* motion */
|
|
70
114
|
}
|
|
71
115
|
|
|
72
116
|
@media (max-width: 1024px) {
|
|
73
117
|
.layout-foundation {
|
|
118
|
+
/* color */
|
|
119
|
+
|
|
120
|
+
/* typography */
|
|
121
|
+
|
|
122
|
+
/* size */
|
|
74
123
|
--layout-foundation-columns: 8;
|
|
124
|
+
|
|
125
|
+
/* border */
|
|
126
|
+
|
|
127
|
+
/* depth */
|
|
128
|
+
|
|
129
|
+
/* motion */
|
|
75
130
|
}
|
|
76
131
|
}
|
|
77
132
|
|
|
78
133
|
@media (max-width: 640px) {
|
|
79
134
|
.layout-foundation {
|
|
135
|
+
/* color */
|
|
136
|
+
|
|
137
|
+
/* typography */
|
|
138
|
+
|
|
139
|
+
/* size */
|
|
80
140
|
--layout-foundation-columns: 4;
|
|
141
|
+
|
|
142
|
+
/* border */
|
|
143
|
+
|
|
144
|
+
/* depth */
|
|
145
|
+
|
|
146
|
+
/* motion */
|
|
81
147
|
}
|
|
82
148
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var foundation = require('./foundation');
|
|
4
6
|
|
|
5
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8,6 +10,13 @@ var foundation__default = /*#__PURE__*/_interopDefault(foundation);
|
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Object.defineProperty(exports, "LayoutFoundation", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return foundation__default.default; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "default", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return foundation__default.default; }
|
|
20
|
+
});
|
|
12
21
|
//# sourceMappingURL=index.cjs.map
|
|
13
22
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './foundation';
|
|
1
|
+
export { default, default as LayoutFoundation, } from './foundation';
|
|
2
2
|
export type { LayoutFoundationProps, LayoutFoundationWidth, } from './foundation';
|
package/layouts/public.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as LayoutFoundation } from './foundation';
|
|
1
|
+
export { default as LayoutFoundation, } from './foundation';
|
|
2
2
|
export type { LayoutFoundationProps, LayoutFoundationWidth, } from './foundation';
|
|
3
|
-
export { default as LayoutBase } from './base';
|
|
4
|
-
export type { LayoutBaseProps } from './base';
|
|
5
|
-
export { default as LayoutSidebar } from './sidebar';
|
|
6
|
-
export type { LayoutSidebarProps } from './sidebar';
|
|
7
|
-
export { default as LayoutAuth } from './auth';
|
|
8
|
-
export type { LayoutAuthProps } from './auth';
|
|
3
|
+
export { default as LayoutBase, } from './base';
|
|
4
|
+
export type { LayoutBaseContentAlign, LayoutBaseHeaderAlign, LayoutBaseMainAlign, LayoutBaseProps, } from './base';
|
|
5
|
+
export { default as LayoutSidebar, } from './sidebar';
|
|
6
|
+
export type { LayoutSidebarContentAlign, LayoutSidebarProps, } from './sidebar';
|
|
7
|
+
export { default as LayoutAuth, } from './auth';
|
|
8
|
+
export type { LayoutAuthProps, } from './auth';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var sidebar = require('./sidebar');
|
|
4
6
|
|
|
5
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8,6 +10,13 @@ var sidebar__default = /*#__PURE__*/_interopDefault(sidebar);
|
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Object.defineProperty(exports, "LayoutSidebar", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return sidebar__default.default; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "default", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return sidebar__default.default; }
|
|
20
|
+
});
|
|
12
21
|
//# sourceMappingURL=index.cjs.map
|
|
13
22
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './sidebar';
|
|
2
|
-
export type { LayoutSidebarProps } from './sidebar';
|
|
1
|
+
export { default, default as LayoutSidebar, } from './sidebar';
|
|
2
|
+
export type { LayoutSidebarContentAlign, LayoutSidebarProps, } from './sidebar';
|
package/layouts/sidebar/index.js
CHANGED
|
@@ -113,6 +113,17 @@
|
|
|
113
113
|
@media (max-width: 1024px) {
|
|
114
114
|
.layout-sidebar__main,
|
|
115
115
|
.layout-sidebar__side {
|
|
116
|
+
/* color */
|
|
117
|
+
|
|
118
|
+
/* typography */
|
|
119
|
+
|
|
120
|
+
/* size */
|
|
116
121
|
grid-column: 1 / -1;
|
|
122
|
+
|
|
123
|
+
/* border */
|
|
124
|
+
|
|
125
|
+
/* depth */
|
|
126
|
+
|
|
127
|
+
/* motion */
|
|
117
128
|
}
|
|
118
|
-
}
|
|
129
|
+
}
|