@md-code/components 0.0.0-stage → 0.0.1
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/CHANGELOG.md +12 -0
- package/README.md +11 -2
- package/dist/CentralModal-ButM9Ggi.js +159 -0
- package/dist/assets/favicon.ico +0 -0
- package/dist/assets/logo.png +0 -0
- package/dist/atoms/Loading/ouroboros.svg +41 -0
- package/dist/atoms/Logo/logo.jpg +0 -0
- package/dist/avatar.js +8 -0
- package/dist/badge.js +25 -0
- package/dist/breadcrumbs.js +60 -0
- package/dist/button.js +188 -0
- package/dist/calendar.js +100 -0
- package/dist/card.js +81 -0
- package/dist/carousel.js +110 -0
- package/dist/central-modal.js +1 -0
- package/dist/circle-image.js +22 -0
- package/dist/code-preview.js +38 -0
- package/dist/code-view.js +96 -0
- package/dist/conditional-wrapper.js +5 -0
- package/dist/containers.js +115 -0
- package/dist/dist-DD9Lv2Ja.js +130 -0
- package/dist/div-input.js +101 -0
- package/dist/form-label.js +19 -0
- package/dist/form.js +17 -0
- package/dist/full-screen-modal.js +1 -0
- package/dist/header.js +19 -0
- package/dist/html-editor.js +74 -0
- package/dist/icons.js +44 -0
- package/dist/input.js +62 -0
- package/dist/link.js +35 -0
- package/dist/loading.js +87 -0
- package/dist/logo.js +12 -0
- package/dist/modals.js +1 -0
- package/dist/molecules/Carousel/arrow.svg +5 -0
- package/dist/molecules/Select/arrow_down.svg +3 -0
- package/dist/pagination.js +119 -0
- package/dist/progress-bar.js +26 -0
- package/dist/radio.js +72 -0
- package/dist/report-ui.js +280 -0
- package/dist/search-input.js +78 -0
- package/dist/select.js +161 -0
- package/dist/separator.js +10 -0
- package/dist/status-label.js +59 -0
- package/dist/submit.js +57 -0
- package/dist/switch.js +98 -0
- package/dist/table.js +108 -0
- package/dist/tabs.js +155 -0
- package/dist/text-checkbox.js +64 -0
- package/dist/textarea.js +56 -0
- package/dist/textures/Cloud/clouds.svg +52 -0
- package/dist/textures.js +170 -0
- package/dist/themes-zS3KQYdw-DIqyzjFD.js +184 -0
- package/dist/toasts.js +79 -0
- package/dist/toggle.js +66 -0
- package/dist/token-input-field.js +56 -0
- package/dist/tooltip.js +93 -0
- package/dist/types/atoms/Avatar/index.d.ts +6 -0
- package/dist/types/atoms/Avatar/index.d.ts.map +1 -0
- package/dist/types/atoms/Breadcrumbs/index.d.ts +10 -0
- package/dist/types/atoms/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/types/atoms/Breadcrumbs/styles.d.ts +95 -0
- package/dist/types/atoms/Breadcrumbs/styles.d.ts.map +1 -0
- package/dist/types/atoms/Calendar/index.d.ts +4 -0
- package/dist/types/atoms/Calendar/index.d.ts.map +1 -0
- package/dist/types/atoms/Calendar/styles.d.ts +12 -0
- package/dist/types/atoms/Calendar/styles.d.ts.map +1 -0
- package/dist/types/atoms/CentralModal/index.d.ts +3 -0
- package/dist/types/atoms/CentralModal/index.d.ts.map +1 -0
- package/dist/types/atoms/CircleImage/index.d.ts +13 -0
- package/dist/types/atoms/CircleImage/index.d.ts.map +1 -0
- package/dist/types/atoms/CodePreview/index.d.ts +23 -0
- package/dist/types/atoms/CodePreview/index.d.ts.map +1 -0
- package/dist/types/atoms/ConditionalWrapper/index.d.ts +8 -0
- package/dist/types/atoms/ConditionalWrapper/index.d.ts.map +1 -0
- package/dist/types/atoms/Containers/index.d.ts +3 -0
- package/dist/types/atoms/Containers/index.d.ts.map +1 -0
- package/dist/types/atoms/Containers/styles.d.ts +87 -0
- package/dist/types/atoms/Containers/styles.d.ts.map +1 -0
- package/dist/types/atoms/DivInput/index.d.ts +18 -0
- package/dist/types/atoms/DivInput/index.d.ts.map +1 -0
- package/dist/types/atoms/Form/Form.d.ts +15 -0
- package/dist/types/atoms/Form/Form.d.ts.map +1 -0
- package/dist/types/atoms/Form/index.d.ts +13 -0
- package/dist/types/atoms/Form/index.d.ts.map +1 -0
- package/dist/types/atoms/FormLabel/index.d.ts +13 -0
- package/dist/types/atoms/FormLabel/index.d.ts.map +1 -0
- package/dist/types/atoms/FullScreenModal/index.d.ts +3 -0
- package/dist/types/atoms/FullScreenModal/index.d.ts.map +1 -0
- package/dist/types/atoms/Header/index.d.ts +3 -0
- package/dist/types/atoms/Header/index.d.ts.map +1 -0
- package/dist/types/atoms/Header/styles.d.ts +18 -0
- package/dist/types/atoms/Header/styles.d.ts.map +1 -0
- package/dist/types/atoms/Icons/index.d.ts +28 -0
- package/dist/types/atoms/Icons/index.d.ts.map +1 -0
- package/dist/types/atoms/Input/index.d.ts +3 -0
- package/dist/types/atoms/Input/index.d.ts.map +1 -0
- package/dist/types/atoms/Input/styles.d.ts +20 -0
- package/dist/types/atoms/Input/styles.d.ts.map +1 -0
- package/dist/types/atoms/Link/index.d.ts +3 -0
- package/dist/types/atoms/Link/index.d.ts.map +1 -0
- package/dist/types/atoms/Link/styles.d.ts +133 -0
- package/dist/types/atoms/Link/styles.d.ts.map +1 -0
- package/dist/types/atoms/Loading/index.d.ts +21 -0
- package/dist/types/atoms/Loading/index.d.ts.map +1 -0
- package/dist/types/atoms/Loading/styles.d.ts +29 -0
- package/dist/types/atoms/Loading/styles.d.ts.map +1 -0
- package/dist/types/atoms/Logo/index.d.ts +3 -0
- package/dist/types/atoms/Logo/index.d.ts.map +1 -0
- package/dist/types/atoms/Pagination/index.d.ts +9 -0
- package/dist/types/atoms/Pagination/index.d.ts.map +1 -0
- package/dist/types/atoms/Pagination/styles.d.ts +38 -0
- package/dist/types/atoms/Pagination/styles.d.ts.map +1 -0
- package/dist/types/atoms/ProgressBar/index.d.ts +13 -0
- package/dist/types/atoms/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/atoms/Radio/index.d.ts +12 -0
- package/dist/types/atoms/Radio/index.d.ts.map +1 -0
- package/dist/types/atoms/Separator/index.d.ts +12 -0
- package/dist/types/atoms/Separator/index.d.ts.map +1 -0
- package/dist/types/atoms/Submit/index.d.ts +10 -0
- package/dist/types/atoms/Submit/index.d.ts.map +1 -0
- package/dist/types/atoms/Switch/index.d.ts +12 -0
- package/dist/types/atoms/Switch/index.d.ts.map +1 -0
- package/dist/types/atoms/Switch/styles.d.ts +31 -0
- package/dist/types/atoms/Switch/styles.d.ts.map +1 -0
- package/dist/types/atoms/Tabs/index.d.ts +18 -0
- package/dist/types/atoms/Tabs/index.d.ts.map +1 -0
- package/dist/types/atoms/Tabs/styles.d.ts +40 -0
- package/dist/types/atoms/Tabs/styles.d.ts.map +1 -0
- package/dist/types/atoms/TextCheckbox/index.d.ts +9 -0
- package/dist/types/atoms/TextCheckbox/index.d.ts.map +1 -0
- package/dist/types/atoms/Textarea/index.d.ts +19 -0
- package/dist/types/atoms/Textarea/index.d.ts.map +1 -0
- package/dist/types/atoms/Toggle/index.d.ts +16 -0
- package/dist/types/atoms/Toggle/index.d.ts.map +1 -0
- package/dist/types/atoms/Toggle/styles.d.ts +32 -0
- package/dist/types/atoms/Toggle/styles.d.ts.map +1 -0
- package/dist/types/atoms/Tooltip/index.d.ts +15 -0
- package/dist/types/atoms/Tooltip/index.d.ts.map +1 -0
- package/dist/types/atoms/Tooltip/styles.d.ts +24 -0
- package/dist/types/atoms/Tooltip/styles.d.ts.map +1 -0
- package/dist/types/atoms/Typography/index.d.ts +3 -0
- package/dist/types/atoms/Typography/index.d.ts.map +1 -0
- package/dist/types/atoms/Typography/styles.d.ts +68 -0
- package/dist/types/atoms/Typography/styles.d.ts.map +1 -0
- package/dist/types/atoms/Validation/index.d.ts +9 -0
- package/dist/types/atoms/Validation/index.d.ts.map +1 -0
- package/dist/types/atoms/Validation/styles.d.ts +23 -0
- package/dist/types/atoms/Validation/styles.d.ts.map +1 -0
- package/dist/types/atoms/WideImage/index.d.ts +26 -0
- package/dist/types/atoms/WideImage/index.d.ts.map +1 -0
- package/dist/types/molecules/Badge/index.d.ts +25 -0
- package/dist/types/molecules/Badge/index.d.ts.map +1 -0
- package/dist/types/molecules/Button/index.d.ts +31 -0
- package/dist/types/molecules/Button/index.d.ts.map +1 -0
- package/dist/types/molecules/Button/styles.d.ts +15 -0
- package/dist/types/molecules/Button/styles.d.ts.map +1 -0
- package/dist/types/molecules/Card/index.d.ts +16 -0
- package/dist/types/molecules/Card/index.d.ts.map +1 -0
- package/dist/types/molecules/Card/styles.d.ts +70 -0
- package/dist/types/molecules/Card/styles.d.ts.map +1 -0
- package/dist/types/molecules/Carousel/index.d.ts +13 -0
- package/dist/types/molecules/Carousel/index.d.ts.map +1 -0
- package/dist/types/molecules/Carousel/styles.d.ts +31 -0
- package/dist/types/molecules/Carousel/styles.d.ts.map +1 -0
- package/dist/types/molecules/CodeView/highlight.d.ts +11 -0
- package/dist/types/molecules/CodeView/highlight.d.ts.map +1 -0
- package/dist/types/molecules/CodeView/index.d.ts +58 -0
- package/dist/types/molecules/CodeView/index.d.ts.map +1 -0
- package/dist/types/molecules/CodeView/styles.d.ts +44 -0
- package/dist/types/molecules/CodeView/styles.d.ts.map +1 -0
- package/dist/types/molecules/HtmlEditor/index.d.ts +16 -0
- package/dist/types/molecules/HtmlEditor/index.d.ts.map +1 -0
- package/dist/types/molecules/HtmlEditor/styles.d.ts +12 -0
- package/dist/types/molecules/HtmlEditor/styles.d.ts.map +1 -0
- package/dist/types/molecules/SearchInput/index.d.ts +11 -0
- package/dist/types/molecules/SearchInput/index.d.ts.map +1 -0
- package/dist/types/molecules/SearchInput/styles.d.ts +24 -0
- package/dist/types/molecules/SearchInput/styles.d.ts.map +1 -0
- package/dist/types/molecules/Select/index.d.ts +18 -0
- package/dist/types/molecules/Select/index.d.ts.map +1 -0
- package/dist/types/molecules/Select/styles.d.ts +51 -0
- package/dist/types/molecules/Select/styles.d.ts.map +1 -0
- package/dist/types/molecules/StatusLabel/index.d.ts +51 -0
- package/dist/types/molecules/StatusLabel/index.d.ts.map +1 -0
- package/dist/types/molecules/StatusLabel/styles.d.ts +18 -0
- package/dist/types/molecules/StatusLabel/styles.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/BrandCell.d.ts +9 -0
- package/dist/types/molecules/Table/TableCels/BrandCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts +8 -0
- package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/StatusCell.d.ts +9 -0
- package/dist/types/molecules/Table/TableCels/StatusCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/TextCell.d.ts +9 -0
- package/dist/types/molecules/Table/TableCels/TextCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/index.d.ts +7 -0
- package/dist/types/molecules/Table/TableCels/index.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/styles.d.ts +29 -0
- package/dist/types/molecules/Table/TableCels/styles.d.ts.map +1 -0
- package/dist/types/molecules/Table/index.d.ts +27 -0
- package/dist/types/molecules/Table/index.d.ts.map +1 -0
- package/dist/types/molecules/Table/styles.d.ts +15 -0
- package/dist/types/molecules/Table/styles.d.ts.map +1 -0
- package/dist/types/molecules/TokenInputField/index.d.ts +15 -0
- package/dist/types/molecules/TokenInputField/index.d.ts.map +1 -0
- package/dist/types/molecules/TokenInputField/styles.d.ts +24 -0
- package/dist/types/molecules/TokenInputField/styles.d.ts.map +1 -0
- package/dist/types/shared/modals/index.d.ts +33 -0
- package/dist/types/shared/modals/index.d.ts.map +1 -0
- package/dist/types/shared/modals/styles.d.ts +52 -0
- package/dist/types/shared/modals/styles.d.ts.map +1 -0
- package/dist/types/shared/modals/useModal.d.ts +4 -0
- package/dist/types/shared/modals/useModal.d.ts.map +1 -0
- package/dist/types/shared/report-ui/DecisionPanel.d.ts +53 -0
- package/dist/types/shared/report-ui/DecisionPanel.d.ts.map +1 -0
- package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts +31 -0
- package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts.map +1 -0
- package/dist/types/shared/report-ui/Shell.styles.d.ts +26 -0
- package/dist/types/shared/report-ui/Shell.styles.d.ts.map +1 -0
- package/dist/types/shared/report-ui/index.d.ts +6 -0
- package/dist/types/shared/report-ui/index.d.ts.map +1 -0
- package/dist/types/shared/report-ui/ui.d.ts +30 -0
- package/dist/types/shared/report-ui/ui.d.ts.map +1 -0
- package/dist/types/shared/report-ui/ui.styles.d.ts +50 -0
- package/dist/types/shared/report-ui/ui.styles.d.ts.map +1 -0
- package/dist/types/shared/toasts/index.d.ts +23 -0
- package/dist/types/shared/toasts/index.d.ts.map +1 -0
- package/dist/types/shared/toasts/styles.d.ts +18 -0
- package/dist/types/shared/toasts/styles.d.ts.map +1 -0
- package/dist/types/textures/Cloud/index.d.ts +29 -0
- package/dist/types/textures/Cloud/index.d.ts.map +1 -0
- package/dist/types/textures/Paper/index.d.ts +8 -0
- package/dist/types/textures/Paper/index.d.ts.map +1 -0
- package/dist/types/textures/index.d.ts +4 -0
- package/dist/types/textures/index.d.ts.map +1 -0
- package/dist/typography.js +81 -0
- package/dist/validation.js +20 -0
- package/dist/wide-image.js +94 -0
- package/package.json +443 -4
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { useState as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import r from "styled-components";
|
|
4
|
+
import { Input as i } from "@md-code/components/input";
|
|
5
|
+
import { Button as a } from "@md-code/components/button";
|
|
6
|
+
// molecules/TokenInputField/styles.ts
|
|
7
|
+
var o = r.fieldset`
|
|
8
|
+
margin: 0 0 ${({ theme: e }) => e.offsets.betweenElements};
|
|
9
|
+
padding: ${({ theme: e }) => e.offsets.elementContent};
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: ${({ theme: e }) => e.offsets.elementContent};
|
|
13
|
+
background-color: ${({ theme: e }) => e.colors.section};
|
|
14
|
+
border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
|
|
15
|
+
border-radius: ${({ theme: e }) => e.border.radius};
|
|
16
|
+
`, s = r.div`
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
`, c = r.label`
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
22
|
+
color: ${({ theme: e }) => e.colors.sectionContent};
|
|
23
|
+
`, l = r.div`
|
|
24
|
+
font-size: ${({ theme: e }) => e.font.sizes.small};
|
|
25
|
+
color: ${({ theme: e }) => e.colors.sectionContent};
|
|
26
|
+
margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
27
|
+
`, u = ({ field: r, value: u, onChange: d, autoFocus: f, readOnly: p }) => {
|
|
28
|
+
let [m, h] = e(!1), g = () => h(!m), _ = m ? "text" : "password";
|
|
29
|
+
return /* @__PURE__ */ n(o, { children: [
|
|
30
|
+
/* @__PURE__ */ t(c, { children: r.label }),
|
|
31
|
+
r.description && /* @__PURE__ */ t(l, {
|
|
32
|
+
id: `${r.path}-description`,
|
|
33
|
+
children: r.description
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ n(s, { children: [/* @__PURE__ */ t(i, {
|
|
36
|
+
id: `${r.path}-input`,
|
|
37
|
+
type: _,
|
|
38
|
+
autoFocus: f,
|
|
39
|
+
value: u || "",
|
|
40
|
+
onChange: (e) => {
|
|
41
|
+
d && d(e.target.value);
|
|
42
|
+
},
|
|
43
|
+
autoComplete: "off",
|
|
44
|
+
readOnly: p,
|
|
45
|
+
style: { flex: "1" }
|
|
46
|
+
}), /* @__PURE__ */ t(a, {
|
|
47
|
+
id: `${r.path}-button`,
|
|
48
|
+
size: "small",
|
|
49
|
+
tone: "neutral",
|
|
50
|
+
onClick: g,
|
|
51
|
+
style: { marginLeft: "0.5em" },
|
|
52
|
+
text: m ? "Hide" : "Show"
|
|
53
|
+
})] })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export { u as TokenInputField };
|
package/dist/tooltip.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import a, { css as o, keyframes as s } from "styled-components";
|
|
4
|
+
// atoms/Tooltip/styles.ts
|
|
5
|
+
var c = s`
|
|
6
|
+
from { opacity: 0; transform: translate(-50%, 100%); }
|
|
7
|
+
to { opacity: 1; transform: translate(-50%, 0); }
|
|
8
|
+
`, l = o`
|
|
9
|
+
bottom: 100%;
|
|
10
|
+
margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
11
|
+
`, u = o`
|
|
12
|
+
top: 100%;
|
|
13
|
+
margin-top: ${({ theme: e }) => e.offsets.elementContent};
|
|
14
|
+
`, d = a.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
|
|
18
|
+
`, f = a.span`
|
|
19
|
+
visibility: hidden;
|
|
20
|
+
min-width: ${({ theme: e }) => e.elements.form.minWidth};
|
|
21
|
+
background: ${({ theme: e }) => e.colors.section};
|
|
22
|
+
/*
|
|
23
|
+
* effects.texture is one string per theme (README §4.1, §5.3): noise themes
|
|
24
|
+
* supply a url() for background-image, glass themes supply blur() for
|
|
25
|
+
* backdrop-filter. The bubble cannot know which theme is active, so it hands
|
|
26
|
+
* the value to BOTH properties; each property keeps only the value it
|
|
27
|
+
* understands and ignores the other (blur() in background-image computes to
|
|
28
|
+
* none, and url() left in backdrop-filter is visually inert — verified in
|
|
29
|
+
* Chromium). Both themes therefore texture the bubble without a name check.
|
|
30
|
+
*/
|
|
31
|
+
background-image: ${({ theme: e }) => e.effects.texture};
|
|
32
|
+
backdrop-filter: ${({ theme: e }) => e.effects.texture};
|
|
33
|
+
color: ${({ theme: e }) => e.colors.sectionContent};
|
|
34
|
+
text-align: center;
|
|
35
|
+
font-family: ${({ theme: e }) => e.font.family.text};
|
|
36
|
+
font-weight: ${({ theme: e }) => e.font.weight.text};
|
|
37
|
+
text-transform: ${({ theme: e }) => e.font.transform.text};
|
|
38
|
+
letter-spacing: ${({ theme: e }) => e.font.spacing};
|
|
39
|
+
border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.highlighted};
|
|
40
|
+
border-radius: ${({ theme: e }) => e.border.radius};
|
|
41
|
+
box-shadow: ${({ theme: e }) => e.shadows.notification};
|
|
42
|
+
padding: ${({ theme: e }) => e.offsets.elementContent};
|
|
43
|
+
position: absolute;
|
|
44
|
+
z-index: ${({ theme: e }) => e.zIndex.alert};
|
|
45
|
+
left: 50%;
|
|
46
|
+
margin-left: ${({ theme: e }) => `calc(-${e.elements.form.minWidth} / 2)`};
|
|
47
|
+
${({ $position: e }) => e === "top" ? l : u}
|
|
48
|
+
opacity: 0;
|
|
49
|
+
transition: opacity ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard};
|
|
50
|
+
animation: ${c} ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.out} forwards;
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* The visible state: hovering the anchor reveals the bubble. Visibility and
|
|
54
|
+
* opacity are the tooltip's own anatomy, not a theme state fragment.
|
|
55
|
+
*/
|
|
56
|
+
${d}:hover & {
|
|
57
|
+
visibility: visible;
|
|
58
|
+
opacity: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/*
|
|
62
|
+
* The pointer glyph under the bubble: a zero-size box whose top border is
|
|
63
|
+
* the accent, pointing back at the anchor. It is drawn in the same accent as
|
|
64
|
+
* the bubble outline (a border is the zone's outline, README §4.1).
|
|
65
|
+
*/
|
|
66
|
+
&::after {
|
|
67
|
+
content: '';
|
|
68
|
+
position: absolute;
|
|
69
|
+
bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
70
|
+
left: 50%;
|
|
71
|
+
margin-left: ${({ theme: e }) => e.offsets.elementContent};
|
|
72
|
+
border-width: ${({ theme: e }) => e.offsets.elementContent};
|
|
73
|
+
border-style: solid;
|
|
74
|
+
border-color: ${({ theme: e }) => e.colors.highlighted} transparent transparent transparent;
|
|
75
|
+
}
|
|
76
|
+
`, p = ({ children: a, text: o, className: s, $fullWidth: c }) => {
|
|
77
|
+
let [l, u] = n("top"), p = t(null);
|
|
78
|
+
return e(() => {
|
|
79
|
+
if (p.current) {
|
|
80
|
+
let e = p.current.getBoundingClientRect(), t = window.innerHeight;
|
|
81
|
+
e.bottom > t ? u("top") : e.top < 100 ? u("bottom") : u("top");
|
|
82
|
+
}
|
|
83
|
+
}, []), /* @__PURE__ */ i(d, {
|
|
84
|
+
ref: p,
|
|
85
|
+
className: s,
|
|
86
|
+
$fullWidth: c,
|
|
87
|
+
children: [a, o && /* @__PURE__ */ r(f, {
|
|
88
|
+
$position: l,
|
|
89
|
+
children: o
|
|
90
|
+
})]
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
export { p as Tooltip };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const Avatar: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
4
|
+
/** @component */
|
|
5
|
+
export default Avatar;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Avatar/index.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;WAIX,CAAC;AAEF,iBAAiB;AACjB,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,UAAU,EAAE,CAAA;CAAE,CAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The breadcrumb row. Glyphs read the section content colour (proper-naming,
|
|
3
|
+
* README §3.1 — the baseline read the legacy `labelBackground` surface token as
|
|
4
|
+
* text). Typographic role and rhythm are theme data, so viking's uppercase and
|
|
5
|
+
* the glass corner radius need no per-theme code. The row sits on the section
|
|
6
|
+
* surface: on viking that equals the page, on glass it is the glass surface.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BreadcrumbContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
9
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
10
|
+
}> & string;
|
|
11
|
+
/**
|
|
12
|
+
* A breadcrumb link: the section content colour at rest, the accent only in the
|
|
13
|
+
* hover state (proper-naming exempts `*:*` selectors, README §4.3).
|
|
14
|
+
*/
|
|
15
|
+
export declare const BreadcrumbLink: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof {
|
|
16
|
+
href: string | import("url").UrlObject;
|
|
17
|
+
as?: string | import("url").UrlObject;
|
|
18
|
+
replace?: boolean;
|
|
19
|
+
scroll?: boolean;
|
|
20
|
+
shallow?: boolean;
|
|
21
|
+
passHref?: boolean;
|
|
22
|
+
prefetch?: boolean | null;
|
|
23
|
+
locale?: string | false;
|
|
24
|
+
legacyBehavior?: boolean;
|
|
25
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
26
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
27
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
28
|
+
}> & {
|
|
29
|
+
href: string | import("url").UrlObject;
|
|
30
|
+
as?: string | import("url").UrlObject;
|
|
31
|
+
replace?: boolean;
|
|
32
|
+
scroll?: boolean;
|
|
33
|
+
shallow?: boolean;
|
|
34
|
+
passHref?: boolean;
|
|
35
|
+
prefetch?: boolean | null;
|
|
36
|
+
locale?: string | false;
|
|
37
|
+
legacyBehavior?: boolean;
|
|
38
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
39
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
40
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
41
|
+
} & {
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
} & import("react").RefAttributes<HTMLAnchorElement>, "style"> & {
|
|
44
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
45
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof {
|
|
46
|
+
href: string | import("url").UrlObject;
|
|
47
|
+
as?: string | import("url").UrlObject;
|
|
48
|
+
replace?: boolean;
|
|
49
|
+
scroll?: boolean;
|
|
50
|
+
shallow?: boolean;
|
|
51
|
+
passHref?: boolean;
|
|
52
|
+
prefetch?: boolean | null;
|
|
53
|
+
locale?: string | false;
|
|
54
|
+
legacyBehavior?: boolean;
|
|
55
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
56
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
57
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
58
|
+
}> & {
|
|
59
|
+
href: string | import("url").UrlObject;
|
|
60
|
+
as?: string | import("url").UrlObject;
|
|
61
|
+
replace?: boolean;
|
|
62
|
+
scroll?: boolean;
|
|
63
|
+
shallow?: boolean;
|
|
64
|
+
passHref?: boolean;
|
|
65
|
+
prefetch?: boolean | null;
|
|
66
|
+
locale?: string | false;
|
|
67
|
+
legacyBehavior?: boolean;
|
|
68
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
69
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
70
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
71
|
+
} & {
|
|
72
|
+
children?: React.ReactNode;
|
|
73
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
74
|
+
/**
|
|
75
|
+
* The current (unlinked) crumb: the overlay layer with the theme radius, the
|
|
76
|
+
* section content colour and the theme's title weight plus content text-shadow.
|
|
77
|
+
* The baseline painted the accent here at rest, which proper-naming forbids; the
|
|
78
|
+
* accent survives only as the theme's content shadow (documented deviation).
|
|
79
|
+
*/
|
|
80
|
+
export declare const ActiveBreadcrumb: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
81
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
82
|
+
}> & string;
|
|
83
|
+
/**
|
|
84
|
+
* The separator chevron. It is a glyph, so it reads the section content colour
|
|
85
|
+
* and is muted through opacity — a `color-mix` of a Content token would no
|
|
86
|
+
* longer end in `…Content` and would fail proper-naming.
|
|
87
|
+
*/
|
|
88
|
+
export declare const ChevronIcon: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("@md-code/components/icons").LucideIconProps, "style"> & {
|
|
89
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
90
|
+
}> & string & Omit<import("react").FC<import("@md-code/components/icons").LucideIconProps>, keyof import("react").Component<any, {}, any>>;
|
|
91
|
+
/** The home glyph at the start of the trail; a glyph reads the content colour. */
|
|
92
|
+
export declare const HomeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("@md-code/components/icons").LucideIconProps, "style"> & {
|
|
93
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
94
|
+
}> & string & Omit<import("react").FC<import("@md-code/components/icons").LucideIconProps>, keyof import("react").Component<any, {}, any>>;
|
|
95
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Breadcrumbs/styles.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;WAU/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;mBA0CwtB,MAAO,iBAAiB;mBAA+G,MAAO,iBAAiB;cAA0G,MAAO,iBAAiB;;;;;;;;;;;yBAA1R,iBAAiB;yBAAsH,iBAAiB;oBAAiH,iBAAiB;;eAAopB,MAAO,SAAS;;;;;;;;;;;;;yBAA97B,iBAAiB;yBAAsH,iBAAiB;oBAAiH,iBAAiB;;;;;;;;;;;yBAA1R,iBAAiB;yBAAsH,iBAAiB;oBAAiH,iBAAiB;;qBAA2pB,SAAS;qGAnCvrD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;WAO5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW;;0IAKvB,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,QAAQ;;0IAIpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Calendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgD1B,QAAA,MAAM,QAAQ,yBAmBb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The calendar grid. It is a section surface: the section pair paints it, the
|
|
3
|
+
* theme radius and a muted 25% content outline (the Phase 4a muted rule — the
|
|
4
|
+
* legacy `disabled` grey is gone, README §5.1) close it, and the theme texture
|
|
5
|
+
* is dual-attached to `background-image` and `backdrop-filter` (README §5.3).
|
|
6
|
+
* The viking cell rules live on the cells themselves, not on the grid, so
|
|
7
|
+
* every theme uses one shared grid block.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CalendarGrid: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}> & string;
|
|
12
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Calendar/styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;WAyExB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/CentralModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,YAAY,gCA6BxB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ZIndexName } from '@md/styles';
|
|
3
|
+
type ICircleImageProps = {
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
priority?: boolean;
|
|
9
|
+
zIndex?: ZIndexName;
|
|
10
|
+
};
|
|
11
|
+
declare const CircleImage: React.ForwardRefExoticComponent<ICircleImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
12
|
+
export default CircleImage;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/CircleImage/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D,KAAK,iBAAiB,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;CACvB,CAAA;AAYD,QAAA,MAAM,WAAW,4FAUf,CAAC;AAGH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "prism-themes/themes/prism-one-light.css";
|
|
3
|
+
import "prismjs/components/prism-json";
|
|
4
|
+
/**
|
|
5
|
+
* The code surface: the section surface behind the highlighted code, with the
|
|
6
|
+
* theme's text role for the code font. It is rendered inside the `codeEditor`
|
|
7
|
+
* zone theme, so the text role resolves to monospace (README §5.5, §6) — the
|
|
8
|
+
* contract has no separate `code` family.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CodeBlock: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, "style"> & {
|
|
11
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
12
|
+
}> & string;
|
|
13
|
+
/**
|
|
14
|
+
* A read-only code preview: renders a string or an object as JSON with Prism
|
|
15
|
+
* highlighting inside the `codeEditor` zone theme (like `HtmlEditor`), so the
|
|
16
|
+
* code surface resolves monospace typography without any gate. Pass
|
|
17
|
+
* `rawValue` (nothing renders when it is empty) and an optional `className`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const CodePreview: React.FC<{
|
|
20
|
+
rawValue?: string | object;
|
|
21
|
+
className?: string;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/CodePreview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,yCAAyC,CAAC;AACjD,OAAO,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;WAiBrB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAgBpF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FC, ReactElement, ElementType } from 'react';
|
|
2
|
+
type TConditionalWrapperProps = {
|
|
3
|
+
Wrapper?: ElementType;
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
};
|
|
6
|
+
declare const ConditionalWrapper: FC<TConditionalWrapperProps>;
|
|
7
|
+
export default ConditionalWrapper;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/ConditionalWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3D,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,wBAAwB,CACD,CAAC;AAGrD,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BasicSection, PageContainer, HeadingContainer, Column, ColumnsContainer, DashboardCardsContainer, FocusedContainer, OneLineContainer, LinksContainer, MenuItemContainer, Section, TextContainer } from "./styles.js";
|
|
2
|
+
export { BasicSection, PageContainer, HeadingContainer, Column, ColumnsContainer, DashboardCardsContainer, FocusedContainer, OneLineContainer, LinksContainer, MenuItemContainer, Section, TextContainer, };
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Containers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,EACd,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,GACd,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { TFullWidth, TWithBasicElementOffsets } from '@md/styles';
|
|
2
|
+
export type ContainerProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export type TSectionProps = {
|
|
8
|
+
$noHeightLimit?: boolean;
|
|
9
|
+
} & ContainerProps;
|
|
10
|
+
import type { ThemeInterface } from '@md/styles';
|
|
11
|
+
/**
|
|
12
|
+
* The basic page section: a section surface with the theme padding rhythm, the
|
|
13
|
+
* resting shadow and a muted 25% content outline on its horizontal edges (the
|
|
14
|
+
* Phase 4a muted rule; the legacy `disabled` grey is gone, README §5.1). The
|
|
15
|
+
* texture is dual-attached: one theme string reaches `background-image` (noise
|
|
16
|
+
* url()) and `backdrop-filter` (glass blur()), each keeping only its own value
|
|
17
|
+
* (README §4.1, §5.3); heights come from the shared screen/header elements.
|
|
18
|
+
*/
|
|
19
|
+
export declare const BasicSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
20
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
$noHeightLimit?: boolean;
|
|
23
|
+
} & ContainerProps & {
|
|
24
|
+
theme: ThemeInterface;
|
|
25
|
+
}>> & string;
|
|
26
|
+
/** The whole-page container: the section surface, header height reserved. */
|
|
27
|
+
export declare const PageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
28
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
29
|
+
}> & string;
|
|
30
|
+
/** A heading wrapper: full width, optional rhythm offsets. Pure layout. */
|
|
31
|
+
export declare const HeadingContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
32
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
33
|
+
}, TWithBasicElementOffsets & TFullWidth>> & string;
|
|
34
|
+
/** A vertical stack: pure layout, no paint. */
|
|
35
|
+
export declare const Column: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
36
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
37
|
+
}> & string;
|
|
38
|
+
export interface ColumnsContainerProps {
|
|
39
|
+
$colsRatio?: string[];
|
|
40
|
+
}
|
|
41
|
+
/** A column grid with the theme gap and optional rhythm offsets. */
|
|
42
|
+
export declare const ColumnsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
43
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
44
|
+
}, ColumnsContainerProps & TWithBasicElementOffsets>> & string;
|
|
45
|
+
/** A wrapping row of dashboard cards with the theme gap and section padding. */
|
|
46
|
+
export declare const DashboardCardsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
47
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
48
|
+
}> & string;
|
|
49
|
+
/**
|
|
50
|
+
* A hover-affordance wrapper: the hovered child takes the accent pair and
|
|
51
|
+
* outline. `:hover` is a state selector, so the accent is legal there
|
|
52
|
+
* (README §4.3); the outline uses the theme's complete border size (README
|
|
53
|
+
* §5.4 — no `px` suffix).
|
|
54
|
+
*/
|
|
55
|
+
export declare const FocusedContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
56
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
57
|
+
}> & string;
|
|
58
|
+
/** A single-line row: centred items at the theme gap and a caller width. */
|
|
59
|
+
export declare const OneLineContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
60
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
$width?: "1/2" | "1/3";
|
|
63
|
+
}>> & string;
|
|
64
|
+
/**
|
|
65
|
+
* A clickable links block. Its text reads the section content colour (the
|
|
66
|
+
* baseline used an undeclared `--action-color` CSS variable no theme provides).
|
|
67
|
+
*/
|
|
68
|
+
export declare const LinksContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
69
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
70
|
+
}> & string;
|
|
71
|
+
/** A menu item row: the theme gap plus optional rhythm offsets. Pure layout. */
|
|
72
|
+
export declare const MenuItemContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
73
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
74
|
+
}, TWithBasicElementOffsets>> & string;
|
|
75
|
+
export type TSection = {
|
|
76
|
+
$direction: 'horizontal' | 'horizontal-reversed' | 'vertical' | 'top';
|
|
77
|
+
$sectionSize: 'full' | 'medium' | 'half' | 'dot-section' | 'footsteps';
|
|
78
|
+
};
|
|
79
|
+
/** A responsive section shell: direction and viewport height are caller layout. */
|
|
80
|
+
export declare const Section: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
81
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
82
|
+
}, TSection>> & string;
|
|
83
|
+
/** A centred text column: half the viewport wide (an environment size). */
|
|
84
|
+
export declare const TextContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
85
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
86
|
+
}> & string;
|
|
87
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Containers/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAGvE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAA;AAcD,MAAM,MAAM,aAAa,GAAG;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;qBAbN,OAAO;;WAasC,cAAc;YAqB7E,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,aAAa;;WAKzB,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB;;mDAM5B,CAAC;AAEF,+CAA+C;AAC/C,eAAO,MAAM,MAAM;;WAGlB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,oEAAoE;AACpE,eAAO,MAAM,gBAAgB;;8DAO5B,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,uBAAuB;;WAKnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;WAQ5B,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB;;;aAAyB,KAAK,GAAG,KAAK;YAWlE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc;;WAO1B,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,iBAAiB;;sCAK7B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,YAAY,GAAG,qBAAqB,GAAG,UAAU,GAAG,KAAK,CAAC;IACtE,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,GAAG,WAAW,CAAA;CACvE,CAAC;AAUF,mFAAmF;AACnF,eAAO,MAAM,OAAO;;sBAkBnB,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,aAAa;;WAQzB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChangeEvent, CSSProperties, KeyboardEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface InputFieldProps {
|
|
4
|
+
value?: string | string[];
|
|
5
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
onKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
7
|
+
id?: string;
|
|
8
|
+
type?: "text" | "password";
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
autoComplete?: string;
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
className?: string;
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const InputField: React.FC<InputFieldProps>;
|
|
17
|
+
export { InputField as DivInput };
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/DivInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACd,MAAM,OAAO,CAAC;AACf,OAAO,KAIN,MAAM,OAAO,CAAC;AA4Ef,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtD,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8DzC,CAAC;AAEF,OAAO,EAAE,UAAU,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FormEventHandler } from 'react';
|
|
2
|
+
import type { TWithBasicElementOffsets, TFullWidth } from '@md/styles';
|
|
3
|
+
type TFormProps = {
|
|
4
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
5
|
+
} & TWithBasicElementOffsets & TFullWidth;
|
|
6
|
+
/**
|
|
7
|
+
* The form element owns only layout and offsets; every control inside it
|
|
8
|
+
* paints itself from the theme contract.
|
|
9
|
+
*/
|
|
10
|
+
declare const Form: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "style"> & {
|
|
11
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
12
|
+
}, TFormProps>> & string;
|
|
13
|
+
/** @component */
|
|
14
|
+
export default Form;
|
|
15
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../atoms/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGvE,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;CAC7C,GAAG,wBAAwB,GAC1B,UAAU,CAAC;AAEb;;;GAGG;AACH,QAAA,MAAM,IAAI;;wBAIT,CAAC;AACF,iBAAiB;AACjB,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Form from './Form.js';
|
|
2
|
+
import { FormLabel } from '@md-code/components/form-label';
|
|
3
|
+
import { Input } from '@md-code/components/input';
|
|
4
|
+
import { Radio } from '@md-code/components/radio';
|
|
5
|
+
import { SearchInput } from '@md-code/components/search-input';
|
|
6
|
+
import { Select } from '@md-code/components/select';
|
|
7
|
+
import { Submit } from '@md-code/components/submit';
|
|
8
|
+
import { Textarea } from '@md-code/components/textarea';
|
|
9
|
+
import { TextCheckbox } from '@md-code/components/text-checkbox';
|
|
10
|
+
export { Form, Input, SearchInput, FormLabel, TextCheckbox, Select, Radio, Submit, Textarea };
|
|
11
|
+
export default Form;
|
|
12
|
+
export type { TOption } from '@md-code/components/select';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AAE9F,eAAe,IAAI,CAAC;AAGpB,YAAY,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TWithBasicElementOffsets, TFullWidth } from '@md/styles';
|
|
2
|
+
type TFormLabelProps = {
|
|
3
|
+
htmlFor: string;
|
|
4
|
+
} & TWithBasicElementOffsets & TFullWidth;
|
|
5
|
+
/**
|
|
6
|
+
* A form label paints on the section surface, so its text reads
|
|
7
|
+
* `sectionContent`; the offsets and full-width behaviour are component props.
|
|
8
|
+
*/
|
|
9
|
+
declare const FormLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}, TFormLabelProps>> & string;
|
|
12
|
+
export { FormLabel };
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/FormLabel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGvE,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,wBAAwB,GAC1B,UAAU,CAAC;AAEb;;;GAGG;AACH,QAAA,MAAM,SAAS;;6BAcd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/FullScreenModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAkCnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DefaultTheme } from "styled-components";
|
|
2
|
+
/** A named layer from the theme's `zIndex` map. */
|
|
3
|
+
type ZIndexName = keyof DefaultTheme["zIndex"];
|
|
4
|
+
/**
|
|
5
|
+
* The page header is a section surface pinned to the top: the section pair
|
|
6
|
+
* paints it, an explicit bottom rule in the content colour closes it (a border
|
|
7
|
+
* is the zone's outline, README §4.1), and the height comes from the shared
|
|
8
|
+
* header element so media queries stay in one place. The texture reaches both
|
|
9
|
+
* `background-image` (viking noise) and `backdrop-filter` (glass blur), each
|
|
10
|
+
* property keeping the value it understands (README §4.1, §5.3).
|
|
11
|
+
*/
|
|
12
|
+
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
13
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
$zIndex?: ZIndexName;
|
|
16
|
+
}>> & string;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Header/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,mDAAmD;AACnD,KAAK,UAAU,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;cAA6B,UAAU;YAe/D,CAAC"}
|