@xeonr/platform-ui 1.10.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/AuthCode.d.ts +48 -0
- package/dist/auth/AuthCode.d.ts.map +1 -0
- package/dist/auth/AuthCode.js +197 -0
- package/dist/auth/AuthCode.js.map +1 -0
- package/dist/auth/AuthConsent.d.ts +69 -0
- package/dist/auth/AuthConsent.d.ts.map +1 -0
- package/dist/auth/AuthConsent.js +155 -0
- package/dist/auth/AuthConsent.js.map +1 -0
- package/dist/auth/AuthControls.d.ts +133 -0
- package/dist/auth/AuthControls.d.ts.map +1 -0
- package/dist/auth/AuthControls.js +379 -0
- package/dist/auth/AuthControls.js.map +1 -0
- package/dist/auth/AuthPanel.d.ts +106 -0
- package/dist/auth/AuthPanel.d.ts.map +1 -0
- package/dist/auth/AuthPanel.js +317 -0
- package/dist/auth/AuthPanel.js.map +1 -0
- package/dist/auth.d.ts +5 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +15 -0
- package/dist/auth.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/kit/Anchored.js +109 -109
- package/dist/kit/Anchored.js.map +1 -1
- package/dist/kit/ApiKeyForm.js +73 -73
- package/dist/kit/ApiKeyForm.js.map +1 -1
- package/dist/kit/ApiKeys.js +144 -144
- package/dist/kit/ApiKeys.js.map +1 -1
- package/dist/kit/Badge.js +45 -45
- package/dist/kit/Badge.js.map +1 -1
- package/dist/kit/Blocks.d.ts.map +1 -1
- package/dist/kit/Blocks.js +103 -102
- package/dist/kit/Blocks.js.map +1 -1
- package/dist/kit/Board.js +54 -54
- package/dist/kit/Board.js.map +1 -1
- package/dist/kit/Button.d.ts +3 -3
- package/dist/kit/Button.d.ts.map +1 -1
- package/dist/kit/Button.js +55 -50
- package/dist/kit/Button.js.map +1 -1
- package/dist/kit/Card.d.ts.map +1 -1
- package/dist/kit/Card.js +36 -29
- package/dist/kit/Card.js.map +1 -1
- package/dist/kit/ChartFrame.js +54 -54
- package/dist/kit/ChartFrame.js.map +1 -1
- package/dist/kit/ChartTypes.js +215 -215
- package/dist/kit/ChartTypes.js.map +1 -1
- package/dist/kit/Charts.js +605 -605
- package/dist/kit/Charts.js.map +1 -1
- package/dist/kit/Checkbox.js +16 -16
- package/dist/kit/Checkbox.js.map +1 -1
- package/dist/kit/Chip.js +21 -21
- package/dist/kit/Chip.js.map +1 -1
- package/dist/kit/Choice.js +24 -24
- package/dist/kit/Choice.js.map +1 -1
- package/dist/kit/CodeEditor.d.ts.map +1 -1
- package/dist/kit/CodeEditor.js +26 -48
- package/dist/kit/CodeEditor.js.map +1 -1
- package/dist/kit/Color.js +74 -74
- package/dist/kit/Color.js.map +1 -1
- package/dist/kit/Combobox.js +67 -67
- package/dist/kit/Combobox.js.map +1 -1
- package/dist/kit/CommandPalette.d.ts.map +1 -1
- package/dist/kit/CommandPalette.js +96 -86
- package/dist/kit/CommandPalette.js.map +1 -1
- package/dist/kit/Comment.js +7 -7
- package/dist/kit/Comment.js.map +1 -1
- package/dist/kit/Controls.js +122 -122
- package/dist/kit/Controls.js.map +1 -1
- package/dist/kit/DataGrid.js +97 -97
- package/dist/kit/DataGrid.js.map +1 -1
- package/dist/kit/DataTable.d.ts.map +1 -1
- package/dist/kit/DataTable.js +196 -195
- package/dist/kit/DataTable.js.map +1 -1
- package/dist/kit/DatePicker.js +242 -242
- package/dist/kit/DatePicker.js.map +1 -1
- package/dist/kit/Drawer.d.ts.map +1 -1
- package/dist/kit/Drawer.js +15 -14
- package/dist/kit/Drawer.js.map +1 -1
- package/dist/kit/Dropzone.js +80 -80
- package/dist/kit/Dropzone.js.map +1 -1
- package/dist/kit/Editable.d.ts.map +1 -1
- package/dist/kit/Editable.js +130 -129
- package/dist/kit/Editable.js.map +1 -1
- package/dist/kit/EmptyState.d.ts.map +1 -1
- package/dist/kit/EmptyState.js +14 -13
- package/dist/kit/EmptyState.js.map +1 -1
- package/dist/kit/EntityHeader.d.ts.map +1 -1
- package/dist/kit/EntityHeader.js +17 -16
- package/dist/kit/EntityHeader.js.map +1 -1
- package/dist/kit/Facet.js +52 -52
- package/dist/kit/Facet.js.map +1 -1
- package/dist/kit/FacetRail.js +91 -91
- package/dist/kit/FacetRail.js.map +1 -1
- package/dist/kit/Forbidden.js +7 -7
- package/dist/kit/Forbidden.js.map +1 -1
- package/dist/kit/Form.d.ts.map +1 -1
- package/dist/kit/Form.js +144 -143
- package/dist/kit/Form.js.map +1 -1
- package/dist/kit/Graph.d.ts +14 -3
- package/dist/kit/Graph.d.ts.map +1 -1
- package/dist/kit/Graph.js +473 -314
- package/dist/kit/Graph.js.map +1 -1
- package/dist/kit/GroupedMultiSelect.js +115 -115
- package/dist/kit/GroupedMultiSelect.js.map +1 -1
- package/dist/kit/Icon.d.ts +2 -0
- package/dist/kit/Icon.d.ts.map +1 -1
- package/dist/kit/Icon.js +3 -1
- package/dist/kit/Icon.js.map +1 -1
- package/dist/kit/JumpList.js +11 -11
- package/dist/kit/JumpList.js.map +1 -1
- package/dist/kit/KV.js +6 -6
- package/dist/kit/KV.js.map +1 -1
- package/dist/kit/Layout.js +5 -5
- package/dist/kit/Layout.js.map +1 -1
- package/dist/kit/List.js +74 -74
- package/dist/kit/List.js.map +1 -1
- package/dist/kit/LogView.js +68 -68
- package/dist/kit/LogView.js.map +1 -1
- package/dist/kit/Markdown.js +37 -37
- package/dist/kit/Markdown.js.map +1 -1
- package/dist/kit/Marker.js +42 -42
- package/dist/kit/Marker.js.map +1 -1
- package/dist/kit/Menu.js +128 -128
- package/dist/kit/Menu.js.map +1 -1
- package/dist/kit/Modal.d.ts.map +1 -1
- package/dist/kit/Modal.js +86 -75
- package/dist/kit/Modal.js.map +1 -1
- package/dist/kit/MultiCombobox.js +157 -157
- package/dist/kit/MultiCombobox.js.map +1 -1
- package/dist/kit/PageHeader.d.ts.map +1 -1
- package/dist/kit/PageHeader.js +8 -7
- package/dist/kit/PageHeader.js.map +1 -1
- package/dist/kit/Panel.d.ts.map +1 -1
- package/dist/kit/Panel.js +33 -14
- package/dist/kit/Panel.js.map +1 -1
- package/dist/kit/Picker.js +159 -159
- package/dist/kit/Picker.js.map +1 -1
- package/dist/kit/PipelineFlow.js +86 -86
- package/dist/kit/PipelineFlow.js.map +1 -1
- package/dist/kit/Popover.js +67 -67
- package/dist/kit/Popover.js.map +1 -1
- package/dist/kit/Range.js +76 -76
- package/dist/kit/Range.js.map +1 -1
- package/dist/kit/Reorder.js +95 -95
- package/dist/kit/Reorder.js.map +1 -1
- package/dist/kit/Search.js +27 -27
- package/dist/kit/Search.js.map +1 -1
- package/dist/kit/Secret.js +26 -26
- package/dist/kit/Secret.js.map +1 -1
- package/dist/kit/Skeleton.js +14 -14
- package/dist/kit/Skeleton.js.map +1 -1
- package/dist/kit/Sparkline.js +51 -51
- package/dist/kit/Sparkline.js.map +1 -1
- package/dist/kit/Spectrum.js +163 -163
- package/dist/kit/Spectrum.js.map +1 -1
- package/dist/kit/Splash.js +3 -3
- package/dist/kit/Splash.js.map +1 -1
- package/dist/kit/Split.js +13 -13
- package/dist/kit/Split.js.map +1 -1
- package/dist/kit/SplitButton.d.ts.map +1 -1
- package/dist/kit/SplitButton.js +8 -6
- package/dist/kit/SplitButton.js.map +1 -1
- package/dist/kit/Stat.d.ts.map +1 -1
- package/dist/kit/Stat.js +61 -60
- package/dist/kit/Stat.js.map +1 -1
- package/dist/kit/Stepper.js +22 -22
- package/dist/kit/Stepper.js.map +1 -1
- package/dist/kit/TabStrip.js +68 -68
- package/dist/kit/TabStrip.js.map +1 -1
- package/dist/kit/Text.js +63 -63
- package/dist/kit/Text.js.map +1 -1
- package/dist/kit/Toast.js +29 -29
- package/dist/kit/Toast.js.map +1 -1
- package/dist/kit/Tooltip.js +83 -83
- package/dist/kit/Tooltip.js.map +1 -1
- package/dist/kit/Trace.js +33 -33
- package/dist/kit/Trace.js.map +1 -1
- package/dist/kit/Upload.js +88 -88
- package/dist/kit/Upload.js.map +1 -1
- package/dist/kit/graphLayout.d.ts +32 -0
- package/dist/kit/graphLayout.d.ts.map +1 -0
- package/dist/kit/graphLayout.js +179 -0
- package/dist/kit/graphLayout.js.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +17 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +40 -4
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/ThemeScope.d.ts +9 -1
- package/dist/theme/ThemeScope.d.ts.map +1 -1
- package/dist/theme/ThemeScope.js +11 -4
- package/dist/theme/ThemeScope.js.map +1 -1
- package/dist/theme/tokens.d.ts +74 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/tokens.js +197 -3
- package/dist/theme/tokens.js.map +1 -1
- package/package.json +12 -6
- package/scripts/check-colour-literals.mjs +5 -1
- package/scripts/stable-styled-ids.mjs +75 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useId, useState } from "react";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { PROVIDER_COLOURS, v } from "../theme/tokens.js";
|
|
5
|
+
import { Icon } from "../kit/Icon.js";
|
|
6
|
+
import { MicroLabel } from "../kit/Panel.js";
|
|
7
|
+
import { Tag } from "../kit/Badge.js";
|
|
8
|
+
const FieldCtx = createContext(null);
|
|
9
|
+
/** The `AuthField` a control is inside, if any. Kit-internal: how `AuthCodeInput` joins a field. */
|
|
10
|
+
export function useAuthField() {
|
|
11
|
+
return useContext(FieldCtx);
|
|
12
|
+
}
|
|
13
|
+
const FieldWrap = styled.div.withConfig({ componentId: "sc-13vh4iu-0" })`
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 7px;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
.under { font-size: 12px; line-height: 1.5; color: ${v.faint}; }
|
|
19
|
+
.under.bad { color: ${v.danger}; }
|
|
20
|
+
`;
|
|
21
|
+
/**
|
|
22
|
+
* AuthField: a label over a control, with a hint or an error under it. The
|
|
23
|
+
* `AuthInput` or `AuthPasswordInput` inside is wired to both (`id`,
|
|
24
|
+
* `aria-describedby`, `aria-invalid`), so a screen writes none of that.
|
|
25
|
+
*/
|
|
26
|
+
export function AuthField({ label, hint, error, children }) {
|
|
27
|
+
const id = useId();
|
|
28
|
+
const under = error ? `${id}-e` : hint ? `${id}-h` : undefined;
|
|
29
|
+
return _jsx(FieldCtx.Provider, { value: { id, describedBy: under, invalid: !!error }, children: _jsxs(FieldWrap, { children: [_jsx(MicroLabel, { as: "label", htmlFor: id, children: label }), children, error ? _jsx("span", { id: under, className: "under bad", role: "alert", children: error }) :
|
|
30
|
+
hint ? _jsx("span", { id: under, className: "under", children: hint }) : null] }) });
|
|
31
|
+
}
|
|
32
|
+
const Input = styled.input.withConfig({ componentId: "sc-13vh4iu-1" })`
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 48px;
|
|
35
|
+
padding: 0 ${(p) => p.$pad ? "52px" : "14px"} 0 14px;
|
|
36
|
+
background: ${v.field};
|
|
37
|
+
border: 1px solid ${(p) => p.$invalid ? v.danger : v.fieldLine};
|
|
38
|
+
border-radius: ${v.rCtl};
|
|
39
|
+
color: ${v.text};
|
|
40
|
+
font-size: 14.5px;
|
|
41
|
+
&::placeholder { color: ${v.faint}; opacity: 0.8; }
|
|
42
|
+
&:hover { border-color: ${(p) => p.$invalid ? v.danger : v.line2}; }
|
|
43
|
+
&:focus-visible { border-color: ${v.brand}; }
|
|
44
|
+
&:disabled { opacity: 0.6; }
|
|
45
|
+
`;
|
|
46
|
+
/** AuthInput: the sign-in screens' text field. Inside an `AuthField` it takes its id and its error from it. */
|
|
47
|
+
export function AuthInput(props) {
|
|
48
|
+
const f = useContext(FieldCtx);
|
|
49
|
+
return _jsx(Input, { id: f?.id, "aria-describedby": f?.describedBy, "aria-invalid": f?.invalid || undefined, "$invalid": f?.invalid, ...props });
|
|
50
|
+
}
|
|
51
|
+
const Area = styled.textarea.withConfig({ componentId: "sc-13vh4iu-2" })`
|
|
52
|
+
width: 100%;
|
|
53
|
+
min-height: 96px;
|
|
54
|
+
padding: 12px 14px;
|
|
55
|
+
resize: vertical;
|
|
56
|
+
background: ${v.field};
|
|
57
|
+
border: 1px solid ${(p) => p.$invalid ? v.danger : v.fieldLine};
|
|
58
|
+
border-radius: ${v.rCtl};
|
|
59
|
+
color: ${v.text};
|
|
60
|
+
font-size: 14.5px;
|
|
61
|
+
line-height: 1.5;
|
|
62
|
+
&::placeholder { color: ${v.faint}; opacity: 0.8; }
|
|
63
|
+
&:hover { border-color: ${(p) => p.$invalid ? v.danger : v.line2}; }
|
|
64
|
+
&:focus-visible { border-color: ${v.brand}; }
|
|
65
|
+
&:disabled { opacity: 0.6; }
|
|
66
|
+
`;
|
|
67
|
+
/** AuthTextarea: the same field, several lines tall: a reason, a message. Inside an `AuthField` it takes its id and its error from it. */
|
|
68
|
+
export function AuthTextarea(props) {
|
|
69
|
+
const f = useContext(FieldCtx);
|
|
70
|
+
return _jsx(Area, { id: f?.id, "aria-describedby": f?.describedBy, "aria-invalid": f?.invalid || undefined, "$invalid": f?.invalid, ...props });
|
|
71
|
+
}
|
|
72
|
+
const Reveal = styled.div.withConfig({ componentId: "sc-13vh4iu-3" })`
|
|
73
|
+
position: relative;
|
|
74
|
+
button {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 2px;
|
|
77
|
+
right: 2px;
|
|
78
|
+
width: 44px;
|
|
79
|
+
height: 44px;
|
|
80
|
+
display: grid;
|
|
81
|
+
place-items: center;
|
|
82
|
+
color: ${v.faint};
|
|
83
|
+
border-radius: ${v.rCtl};
|
|
84
|
+
}
|
|
85
|
+
button:hover { color: ${v.text}; }
|
|
86
|
+
`;
|
|
87
|
+
/** AuthPasswordInput: a password field with a button to show what was typed, which is what replaces "confirm password". */
|
|
88
|
+
export function AuthPasswordInput(props) {
|
|
89
|
+
const f = useContext(FieldCtx);
|
|
90
|
+
const [shown, setShown] = useState(false);
|
|
91
|
+
return _jsxs(Reveal, { children: [_jsx(Input, { id: f?.id, "aria-describedby": f?.describedBy, "aria-invalid": f?.invalid || undefined, "$invalid": f?.invalid, "$pad": true, ...props, type: shown ? "text" : "password" }), _jsx("button", { type: "button", onClick: () => setShown((s) => !s), "aria-label": shown ? "Hide password" : "Show password", "aria-pressed": shown, children: _jsx(Icon, { name: shown ? "hide" : "reveal" }) })] });
|
|
92
|
+
}
|
|
93
|
+
const CheckLabel = styled.label.withConfig({ componentId: "sc-13vh4iu-4" })`
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: 8px;
|
|
97
|
+
min-height: 28px;
|
|
98
|
+
font-size: 13px;
|
|
99
|
+
line-height: 20px;
|
|
100
|
+
color: ${v.muted};
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
input { width: 16px; height: 16px; margin: 0; accent-color: ${v.brand}; }
|
|
103
|
+
`;
|
|
104
|
+
/** AuthCheck: one checkbox on a line: "Keep me signed in". */
|
|
105
|
+
export function AuthCheck({ children, ...props }) {
|
|
106
|
+
return _jsxs(CheckLabel, { children: [_jsx("input", { type: "checkbox", ...props }), _jsx("span", { children: children })] });
|
|
107
|
+
}
|
|
108
|
+
/** AuthRow: controls side by side that stack when there is no room: two device options, a checkbox and a link. */
|
|
109
|
+
export const AuthRow = styled.div.withConfig({ componentId: "sc-13vh4iu-5" })`
|
|
110
|
+
${(p) => p.$between ?
|
|
111
|
+
`display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 13px;
|
|
112
|
+
a { color: ${v.info}; font-weight: 500; text-decoration: none; padding: 6px 0; margin: -6px 0; } a:hover { text-decoration: underline; }` :
|
|
113
|
+
`display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(${p.$min ?? 150}px, 100%), 1fr));`}
|
|
114
|
+
`;
|
|
115
|
+
/** AuthStack: a tight column inside a panel: a field over its button. */
|
|
116
|
+
export const AuthStack = styled.div.withConfig({ componentId: "sc-13vh4iu-6" })`
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: ${(p) => p.$gap ?? 12}px;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
`;
|
|
122
|
+
const Rule = styled.div.withConfig({ componentId: "sc-13vh4iu-7" })`
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
gap: 12px;
|
|
126
|
+
color: ${v.faint};
|
|
127
|
+
font-family: ${v.label};
|
|
128
|
+
font-size: 10.5px;
|
|
129
|
+
font-weight: 600;
|
|
130
|
+
letter-spacing: 0.08em;
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
&::before, &::after { content: ""; flex: 1; height: 1px; background: ${v.line}; }
|
|
133
|
+
`;
|
|
134
|
+
/**
|
|
135
|
+
* AuthDivider: the rule between two ways to do the same thing: "or continue
|
|
136
|
+
* with". The kit's `Divider` without its margins, which a panel's own rhythm
|
|
137
|
+
* replaces.
|
|
138
|
+
*/
|
|
139
|
+
export function AuthDivider({ children }) {
|
|
140
|
+
return children ? _jsx(Rule, { children: children }) : _jsx(Rule, { "aria-hidden": true });
|
|
141
|
+
}
|
|
142
|
+
const G = PROVIDER_COLOURS.google;
|
|
143
|
+
const M = PROVIDER_COLOURS.microsoft;
|
|
144
|
+
/**
|
|
145
|
+
* ProviderMark: an identity provider's own mark, drawn here so no screen
|
|
146
|
+
* depends on an icon set being registered first. An unknown provider gets its
|
|
147
|
+
* initial, which is what a tenant's own OIDC provider looks like until it has
|
|
148
|
+
* a mark.
|
|
149
|
+
*/
|
|
150
|
+
export function ProviderMark({ name, label, size = 20 }) {
|
|
151
|
+
const box = { width: size, height: size, flex: "none" };
|
|
152
|
+
switch (name) {
|
|
153
|
+
case "apple":
|
|
154
|
+
return _jsx("svg", { viewBox: "0 0 24 24", style: box, fill: "currentColor", "aria-hidden": true, children: _jsx("path", { d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701" }) });
|
|
155
|
+
case "github":
|
|
156
|
+
return _jsx("svg", { viewBox: "0 0 16 16", style: box, fill: "currentColor", "aria-hidden": true, children: _jsx("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" }) });
|
|
157
|
+
case "discord":
|
|
158
|
+
return _jsx("svg", { viewBox: "0 0 127.14 96.36", style: { ...box, height: Math.round(size * 0.78) }, fill: PROVIDER_COLOURS.discord, "aria-hidden": true, children: _jsx("path", { d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" }) });
|
|
159
|
+
case "google":
|
|
160
|
+
return _jsxs("svg", { viewBox: "0 0 48 48", style: box, "aria-hidden": true, children: [_jsx("path", { fill: G.yellow, d: "M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z" }), _jsx("path", { fill: G.red, d: "M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z" }), _jsx("path", { fill: G.green, d: "M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0124 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z" }), _jsx("path", { fill: G.blue, d: "M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 01-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z" })] });
|
|
161
|
+
case "microsoft":
|
|
162
|
+
return _jsxs("svg", { viewBox: "0 0 21 21", style: { ...box, width: Math.round(size * 0.9), height: Math.round(size * 0.9) }, "aria-hidden": true, children: [_jsx("rect", { x: "1", y: "1", width: "9", height: "9", fill: M.red }), _jsx("rect", { x: "11", y: "1", width: "9", height: "9", fill: M.green }), _jsx("rect", { x: "1", y: "11", width: "9", height: "9", fill: M.blue }), _jsx("rect", { x: "11", y: "11", width: "9", height: "9", fill: M.yellow })] });
|
|
163
|
+
case "gitlab":
|
|
164
|
+
return _jsx("svg", { viewBox: "0 0 24 24", style: box, fill: PROVIDER_COLOURS.gitlab, "aria-hidden": true, children: _jsx("path", { d: "m23.6 9.593-.033-.086L20.3.98a.851.851 0 0 0-.336-.405.875.875 0 0 0-1 .054.875.875 0 0 0-.29.44L16.47 7.818H7.537L5.333 1.07a.857.857 0 0 0-.29-.441.875.875 0 0 0-1-.054.859.859 0 0 0-.336.405L.433 9.502l-.032.086a6.066 6.066 0 0 0 2.012 7.01l.01.009.03.02 4.977 3.727 2.462 1.863 1.5 1.132a1.008 1.008 0 0 0 1.22 0l1.499-1.132 2.461-1.863 5.008-3.75.012-.01a6.068 6.068 0 0 0 2.009-7.001z" }) });
|
|
165
|
+
default:{
|
|
166
|
+
const initial = (label ?? name).trim().charAt(0).toUpperCase() || "?";
|
|
167
|
+
return _jsx("span", { style: { ...box, display: "grid", placeItems: "center", fontWeight: 600, fontSize: Math.round(size * 0.7) }, "aria-hidden": true, children: initial });
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/** AuthProviders: the row of provider tiles. They share the width, and wrap when there are too many. */
|
|
172
|
+
export const AuthProviders = styled.div.withConfig({ componentId: "sc-13vh4iu-8" })`
|
|
173
|
+
display: grid;
|
|
174
|
+
gap: 8px;
|
|
175
|
+
grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
|
|
176
|
+
`;
|
|
177
|
+
const Tile = styled.a.withConfig({ componentId: "sc-13vh4iu-9" })`
|
|
178
|
+
position: relative;
|
|
179
|
+
height: 48px;
|
|
180
|
+
display: grid;
|
|
181
|
+
place-items: center;
|
|
182
|
+
background: ${(p) => p.$last ? v.brand12 : v.surface2};
|
|
183
|
+
border: 1px solid ${(p) => p.$last ? v.brand55 : v.line};
|
|
184
|
+
border-radius: ${v.rCtl};
|
|
185
|
+
color: ${v.text};
|
|
186
|
+
text-decoration: none;
|
|
187
|
+
transition: border-color 0.14s ease, background 0.14s ease;
|
|
188
|
+
&:hover { border-color: ${v.brand55}; }
|
|
189
|
+
.last {
|
|
190
|
+
position: absolute;
|
|
191
|
+
top: -8px;
|
|
192
|
+
left: 50%;
|
|
193
|
+
transform: translateX(-50%);
|
|
194
|
+
padding: 2px 5px;
|
|
195
|
+
background: ${v.brand};
|
|
196
|
+
color: ${v.onBrand};
|
|
197
|
+
font-family: ${v.mono};
|
|
198
|
+
font-size: 9px;
|
|
199
|
+
line-height: 12px;
|
|
200
|
+
font-weight: 500;
|
|
201
|
+
letter-spacing: 0.08em;
|
|
202
|
+
text-transform: uppercase;
|
|
203
|
+
white-space: nowrap;
|
|
204
|
+
}
|
|
205
|
+
`;
|
|
206
|
+
/**
|
|
207
|
+
* AuthProvider: one provider as a tile: its mark, with its name as the
|
|
208
|
+
* accessible name and the tooltip. `lastUsed` marks the one this browser signed
|
|
209
|
+
* in with last time.
|
|
210
|
+
*/
|
|
211
|
+
export function AuthProvider({ provider, label, verb = "Continue with", lastUsed, href, onClick, disabled }) {
|
|
212
|
+
const name = `${verb} ${label}${lastUsed ? ", the one you used last time" : ""}`;
|
|
213
|
+
const body = _jsxs(_Fragment, { children: [_jsx(ProviderMark, { name: provider, label: label }), lastUsed ? _jsx("span", { className: "last", "aria-hidden": true, children: "Last used" }) : null] });
|
|
214
|
+
if (href && !disabled) {
|
|
215
|
+
return _jsx(Tile, { href: href, "$last": lastUsed, "aria-label": name, title: label, onClick: onClick, children: body });
|
|
216
|
+
}
|
|
217
|
+
return _jsx(Tile, { as: "button", type: "button", "$last": lastUsed, "aria-label": name, title: label, onClick: onClick, disabled: disabled, children: body });
|
|
218
|
+
}
|
|
219
|
+
// ---------------------------------------------------------------------------
|
|
220
|
+
// People
|
|
221
|
+
const Face = styled.span.withConfig({ componentId: "sc-13vh4iu-10" })`
|
|
222
|
+
flex: none;
|
|
223
|
+
width: ${(p) => p.$size}px;
|
|
224
|
+
height: ${(p) => p.$size}px;
|
|
225
|
+
display: grid;
|
|
226
|
+
place-items: center;
|
|
227
|
+
border-radius: 50%;
|
|
228
|
+
background: ${(p) => p.$src ? `url(${JSON.stringify(p.$src)}) center/cover` : v.brand22};
|
|
229
|
+
color: ${v.text};
|
|
230
|
+
font-size: ${(p) => Math.round(p.$size * 0.4)}px;
|
|
231
|
+
font-weight: 600;
|
|
232
|
+
`;
|
|
233
|
+
function initialOf(name) {
|
|
234
|
+
return name.trim().charAt(0).toUpperCase() || "?";
|
|
235
|
+
}
|
|
236
|
+
const Chip = styled.div.withConfig({ componentId: "sc-13vh4iu-11" })`
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: 10px;
|
|
240
|
+
min-width: 0;
|
|
241
|
+
${(p) => p.$bare ? "" : `padding: 7px 10px 7px 8px; background: ${v.surface2}; border: 1px solid ${v.line}; border-radius: ${v.rCtl};`}
|
|
242
|
+
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
243
|
+
.name { font-size: 13.5px; line-height: 18px; font-weight: 500; color: ${v.text}; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
244
|
+
.detail { font-size: 12px; line-height: 16px; color: ${v.muted}; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
245
|
+
.act { flex: none; display: flex; }
|
|
246
|
+
.act a, .act button { font-size: 12.5px; font-weight: 500; color: ${v.info}; text-decoration: none; padding: 8px 4px; margin: -8px -4px; }
|
|
247
|
+
.act a:hover, .act button:hover { text-decoration: underline; }
|
|
248
|
+
`;
|
|
249
|
+
/**
|
|
250
|
+
* AuthIdentity: who this step is for: the address just typed, or the account
|
|
251
|
+
* in use, with the way to change it. Boxed by default; `bare` inside a fact.
|
|
252
|
+
*/
|
|
253
|
+
export function AuthIdentity({ name, detail, avatarUrl, action, bare }) {
|
|
254
|
+
return _jsxs(Chip, { "$bare": bare, children: [_jsx(Face, { "$size": bare ? 30 : 26, "$src": avatarUrl, "aria-hidden": true, children: avatarUrl ? null : initialOf(name) }), _jsxs("span", { className: "who", children: [_jsx("span", { className: "name", children: name }), detail ? _jsx("span", { className: "detail", children: detail }) : null] }), action ? _jsx("span", { className: "act", children: action }) : null] });
|
|
255
|
+
}
|
|
256
|
+
/** AuthAccounts: the accounts signed in on this browser. A list of `AuthAccount`. */
|
|
257
|
+
export const AuthAccounts = styled.ul.withConfig({ componentId: "sc-13vh4iu-12" })`
|
|
258
|
+
list-style: none;
|
|
259
|
+
margin: 0;
|
|
260
|
+
padding: 0;
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
gap: 8px;
|
|
264
|
+
`;
|
|
265
|
+
const Account = styled.li.withConfig({ componentId: "sc-13vh4iu-13" })`
|
|
266
|
+
display: flex;
|
|
267
|
+
align-items: center;
|
|
268
|
+
background: ${v.surface2};
|
|
269
|
+
border: 1px solid ${v.line};
|
|
270
|
+
border-radius: ${v.rCtl};
|
|
271
|
+
transition: border-color 0.14s ease;
|
|
272
|
+
&:hover { border-color: ${v.brand55}; }
|
|
273
|
+
.pick {
|
|
274
|
+
flex: 1;
|
|
275
|
+
min-width: 0;
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
gap: 12px;
|
|
279
|
+
padding: 10px 4px 10px 12px;
|
|
280
|
+
text-align: left;
|
|
281
|
+
text-decoration: none;
|
|
282
|
+
color: inherit;
|
|
283
|
+
}
|
|
284
|
+
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
285
|
+
.name { font-size: 14px; line-height: 20px; font-weight: 500; color: ${v.text}; }
|
|
286
|
+
.detail { font-size: 12px; line-height: 16px; color: ${v.muted}; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
287
|
+
.out { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: ${v.faint}; }
|
|
288
|
+
.out:hover { color: ${v.danger}; }
|
|
289
|
+
`;
|
|
290
|
+
/**
|
|
291
|
+
* AuthAccount: one account to continue as, with the way to sign it out of this
|
|
292
|
+
* browser. Choosing it is a link (`href`), a click (`onSelect`), or, for a
|
|
293
|
+
* server-rendered page that must work before its script loads, a form
|
|
294
|
+
* submission: give `submit` and put the list inside a `<form>`. Signing out
|
|
295
|
+
* is a link (`signOutHref`) or a click (`onSignOut`).
|
|
296
|
+
*/
|
|
297
|
+
export function AuthAccount({ name, email, avatarUrl, via, href, submit, onSelect, signOutHref, onSignOut }) {
|
|
298
|
+
const body = _jsxs(_Fragment, { children: [_jsx(Face, { "$size": 36, "$src": avatarUrl, "aria-hidden": true, children: avatarUrl ? null : initialOf(name) }), _jsxs("span", { className: "who", children: [_jsx("span", { className: "name", children: name }), email ? _jsx("span", { className: "detail", children: email }) : null] }), via ? _jsx(Tag, { children: via }) : null] });
|
|
299
|
+
return _jsxs(Account, { children: [href ? _jsx("a", { className: "pick", href: href, onClick: onSelect, children: body }) :
|
|
300
|
+
submit ? _jsx("button", { type: "submit", name: submit.name, value: submit.value, className: "pick", onClick: onSelect, children: body }) :
|
|
301
|
+
_jsx("button", { type: "button", className: "pick", onClick: onSelect, children: body }), signOutHref ? _jsx("a", { className: "out", href: signOutHref, onClick: onSignOut, "aria-label": `Sign out of ${name}`, title: "Sign out of this account", children: _jsx(Icon, { name: "sign-out" }) }) : onSignOut ? _jsx("button", { type: "button", className: "out", onClick: onSignOut, "aria-label": `Sign out of ${name}`, title: "Sign out of this account", children: _jsx(Icon, { name: "sign-out" }) }) : null] });
|
|
302
|
+
}
|
|
303
|
+
const Another = styled.button.withConfig({ componentId: "sc-13vh4iu-14" })`
|
|
304
|
+
height: 46px;
|
|
305
|
+
width: 100%;
|
|
306
|
+
display: flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
justify-content: center;
|
|
309
|
+
gap: 8px;
|
|
310
|
+
border: 1px dashed ${v.line2};
|
|
311
|
+
border-radius: ${v.rCtl};
|
|
312
|
+
color: ${v.muted};
|
|
313
|
+
font-size: 13px;
|
|
314
|
+
font-weight: 500;
|
|
315
|
+
&:hover { color: ${v.text}; border-color: ${v.brand55}; }
|
|
316
|
+
`;
|
|
317
|
+
/** AuthAnotherAccount: the dashed row under the list: sign in as someone not listed. */
|
|
318
|
+
export function AuthAnotherAccount({ children = "Use another account", ...props }) {
|
|
319
|
+
return _jsxs(Another, { type: "button", ...props, children: [_jsx(Icon, { name: "add" }), children] });
|
|
320
|
+
}
|
|
321
|
+
// ---------------------------------------------------------------------------
|
|
322
|
+
// Steps and waiting
|
|
323
|
+
/** AuthSteps: numbered things to do somewhere else: on your other device, in your authenticator. */
|
|
324
|
+
export const AuthSteps = styled.ol.withConfig({ componentId: "sc-13vh4iu-15" })`
|
|
325
|
+
list-style: none;
|
|
326
|
+
margin: 0;
|
|
327
|
+
padding: 0;
|
|
328
|
+
counter-reset: step;
|
|
329
|
+
display: flex;
|
|
330
|
+
flex-direction: column;
|
|
331
|
+
border-bottom: 1px solid ${v.line};
|
|
332
|
+
li {
|
|
333
|
+
counter-increment: step;
|
|
334
|
+
display: flex;
|
|
335
|
+
align-items: center;
|
|
336
|
+
gap: 12px;
|
|
337
|
+
padding: 10px 0;
|
|
338
|
+
border-top: 1px solid ${v.line};
|
|
339
|
+
font-size: 13.5px;
|
|
340
|
+
line-height: 1.45;
|
|
341
|
+
color: ${v.muted};
|
|
342
|
+
}
|
|
343
|
+
li::before {
|
|
344
|
+
content: counter(step);
|
|
345
|
+
flex: none;
|
|
346
|
+
width: 26px;
|
|
347
|
+
height: 26px;
|
|
348
|
+
display: grid;
|
|
349
|
+
place-items: center;
|
|
350
|
+
background: ${v.surface2};
|
|
351
|
+
font-family: ${v.mono};
|
|
352
|
+
font-size: 12px;
|
|
353
|
+
color: ${v.info};
|
|
354
|
+
}
|
|
355
|
+
li strong, li code { color: ${v.text}; font-weight: 500; }
|
|
356
|
+
li code { font-family: ${v.mono}; }
|
|
357
|
+
`;
|
|
358
|
+
const Pending = styled.div.withConfig({ componentId: "sc-13vh4iu-16" })`
|
|
359
|
+
display: flex;
|
|
360
|
+
align-items: center;
|
|
361
|
+
justify-content: space-between;
|
|
362
|
+
gap: 12px;
|
|
363
|
+
padding: 10px 12px;
|
|
364
|
+
background: ${v.surface2};
|
|
365
|
+
border: 1px solid ${v.line};
|
|
366
|
+
border-radius: ${v.rCtl};
|
|
367
|
+
font-size: 13px;
|
|
368
|
+
line-height: 18px;
|
|
369
|
+
.what { display: flex; align-items: center; gap: 9px; color: ${v.text}; }
|
|
370
|
+
.dot { width: 8px; height: 8px; background: ${v.info}; animation: xa-wait 1.6s ease-in-out infinite; }
|
|
371
|
+
.meta { font-family: ${v.mono}; font-size: 12px; color: ${v.muted}; }
|
|
372
|
+
@keyframes xa-wait { 50% { opacity: 0.35; } }
|
|
373
|
+
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
|
|
374
|
+
`;
|
|
375
|
+
/** AuthPending: the screen is waiting on something elsewhere: an approval, a device. `meta` is what runs out. */
|
|
376
|
+
export function AuthPending({ children, meta }) {
|
|
377
|
+
return _jsxs(Pending, { role: "status", children: [_jsxs("span", { className: "what", children: [_jsx("span", { className: "dot", "aria-hidden": true }), children] }), meta ? _jsx("span", { className: "meta", children: meta }) : null] });
|
|
378
|
+
}
|
|
379
|
+
//# sourceMappingUR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M,SAAS,EAAC,KAAK,wBAAe,EAAC,QAAQ,IAAQ,EAC3E,IAAI,GAAG,eAAM,SAAS,EAAC,MAAM,YAAE,IAAI,GAAQ,GAAG,IAAI,IAC3C;AAEd","ignoreList":[]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface AuthGroundProps {
|
|
3
|
+
/** The wordmark in the top-left corner: "Xeonr · Identity". */
|
|
4
|
+
label?: ReactNode | undefined;
|
|
5
|
+
/** What sits in the top-right corner. Default: the theme button. `null` for nothing. */
|
|
6
|
+
tools?: ReactNode | undefined;
|
|
7
|
+
/** Under the panel: an `AuthFooter`. */
|
|
8
|
+
footer?: ReactNode | undefined;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/** AuthGround: the page a sign-in panel stands on. One per screen. */
|
|
12
|
+
export declare function AuthGround({ label, tools, footer, children }: AuthGroundProps): import("react").JSX.Element;
|
|
13
|
+
/** AuthThemeButton: system, then the other scheme, then back. Nothing outside a theme provider. */
|
|
14
|
+
export declare function AuthThemeButton(): import("react").JSX.Element | null;
|
|
15
|
+
/** AuthFooter: legal links and who runs the page. A link renders only when it has somewhere to go. */
|
|
16
|
+
export declare function AuthFooter({ termsHref, privacyHref, children }: {
|
|
17
|
+
termsHref?: string | undefined;
|
|
18
|
+
privacyHref?: string | undefined;
|
|
19
|
+
/** who secures the page: "Secured by Xeonr" */
|
|
20
|
+
children?: ReactNode | undefined;
|
|
21
|
+
}): import("react").JSX.Element | null;
|
|
22
|
+
export interface AuthPanelProps {
|
|
23
|
+
/**
|
|
24
|
+
* The host this page is really on, shown in the strip across the panel's
|
|
25
|
+
* top: `auth.xeonr.io`. It is the one thing on the screen an application's
|
|
26
|
+
* branding cannot change, so say it on every screen.
|
|
27
|
+
*/
|
|
28
|
+
domain?: string | undefined;
|
|
29
|
+
/** The flow was started by an application this organisation has verified. */
|
|
30
|
+
verified?: boolean | undefined;
|
|
31
|
+
/** Two panes wide. Put `AuthPanes` inside. */
|
|
32
|
+
wide?: boolean | undefined;
|
|
33
|
+
/** The panel's accessible name, when its title is not a heading inside it. */
|
|
34
|
+
"aria-label"?: string | undefined;
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
/** AuthPanel: the one surface of a sign-in screen. `AuthBody` inside for a single panel, `AuthPanes` for two. */
|
|
38
|
+
export declare function AuthPanel({ domain, verified, wide, children, ...rest }: AuthPanelProps): import("react").JSX.Element;
|
|
39
|
+
/** AuthBody: a single panel's content, or one pane's. A column with the screen's rhythm. */
|
|
40
|
+
export declare const AuthBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
41
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
$gap?: number | undefined;
|
|
44
|
+
}>> & string;
|
|
45
|
+
/** AuthPanes: two panes side by side, stacked on a phone. `AuthAside` then `AuthBody`. */
|
|
46
|
+
export declare const AuthPanes: 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
|
+
/** AuthAside: the leading pane, on the inset surface: who is asking, or what to scan. */
|
|
50
|
+
export declare const AuthAside: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
51
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
$gap?: number | undefined;
|
|
54
|
+
}>, "as" | "forwardedAs"> & {
|
|
55
|
+
as?: import("styled-components").WebTarget | undefined;
|
|
56
|
+
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
57
|
+
}, "style"> & {
|
|
58
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
59
|
+
[key: `--${string}`]: string | number | undefined;
|
|
60
|
+
}) | undefined;
|
|
61
|
+
}> & string;
|
|
62
|
+
/** AuthMark: the tile a logo sits in. The organisation's own on the brand gradient; `$plain` for an application's. */
|
|
63
|
+
export declare const AuthMark: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
64
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
$plain?: boolean | undefined;
|
|
67
|
+
$size?: number | undefined;
|
|
68
|
+
}>> & string;
|
|
69
|
+
/** AuthLockup: an application's mark joined to the organisation's: "this app, on this organisation". */
|
|
70
|
+
export declare function AuthLockup({ app, org }: {
|
|
71
|
+
app: ReactNode;
|
|
72
|
+
org: ReactNode;
|
|
73
|
+
}): import("react").JSX.Element;
|
|
74
|
+
/** AuthTitle: the screen's one heading. An `h1`; pass `as="h2"` for a second panel on a page. */
|
|
75
|
+
export declare const AuthTitle: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
|
|
76
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
77
|
+
}> & string;
|
|
78
|
+
/** AuthLead: the line under the title. */
|
|
79
|
+
export declare const AuthLead: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
80
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
81
|
+
}> & string;
|
|
82
|
+
/** AuthNote: the small print: what happens next, a limit, a reassurance. */
|
|
83
|
+
export declare const AuthNote: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
84
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
85
|
+
}> & string;
|
|
86
|
+
/** AuthHead: a mark beside the title and its lead. Without a mark it is the title block alone. */
|
|
87
|
+
export declare function AuthHead({ mark, title, children }: {
|
|
88
|
+
mark?: ReactNode | undefined;
|
|
89
|
+
title: ReactNode;
|
|
90
|
+
/** the lead */
|
|
91
|
+
children?: ReactNode | undefined;
|
|
92
|
+
}): import("react").JSX.Element;
|
|
93
|
+
/** AuthFacts / AuthFact: what a request says about itself: a device, a place, where it returns to. */
|
|
94
|
+
export declare function AuthFacts({ children }: {
|
|
95
|
+
children: ReactNode;
|
|
96
|
+
}): import("react").JSX.Element;
|
|
97
|
+
export declare function AuthFact({ label, mono, children }: {
|
|
98
|
+
label: ReactNode;
|
|
99
|
+
mono?: boolean | undefined;
|
|
100
|
+
children: ReactNode;
|
|
101
|
+
}): import("react").JSX.Element;
|
|
102
|
+
/** AuthLinks: the quiet row at a panel's foot: "New here? Create an account". Ruled off from what is above. */
|
|
103
|
+
export declare const AuthLinks: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
104
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
105
|
+
}> & string;
|
|
106
|
+
//# sourceMappingURL=AuthPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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