@sharadox/graphical-user-interface-web-library 0.2.0-fields.9 → 0.2.0-interface-refinement.34
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/README.md +45 -7
- package/distribution/accordion/index.d.ts +11 -0
- package/distribution/accordion/index.d.ts.map +1 -0
- package/distribution/accordion/index.js +36 -0
- package/distribution/accordion/index.js.map +1 -0
- package/distribution/accordion/index.module.css +1 -0
- package/distribution/accordion/index.module.scss +56 -0
- package/distribution/accordion/type.d.ts +21 -0
- package/distribution/accordion/type.d.ts.map +1 -0
- package/distribution/accordion/type.js +2 -0
- package/distribution/accordion/type.js.map +1 -0
- package/distribution/avatar/index.d.ts +20 -0
- package/distribution/avatar/index.d.ts.map +1 -0
- package/distribution/avatar/index.js +35 -0
- package/distribution/avatar/index.js.map +1 -0
- package/distribution/avatar/index.module.css +1 -0
- package/distribution/avatar/index.module.scss +16 -0
- package/distribution/avatar/type.d.ts +9 -0
- package/distribution/avatar/type.d.ts.map +1 -0
- package/distribution/avatar/type.js +2 -0
- package/distribution/avatar/type.js.map +1 -0
- package/distribution/badge/index.d.ts +10 -0
- package/distribution/badge/index.d.ts.map +1 -0
- package/distribution/badge/index.js +15 -0
- package/distribution/badge/index.js.map +1 -0
- package/distribution/badge/index.module.css +1 -0
- package/distribution/badge/index.module.scss +7 -0
- package/distribution/badge/type.d.ts +4 -0
- package/distribution/badge/type.d.ts.map +1 -0
- package/distribution/badge/type.js +2 -0
- package/distribution/badge/type.js.map +1 -0
- package/distribution/box/index.d.ts +2 -1
- package/distribution/box/index.d.ts.map +1 -1
- package/distribution/box/index.js +11 -4
- package/distribution/box/index.js.map +1 -1
- package/distribution/box/index.module.css +1 -1
- package/distribution/box/index.module.scss +37 -3
- package/distribution/box/type.d.ts +18 -3
- package/distribution/box/type.d.ts.map +1 -1
- package/distribution/box-axis/index.d.ts +3 -1
- package/distribution/box-axis/index.d.ts.map +1 -1
- package/distribution/box-axis/index.js +70 -16
- package/distribution/box-axis/index.js.map +1 -1
- package/distribution/button/index.d.ts +2 -2
- package/distribution/button/index.d.ts.map +1 -1
- package/distribution/button/index.js +6 -5
- package/distribution/button/index.js.map +1 -1
- package/distribution/button/type.d.ts +4 -1
- package/distribution/button/type.d.ts.map +1 -1
- package/distribution/button-axis/index.d.ts +1 -1
- package/distribution/button-axis/index.js +1 -1
- package/distribution/button-axis/index.js.map +1 -1
- package/distribution/card/index.d.ts +11 -0
- package/distribution/card/index.d.ts.map +1 -0
- package/distribution/card/index.js +18 -0
- package/distribution/card/index.js.map +1 -0
- package/distribution/card/index.module.css +1 -0
- package/distribution/card/index.module.scss +22 -0
- package/distribution/card/type.d.ts +15 -0
- package/distribution/card/type.d.ts.map +1 -0
- package/distribution/card/type.js +2 -0
- package/distribution/card/type.js.map +1 -0
- package/distribution/code-boxes/index.d.ts +11 -0
- package/distribution/code-boxes/index.d.ts.map +1 -0
- package/distribution/code-boxes/index.js +64 -0
- package/distribution/code-boxes/index.js.map +1 -0
- package/distribution/code-boxes/index.module.css +1 -0
- package/distribution/code-boxes/index.module.scss +28 -0
- package/distribution/code-boxes/type.d.ts +17 -0
- package/distribution/code-boxes/type.d.ts.map +1 -0
- package/distribution/code-boxes/type.js +2 -0
- package/distribution/code-boxes/type.js.map +1 -0
- package/distribution/combobox/index.d.ts +18 -0
- package/distribution/combobox/index.d.ts.map +1 -0
- package/distribution/combobox/index.js +105 -0
- package/distribution/combobox/index.js.map +1 -0
- package/distribution/combobox/index.module.css +1 -0
- package/distribution/combobox/index.module.scss +25 -0
- package/distribution/combobox/type.d.ts +8 -0
- package/distribution/combobox/type.d.ts.map +1 -0
- package/distribution/combobox/type.js +2 -0
- package/distribution/combobox/type.js.map +1 -0
- package/distribution/copy-button/index.d.ts +10 -0
- package/distribution/copy-button/index.d.ts.map +1 -0
- package/distribution/copy-button/index.js +26 -0
- package/distribution/copy-button/index.js.map +1 -0
- package/distribution/copy-button/type.d.ts +11 -0
- package/distribution/copy-button/type.d.ts.map +1 -0
- package/distribution/copy-button/type.js +2 -0
- package/distribution/copy-button/type.js.map +1 -0
- package/distribution/date-picker/index.d.ts +35 -0
- package/distribution/date-picker/index.d.ts.map +1 -0
- package/distribution/date-picker/index.js +161 -0
- package/distribution/date-picker/index.js.map +1 -0
- package/distribution/date-picker/index.module.css +1 -0
- package/distribution/date-picker/index.module.scss +70 -0
- package/distribution/date-picker/type.d.ts +41 -0
- package/distribution/date-picker/type.d.ts.map +1 -0
- package/distribution/date-picker/type.js +2 -0
- package/distribution/date-picker/type.js.map +1 -0
- package/distribution/dialog/index.d.ts +12 -0
- package/distribution/dialog/index.d.ts.map +1 -0
- package/distribution/dialog/index.js +56 -0
- package/distribution/dialog/index.js.map +1 -0
- package/distribution/dialog/index.module.css +1 -0
- package/distribution/dialog/index.module.scss +59 -0
- package/distribution/dialog/type.d.ts +11 -0
- package/distribution/dialog/type.d.ts.map +1 -0
- package/distribution/dialog/type.js +2 -0
- package/distribution/dialog/type.js.map +1 -0
- package/distribution/field/index.d.ts +1 -1
- package/distribution/field/index.d.ts.map +1 -1
- package/distribution/field/index.js +2 -2
- package/distribution/field/index.js.map +1 -1
- package/distribution/glow-layer/index.d.ts +13 -0
- package/distribution/glow-layer/index.d.ts.map +1 -0
- package/distribution/glow-layer/index.js +38 -0
- package/distribution/glow-layer/index.js.map +1 -0
- package/distribution/glow-layer/index.module.css +1 -0
- package/distribution/glow-layer/index.module.scss +31 -0
- package/distribution/glow-layer/type.d.ts +5 -0
- package/distribution/glow-layer/type.d.ts.map +1 -0
- package/distribution/glow-layer/type.js +2 -0
- package/distribution/glow-layer/type.js.map +1 -0
- package/distribution/interface-configuration/index.d.ts +1 -1
- package/distribution/interface-configuration/index.d.ts.map +1 -1
- package/distribution/interface-configuration/index.js +16 -4
- package/distribution/interface-configuration/index.js.map +1 -1
- package/distribution/interface-configuration/type.d.ts +10 -2
- package/distribution/interface-configuration/type.d.ts.map +1 -1
- package/distribution/listbox/index.d.ts +11 -0
- package/distribution/listbox/index.d.ts.map +1 -0
- package/distribution/listbox/index.js +21 -0
- package/distribution/listbox/index.js.map +1 -0
- package/distribution/listbox/index.module.css +1 -0
- package/distribution/listbox/index.module.scss +38 -0
- package/distribution/listbox/type.d.ts +22 -0
- package/distribution/listbox/type.d.ts.map +1 -0
- package/distribution/listbox/type.js +2 -0
- package/distribution/listbox/type.js.map +1 -0
- package/distribution/navigation/index.d.ts +13 -0
- package/distribution/navigation/index.d.ts.map +1 -0
- package/distribution/navigation/index.js +27 -0
- package/distribution/navigation/index.js.map +1 -0
- package/distribution/navigation/index.module.css +1 -0
- package/distribution/navigation/index.module.scss +64 -0
- package/distribution/navigation/type.d.ts +24 -0
- package/distribution/navigation/type.d.ts.map +1 -0
- package/distribution/navigation/type.js +2 -0
- package/distribution/navigation/type.js.map +1 -0
- package/distribution/notification/index.d.ts +19 -0
- package/distribution/notification/index.d.ts.map +1 -0
- package/distribution/notification/index.js +48 -0
- package/distribution/notification/index.js.map +1 -0
- package/distribution/notification/index.module.css +1 -0
- package/distribution/notification/index.module.scss +35 -0
- package/distribution/notification/type.d.ts +23 -0
- package/distribution/notification/type.d.ts.map +1 -0
- package/distribution/notification/type.js +2 -0
- package/distribution/notification/type.js.map +1 -0
- package/distribution/number-field/index.d.ts +10 -0
- package/distribution/number-field/index.d.ts.map +1 -0
- package/distribution/number-field/index.js +46 -0
- package/distribution/number-field/index.js.map +1 -0
- package/distribution/number-field/index.module.css +1 -0
- package/distribution/number-field/index.module.scss +29 -0
- package/distribution/number-field/type.d.ts +29 -0
- package/distribution/number-field/type.d.ts.map +1 -0
- package/distribution/number-field/type.js +2 -0
- package/distribution/number-field/type.js.map +1 -0
- package/distribution/select/index.d.ts +13 -0
- package/distribution/select/index.d.ts.map +1 -0
- package/distribution/select/index.js +102 -0
- package/distribution/select/index.js.map +1 -0
- package/distribution/select/index.module.css +1 -0
- package/distribution/select/index.module.scss +42 -0
- package/distribution/select/type.d.ts +25 -0
- package/distribution/select/type.d.ts.map +1 -0
- package/distribution/select/type.js +2 -0
- package/distribution/select/type.js.map +1 -0
- package/distribution/separator/index.d.ts +11 -0
- package/distribution/separator/index.d.ts.map +1 -0
- package/distribution/separator/index.js +16 -0
- package/distribution/separator/index.js.map +1 -0
- package/distribution/separator/index.module.css +1 -0
- package/distribution/separator/index.module.scss +12 -0
- package/distribution/separator/type.d.ts +7 -0
- package/distribution/separator/type.d.ts.map +1 -0
- package/distribution/separator/type.js +2 -0
- package/distribution/separator/type.js.map +1 -0
- package/distribution/skeleton/index.d.ts +11 -0
- package/distribution/skeleton/index.d.ts.map +1 -0
- package/distribution/skeleton/index.js +20 -0
- package/distribution/skeleton/index.js.map +1 -0
- package/distribution/skeleton/index.module.css +1 -0
- package/distribution/skeleton/index.module.scss +96 -0
- package/distribution/skeleton/type.d.ts +16 -0
- package/distribution/skeleton/type.d.ts.map +1 -0
- package/distribution/skeleton/type.js +2 -0
- package/distribution/skeleton/type.js.map +1 -0
- package/distribution/skeleton-value/index.d.ts +10 -0
- package/distribution/skeleton-value/index.d.ts.map +1 -0
- package/distribution/skeleton-value/index.js +15 -0
- package/distribution/skeleton-value/index.js.map +1 -0
- package/distribution/skeleton-value/index.module.css +1 -0
- package/distribution/skeleton-value/index.module.scss +35 -0
- package/distribution/skeleton-value/type.d.ts +9 -0
- package/distribution/skeleton-value/type.d.ts.map +1 -0
- package/distribution/skeleton-value/type.js +2 -0
- package/distribution/skeleton-value/type.js.map +1 -0
- package/distribution/style-sheet/index.d.ts.map +1 -1
- package/distribution/style-sheet/index.js +109 -28
- package/distribution/style-sheet/index.js.map +1 -1
- package/distribution/switch/index.js +1 -1
- package/distribution/switch/index.js.map +1 -1
- package/distribution/switch/index.module.css +1 -1
- package/distribution/switch/index.module.scss +5 -3
- package/distribution/tabs/index.d.ts +11 -0
- package/distribution/tabs/index.d.ts.map +1 -0
- package/distribution/tabs/index.js +45 -0
- package/distribution/tabs/index.js.map +1 -0
- package/distribution/tabs/index.module.css +1 -0
- package/distribution/tabs/index.module.scss +13 -0
- package/distribution/tabs/type.d.ts +19 -0
- package/distribution/tabs/type.d.ts.map +1 -0
- package/distribution/tabs/type.js +2 -0
- package/distribution/tabs/type.js.map +1 -0
- package/distribution/text-field/index.js +1 -1
- package/distribution/text-field/index.js.map +1 -1
- package/distribution/tip/index.d.ts +10 -0
- package/distribution/tip/index.d.ts.map +1 -0
- package/distribution/tip/index.js +22 -0
- package/distribution/tip/index.js.map +1 -0
- package/distribution/tip/index.module.css +1 -0
- package/distribution/tip/index.module.scss +24 -0
- package/distribution/tip/type.d.ts +7 -0
- package/distribution/tip/type.d.ts.map +1 -0
- package/distribution/tip/type.js +2 -0
- package/distribution/tip/type.js.map +1 -0
- package/distribution/toggle-mark/index.js +1 -1
- package/distribution/toggle-mark/index.js.map +1 -1
- package/distribution/wrapper/index.d.ts +11 -0
- package/distribution/wrapper/index.d.ts.map +1 -0
- package/distribution/wrapper/index.js +16 -0
- package/distribution/wrapper/index.js.map +1 -0
- package/distribution/wrapper/index.module.css +1 -0
- package/distribution/wrapper/index.module.scss +9 -0
- package/distribution/wrapper/type.d.ts +4 -0
- package/distribution/wrapper/type.d.ts.map +1 -0
- package/distribution/wrapper/type.js +2 -0
- package/distribution/wrapper/type.js.map +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/dialog/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAMnG;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BA8DtF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
4
|
+
import { Box } from "@sharadox/graphical-user-interface-web-library/box";
|
|
5
|
+
import { Button } from "@sharadox/graphical-user-interface-web-library/button";
|
|
6
|
+
import styles from "./index.module.css";
|
|
7
|
+
/** The longest a leaving animation may take before the dialog closes anyway (reduced motion runs none). */
|
|
8
|
+
const LEAVING_MILLISECONDS = 300;
|
|
9
|
+
/**
|
|
10
|
+
* A pop-up in the middle of the screen (the browser's own modal dialog: focus stays inside, the page behind is
|
|
11
|
+
* inert), named by its title, closed by Escape, its close button or a click on the backdrop. It leaves the way it
|
|
12
|
+
* came: the opening animation runs backwards before it closes, no longer modal meanwhile, so the page behind works
|
|
13
|
+
* at once.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <Dialog open={asking} onClose={() => setAsking(false)} title="Check Your Email" closeLabel="Close">…</Dialog>
|
|
17
|
+
*/
|
|
18
|
+
export function Dialog({ open, onClose, title, closeLabel, children }) {
|
|
19
|
+
const dialog = useRef(null);
|
|
20
|
+
const titleId = useId();
|
|
21
|
+
// Leaving: closed by the parent but still on screen while its animation runs backwards.
|
|
22
|
+
const [leaving, setLeaving] = useState(false);
|
|
23
|
+
const [wasOpen, setWasOpen] = useState(open);
|
|
24
|
+
if (open !== wasOpen) {
|
|
25
|
+
setWasOpen(open);
|
|
26
|
+
setLeaving(!open);
|
|
27
|
+
}
|
|
28
|
+
const finish = () => {
|
|
29
|
+
dialog.current.close();
|
|
30
|
+
setLeaving(false);
|
|
31
|
+
};
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
const element = dialog.current;
|
|
34
|
+
if (open && !element.open)
|
|
35
|
+
element.showModal();
|
|
36
|
+
if (!leaving)
|
|
37
|
+
return;
|
|
38
|
+
// Leaving, it stops being modal at once, so the page behind works straight away; it stays on screen only for
|
|
39
|
+
// its animation.
|
|
40
|
+
element.close();
|
|
41
|
+
element.show();
|
|
42
|
+
const timer = setTimeout(finish, LEAVING_MILLISECONDS);
|
|
43
|
+
return () => clearTimeout(timer);
|
|
44
|
+
}, [open, leaving]);
|
|
45
|
+
return (_jsx("dialog", { ref: dialog, className: styles.dialog, "aria-labelledby": titleId, "data-closing": leaving ? "" : undefined, onAnimationEnd: (event) => {
|
|
46
|
+
if (event.target === dialog.current && leaving)
|
|
47
|
+
finish();
|
|
48
|
+
}, onCancel: (event) => {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
onClose();
|
|
51
|
+
}, onClick: (event) => {
|
|
52
|
+
if (event.target === dialog.current)
|
|
53
|
+
onClose();
|
|
54
|
+
}, children: (open || leaving) && (_jsxs(Box, { direction: "top-to-bottom", align: "stretch", textAlign: "start", gap: 16, padding: 24, children: [_jsxs(Box, { justify: "space-between", align: "start", gap: 16, children: [_jsx("h2", { id: titleId, className: styles.title, children: title }), _jsx(Button, { square: true, variant: "transparent", color: "middleground", icon: "close", "aria-label": closeLabel, onClick: onClose })] }), children] })) }));
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/dialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,uDAAuD,CAAC;AAE/E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,2GAA2G;AAC3G,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAoB;IACrF,MAAM,MAAM,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC;I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,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,OAAO,EAAE,CAAC;QACZ,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO;gBAAE,OAAO,EAAE,CAAC;QACjD,CAAC,YAEA,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CACpB,MAAC,GAAG,IAAC,SAAS,EAAC,eAAe,EAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAC,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,aACnF,MAAC,GAAG,IAAC,OAAO,EAAC,eAAe,EAAC,KAAK,EAAC,OAAO,EAAC,GAAG,EAAE,EAAE,aAChD,aAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,YACrC,KAAK,GACH,EACL,KAAC,MAAM,IACL,MAAM,QACN,OAAO,EAAC,aAAa,EACrB,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,OAAO,gBACA,UAAU,EACtB,OAAO,EAAE,OAAO,GAChB,IACE,EACL,QAAQ,IACL,CACP,GACM,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:where(.dialog){position:fixed;inset:0;box-sizing:border-box;inline-size:min(440px,100vw - 2*var(--scale-16));block-size:fit-content;max-block-size:calc(100dvh - 2*var(--scale-16));margin:auto;padding:0;overflow:auto;border:var(--line-thickness) var(--line-style) var(--foreground-border-color);border-radius:var(--corner-radius);background:var(--background-color);box-shadow:0 var(--scale-24) var(--scale-64) rgba(0,0,0,.25);color:var(--foreground-color);font-family:var(--font-family);scrollbar-width:thin}:where(.dialog)::backdrop{background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(var(--scale-4));backdrop-filter:blur(var(--scale-4));animation:fade var(--duration) var(--easing)}:where(.dialog)[open]{animation:rise var(--duration) var(--easing)}:where(.dialog)[data-closing]{animation:rise var(--duration) var(--easing) reverse forwards}:where(.dialog)[data-closing]::backdrop{animation:fade var(--duration) var(--easing) reverse forwards}:where(.title){margin:0;font-size:var(--scale-24);font-weight:600;line-height:1.2}@keyframes rise{from{opacity:0;transform:translateY(var(--scale-16)) scale(0.98)}}@keyframes fade{from{opacity:0}}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Always in the middle of the screen, whatever a site resets margins and positions to.
|
|
2
|
+
:where(.dialog) {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
inline-size: min(440px, calc(100vw - 2 * var(--scale-16)));
|
|
7
|
+
block-size: fit-content;
|
|
8
|
+
max-block-size: calc(100dvh - 2 * var(--scale-16));
|
|
9
|
+
margin: auto;
|
|
10
|
+
padding: 0;
|
|
11
|
+
overflow: auto;
|
|
12
|
+
border: var(--line-thickness) var(--line-style) var(--foreground-border-color);
|
|
13
|
+
border-radius: var(--corner-radius);
|
|
14
|
+
background: var(--background-color);
|
|
15
|
+
box-shadow: 0 var(--scale-24) var(--scale-64) rgb(0 0 0 / 25%);
|
|
16
|
+
color: var(--foreground-color);
|
|
17
|
+
font-family: var(--font-family);
|
|
18
|
+
scrollbar-width: thin;
|
|
19
|
+
|
|
20
|
+
&::backdrop {
|
|
21
|
+
background: rgb(0 0 0 / 50%);
|
|
22
|
+
-webkit-backdrop-filter: blur(var(--scale-4));
|
|
23
|
+
backdrop-filter: blur(var(--scale-4));
|
|
24
|
+
animation: fade var(--duration) var(--easing);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[open] {
|
|
28
|
+
animation: rise var(--duration) var(--easing);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Leaving: the same movement, backwards.
|
|
32
|
+
&[data-closing] {
|
|
33
|
+
animation: rise var(--duration) var(--easing) reverse forwards;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-closing]::backdrop {
|
|
37
|
+
animation: fade var(--duration) var(--easing) reverse forwards;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.title) {
|
|
42
|
+
margin: 0;
|
|
43
|
+
font-size: var(--scale-24);
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
line-height: 1.2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes rise {
|
|
49
|
+
from {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
transform: translateY(var(--scale-16)) scale(0.98);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes fade {
|
|
56
|
+
from {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface DialogProperties {
|
|
3
|
+
open: boolean;
|
|
4
|
+
/** Escape, the close button or a click on the backdrop. */
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
/** The close button's name ("Close"). */
|
|
8
|
+
closeLabel: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/dialog/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,2DAA2D;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/dialog/type.ts"],"names":[],"mappings":""}
|
|
@@ -2,7 +2,7 @@ import type { FieldProperties } from "@sharadox/graphical-user-interface-web-lib
|
|
|
2
2
|
/**
|
|
3
3
|
* A form control with its label above it and its hint and error under it, all linked for assistive technology: the
|
|
4
4
|
* label names the control, the hint and error describe it, and an error marks it invalid. The control is drawn by
|
|
5
|
-
* `children`, which receives the attributes to spread on it.
|
|
5
|
+
* `children`, which receives the attributes to spread on it. The label's id is the control's plus `-label`.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* <Field label="Email" hint="We never share it." error={error}>{(control) => <input {...control} type="email" />}</Field>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/field/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAG/G;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/field/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAG/G;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,+BAkChG"}
|
|
@@ -5,7 +5,7 @@ import styles from "./index.module.css";
|
|
|
5
5
|
/**
|
|
6
6
|
* A form control with its label above it and its hint and error under it, all linked for assistive technology: the
|
|
7
7
|
* label names the control, the hint and error describe it, and an error marks it invalid. The control is drawn by
|
|
8
|
-
* `children`, which receives the attributes to spread on it.
|
|
8
|
+
* `children`, which receives the attributes to spread on it. The label's id is the control's plus `-label`.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* <Field label="Email" hint="We never share it." error={error}>{(control) => <input {...control} type="email" />}</Field>
|
|
@@ -21,6 +21,6 @@ export function Field({ label, hideLabel, hint, error, id, className, children }
|
|
|
21
21
|
...(describedBy && { "aria-describedby": describedBy }),
|
|
22
22
|
...(error !== undefined && { "aria-invalid": true }),
|
|
23
23
|
};
|
|
24
|
-
return (_jsxs(Box, { direction: "top-to-bottom", align: "stretch", textAlign: "start", gap: 8, className: className, children: [_jsx("label", { htmlFor: controlId, className: styles.label, ...(hideLabel && { "data-hidden": "" }), children: label }), children(control), hint !== undefined && (_jsx(Box, { as: "p", id: hintId, color: "middleground", justify: "start", textAlign: "start", className: styles.message, children: hint })), error !== undefined && (_jsx(Box, { as: "p", id: errorId, color: "error", justify: "start", textAlign: "start", className: styles.message, children: error }))] }));
|
|
24
|
+
return (_jsxs(Box, { direction: "top-to-bottom", align: "stretch", textAlign: "start", gap: 8, className: className, children: [_jsx("label", { id: `${controlId}-label`, htmlFor: controlId, className: styles.label, ...(hideLabel && { "data-hidden": "" }), children: label }), children(control), hint !== undefined && (_jsx(Box, { as: "p", id: hintId, color: "middleground", justify: "start", textAlign: "start", className: styles.message, children: hint })), error !== undefined && (_jsx(Box, { as: "p", id: errorId, color: "error", justify: "start", textAlign: "start", className: styles.message, children: error }))] }));
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/field/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAEzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE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,EAAE,MAAM,CAAC,OAAO,YAC/F,KAAK,GACF,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { GlowLayerProperties } from "@sharadox/graphical-user-interface-web-library/glow-layer/type";
|
|
2
|
+
/**
|
|
3
|
+
* The glow modification's layer, placed right after its box (a `Box` with `modifications={["glow"]}` adds it): a soft
|
|
4
|
+
* light of the box's color around and behind the box, always shown, resting at `--glow-start-angle` (below by default)
|
|
5
|
+
* and turning toward the pointer while it is within `--glow-range` (128 pixels) of the box. It sits under the box, so a
|
|
6
|
+
* filled box hides its middle and an outlined one lets it show through. It is anchored to the box (CSS anchor
|
|
7
|
+
* positioning; without it, no glow), and costs nothing while off screen.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <GlowLayer attributes={{ "data-color": "brand" }} />
|
|
11
|
+
*/
|
|
12
|
+
export declare function GlowLayer({ attributes }: GlowLayerProperties): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/glow-layer/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gEAAgE,CAAC;AAS1G;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EAAE,UAAU,EAAE,EAAE,mBAAmB,+BAgB5D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useId, useRef } from "react";
|
|
4
|
+
import { followPointerAngle } from "@sharadox/pointer-web-library/pointer-angle";
|
|
5
|
+
import styles from "./index.module.css";
|
|
6
|
+
/** A number from a computed value (`"128px"`, `"-90deg"`), or the fallback when it has none. */
|
|
7
|
+
const numberOf = (value, fallback) => {
|
|
8
|
+
const number = Number.parseFloat(value);
|
|
9
|
+
return Number.isNaN(number) ? fallback : number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The glow modification's layer, placed right after its box (a `Box` with `modifications={["glow"]}` adds it): a soft
|
|
13
|
+
* light of the box's color around and behind the box, always shown, resting at `--glow-start-angle` (below by default)
|
|
14
|
+
* and turning toward the pointer while it is within `--glow-range` (128 pixels) of the box. It sits under the box, so a
|
|
15
|
+
* filled box hides its middle and an outlined one lets it show through. It is anchored to the box (CSS anchor
|
|
16
|
+
* positioning; without it, no glow), and costs nothing while off screen.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <GlowLayer attributes={{ "data-color": "brand" }} />
|
|
20
|
+
*/
|
|
21
|
+
export function GlowLayer({ attributes }) {
|
|
22
|
+
const layer = useRef(null);
|
|
23
|
+
const anchor = `--glow-${useId().replace(/[^\w-]/g, "")}`;
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
const glow = layer.current;
|
|
26
|
+
const box = glow.previousElementSibling;
|
|
27
|
+
box.style.setProperty("anchor-name", anchor);
|
|
28
|
+
glow.style.setProperty("position-anchor", anchor);
|
|
29
|
+
const style = getComputedStyle(glow);
|
|
30
|
+
return followPointerAngle(box, {
|
|
31
|
+
range: numberOf(style.getPropertyValue("--glow-range"), 128),
|
|
32
|
+
rest: numberOf(style.getPropertyValue("--glow-start-angle"), 90),
|
|
33
|
+
onAngle: (angle) => glow.style.setProperty("--glow-angle", `${angle}deg`),
|
|
34
|
+
});
|
|
35
|
+
}, [anchor]);
|
|
36
|
+
return _jsx("span", { ref: layer, "aria-hidden": "true", "data-glow": "", ...attributes, className: styles.glow });
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/glow-layer/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE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,CAAC,cAAc,EAAE,GAAG,KAAK,KAAK,CAAC;SAC1E,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO,eAAM,GAAG,EAAE,KAAK,iBAAc,MAAM,eAAW,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,CAAC;AACtG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.glow{--glow-angle: var(--glow-start-angle);position:absolute;top:calc(anchor(top) - var(--glow-spread));right:calc(anchor(right) - var(--glow-spread));bottom:calc(anchor(bottom) - var(--glow-spread));left:calc(anchor(left) - var(--glow-spread));z-index:0;pointer-events:none;background:var(--current-color-paint);opacity:var(--glow-opacity);mask:radial-gradient(circle var(--glow-radius) at calc(50% + cos(var(--glow-angle)) * (50% - var(--glow-spread))) calc(50% + sin(var(--glow-angle)) * (50% - var(--glow-spread))), #000, transparent);transition:--glow-angle var(--duration) var(--easing)}@media(prefers-reduced-motion: reduce){.glow{transition:none}}@supports not (anchor-name: --glow){.glow{display:none}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// A light around its box, under it: painted before the box (lower in the stack), so the box's fill covers its middle
|
|
2
|
+
// and a see-through box shows it. Its brightest point sits on the box's edge at --glow-angle, which JavaScript turns
|
|
3
|
+
// toward the pointer and a transition smooths.
|
|
4
|
+
.glow {
|
|
5
|
+
--glow-angle: var(--glow-start-angle);
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: calc(anchor(top) - var(--glow-spread));
|
|
8
|
+
right: calc(anchor(right) - var(--glow-spread));
|
|
9
|
+
bottom: calc(anchor(bottom) - var(--glow-spread));
|
|
10
|
+
left: calc(anchor(left) - var(--glow-spread));
|
|
11
|
+
z-index: 0;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
background: var(--current-color-paint);
|
|
14
|
+
opacity: var(--glow-opacity);
|
|
15
|
+
mask: radial-gradient(
|
|
16
|
+
circle var(--glow-radius) at calc(50% + cos(var(--glow-angle)) * (50% - var(--glow-spread)))
|
|
17
|
+
calc(50% + sin(var(--glow-angle)) * (50% - var(--glow-spread))),
|
|
18
|
+
#000,
|
|
19
|
+
transparent
|
|
20
|
+
);
|
|
21
|
+
transition: --glow-angle var(--duration) var(--easing);
|
|
22
|
+
|
|
23
|
+
@media (prefers-reduced-motion: reduce) {
|
|
24
|
+
transition: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Without anchor positioning it couldn't follow its box: no glow.
|
|
28
|
+
@supports not (anchor-name: --glow) {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/glow-layer/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,0FAA0F;IAC1F,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/glow-layer/type.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import type { ColorDefinition, ColorReference, InterfaceConfiguration, Interface
|
|
|
3
3
|
export declare const INHERIT_COLOR_STYLE = "inherit";
|
|
4
4
|
/**
|
|
5
5
|
* The generic interface: white and black color styles (and `inherit`), the constant colors with their RGB channels,
|
|
6
|
-
* the colors that refer to them, three corner styles, three line styles, the scale, the breakpoints, three
|
|
6
|
+
* the colors that refer to them (and the rainbow, painted with the six hues), three corner styles, three line styles, the scale, the breakpoints, three
|
|
7
7
|
* interactive sizes and every shared value, each pointing to its source.
|
|
8
8
|
*/
|
|
9
9
|
export declare const DEFAULT_INTERFACE: InterfaceConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/interface-configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,6EAA6E,CAAC;AAErF,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAW7C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/interface-configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,6EAA6E,CAAC;AAErF,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAW7C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,sBAmE/B,CAAC;AAEF,yFAAyF;AACzF,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK,IAAI,cAAc,CAE3E;AAwDD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,SAAS,GAAE,kBAAuB,GAAG,sBAAsB,CAe1F"}
|
|
@@ -10,7 +10,7 @@ const interactiveSize = (minimum, font) => ({
|
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
12
|
* The generic interface: white and black color styles (and `inherit`), the constant colors with their RGB channels,
|
|
13
|
-
* the colors that refer to them, three corner styles, three line styles, the scale, the breakpoints, three
|
|
13
|
+
* the colors that refer to them (and the rainbow, painted with the six hues), three corner styles, three line styles, the scale, the breakpoints, three
|
|
14
14
|
* interactive sizes and every shared value, each pointing to its source.
|
|
15
15
|
*/
|
|
16
16
|
export const DEFAULT_INTERFACE = {
|
|
@@ -27,13 +27,19 @@ export const DEFAULT_INTERFACE = {
|
|
|
27
27
|
magenta: { rgb: { white: "192 38 211", black: "255 0 255" } },
|
|
28
28
|
yellow: { rgb: { white: "202 138 4", black: "255 214 10" } },
|
|
29
29
|
foreground: { of: { white: "black", black: "white" }, on: "background" },
|
|
30
|
-
middleground: {
|
|
30
|
+
middleground: {
|
|
31
|
+
rgb: { white: "94 94 94", black: "161 161 161" },
|
|
32
|
+
transparent: "foreground",
|
|
33
|
+
hover: "foreground",
|
|
34
|
+
filledHover: "foreground",
|
|
35
|
+
},
|
|
31
36
|
background: { of: { white: "white", black: "black" } },
|
|
32
37
|
brand: { of: "foreground", on: "background" },
|
|
33
38
|
information: { of: "blue" },
|
|
34
39
|
success: { of: "green" },
|
|
35
40
|
warn: { of: "yellow" },
|
|
36
41
|
error: { of: "red" },
|
|
42
|
+
rainbow: { of: "foreground", on: "foreground", gradient: ["red", "yellow", "green", "cyan", "blue", "magenta"] },
|
|
37
43
|
},
|
|
38
44
|
cornerStyles: { square: "0px", "rounded-square": "4px", circle: "10000px" },
|
|
39
45
|
defaultCornerStyle: "rounded-square",
|
|
@@ -49,7 +55,7 @@ export const DEFAULT_INTERFACE = {
|
|
|
49
55
|
defaultSize: "medium",
|
|
50
56
|
values: {
|
|
51
57
|
"color-rgb-alpha": "100%",
|
|
52
|
-
"transparent-color-rgb-alpha": "
|
|
58
|
+
"transparent-color-rgb-alpha": "12.5%",
|
|
53
59
|
"transparent-hover-color-rgb-alpha": "var(--transparent-color-rgb-alpha)",
|
|
54
60
|
"transparent-active-color-rgb-alpha": "var(--transparent-hover-color-rgb-alpha)",
|
|
55
61
|
"disabled-opacity": "50%",
|
|
@@ -67,6 +73,12 @@ export const DEFAULT_INTERFACE = {
|
|
|
67
73
|
"wrapper-width": "1280px",
|
|
68
74
|
"wrapper-padding": "var(--scale-16)",
|
|
69
75
|
"spinner-duration": "0.8s",
|
|
76
|
+
"gradient-angle": "90deg",
|
|
77
|
+
"glow-start-angle": "90deg",
|
|
78
|
+
"glow-range": "var(--scale-128)",
|
|
79
|
+
"glow-spread": "var(--scale-32)",
|
|
80
|
+
"glow-radius": "var(--scale-64)",
|
|
81
|
+
"glow-opacity": "50%",
|
|
70
82
|
},
|
|
71
83
|
};
|
|
72
84
|
/** Whether a color is a reference to another color rather than constant RGB channels. */
|
|
@@ -76,7 +88,7 @@ export function isReference(color) {
|
|
|
76
88
|
const KEBAB_CASE = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
|
|
77
89
|
/** Every color a color refers to in each color style, for checks. */
|
|
78
90
|
function referencesOf(color, styles) {
|
|
79
|
-
const own = [color.on, color.transparent, color.hover].filter((name) => name !== undefined);
|
|
91
|
+
const own = [color.on, color.transparent, color.hover, color.filledHover, ...(color.gradient ?? [])].filter((name) => name !== undefined);
|
|
80
92
|
if (!isReference(color))
|
|
81
93
|
return own;
|
|
82
94
|
return [...own, ...(typeof color.of === "string" ? [color.of] : styles.map((style) => color.of[style]))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/interface-configuration/index.ts"],"names":[],"mappings":"AAOA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C,MAAM,IAAI,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AAC3D,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,IAAY,EAAE,EAAE,CAAC,CAAC;IAC1D,cAAc,EAAE,OAAO;IACvB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,gCAAgC;IAC/C,mBAAmB,EAAE,0BAA0B;IAC/C,iBAAiB,EAAE,gBAAgB;CACpC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IACtE,kBAAkB,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IACrD,iBAAiB,EAAE,mBAAmB;IACtC,MAAM,EAAE;QACN,KAAK,EAAE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AAE,GAAG,SAAS,CAAC,WAAW,EAAE;QAC9D,kBAAkB,EAAE,EAAE,GAAG,IAAI,CAAC,kBAAkB,EAAE,GAAG,SAAS,CAAC,kBAAkB,EAAE;QACnF,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE;QAC/C,YAAY,EAAE,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,SAAS,CAAC,YAAY,EAAE;QACjE,UAAU,EAAE,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC,UAAU,EAAE;QAC3D,KAAK;QACL,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE;KAChD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -8,14 +8,19 @@ export type PerColorStyle = Readonly<Record<string, string>>;
|
|
|
8
8
|
*/
|
|
9
9
|
export interface ConstantColor {
|
|
10
10
|
rgb: PerColorStyle;
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The colors a gradient paints the color with, in order (`["red", "yellow", …]`): its fills, its text and its
|
|
13
|
+
* borders, each at the color's own alphas, in the direction of `--gradient-angle`. Flat without one.
|
|
14
|
+
*/
|
|
15
|
+
gradient?: readonly string[];
|
|
13
16
|
/** The color of text placed on a fill of this color; `foreground` by default. */
|
|
14
17
|
on?: string;
|
|
15
18
|
/** The color whose channels its transparent color (hover backgrounds, borders) uses; itself by default. */
|
|
16
19
|
transparent?: string;
|
|
17
20
|
/** The color its text turns on hover (outlined, transparent, inline); itself by default. */
|
|
18
21
|
hover?: string;
|
|
22
|
+
/** The color its fill turns on hover (filled), with that color's text; itself by default. */
|
|
23
|
+
filledHover?: string;
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* A color that is another color: `brand` is `foreground` unless a brand says otherwise. It takes everything from that
|
|
@@ -26,6 +31,9 @@ export interface ColorReference {
|
|
|
26
31
|
on?: string;
|
|
27
32
|
transparent?: string;
|
|
28
33
|
hover?: string;
|
|
34
|
+
filledHover?: string;
|
|
35
|
+
/** Its own gradient (the rainbow is foreground, painted with the six hues); the referred color's otherwise. */
|
|
36
|
+
gradient?: readonly string[];
|
|
29
37
|
}
|
|
30
38
|
/** A color, constant or a reference to another. */
|
|
31
39
|
export type ColorDefinition = ConstantColor | ColorReference;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/interface-configuration/type.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,uGAAuG;AACvG,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,aAAa,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/interface-configuration/type.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,uGAAuG;AACvG,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,aAAa,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,iFAAiF;IACjF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2GAA2G;IAC3G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AAC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@sharadox/graphical-user-interface-web-library/listbox/type";
|
|
2
|
+
/**
|
|
3
|
+
* The list a select or a combobox opens, under its field: an outlined glass panel of options, the chosen one with a
|
|
4
|
+
* check, the keyboard's one lit (`aria-activedescendant` points at it, and it scrolls into view). The pointer moves
|
|
5
|
+
* the light; a click chooses. Focus stays on the field.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <Listbox id={listId} labelledBy={labelId} options={options} chosen={value} active={active} onActive={setActive} onChoose={choose} />
|
|
9
|
+
*/
|
|
10
|
+
export declare function Listbox({ id, labelledBy, options, chosen, active, onActive, onChoose, empty }: ListboxProperties): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/listbox/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAGrG;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,iBAAiB,+BAuChH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
4
|
+
import { Box } from "@sharadox/graphical-user-interface-web-library/box";
|
|
5
|
+
import styles from "./index.module.css";
|
|
6
|
+
/**
|
|
7
|
+
* The list a select or a combobox opens, under its field: an outlined glass panel of options, the chosen one with a
|
|
8
|
+
* check, the keyboard's one lit (`aria-activedescendant` points at it, and it scrolls into view). The pointer moves
|
|
9
|
+
* the light; a click chooses. Focus stays on the field.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <Listbox id={listId} labelledBy={labelId} options={options} chosen={value} active={active} onActive={setActive} onChoose={choose} />
|
|
13
|
+
*/
|
|
14
|
+
export function Listbox({ id, labelledBy, options, chosen, active, onActive, onChoose, empty }) {
|
|
15
|
+
const list = useRef(null);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
list.current?.querySelector("[data-active]")?.scrollIntoView?.({ block: "nearest" });
|
|
18
|
+
}, [active]);
|
|
19
|
+
return (_jsxs(Box, { as: "ul", ref: list, id: id, role: "listbox", "aria-labelledby": labelledBy, tabIndex: -1, variant: "outlined", color: "foreground", direction: "top-to-bottom", align: "stretch", padding: 4, className: styles.list, children: [options.length === 0 && empty !== undefined && _jsx("li", { className: styles.empty, children: empty }), options.map((option, index) => (_jsxs("li", { id: `${id}-${index}`, role: "option", "aria-selected": option.value === chosen, ...(index === active && { "data-active": "" }), className: styles.option, onPointerMove: () => onActive(index), onPointerDown: (event) => event.preventDefault(), onClick: () => onChoose(index), children: [option.label, option.value === chosen && _jsx(Icon, { name: "check" })] }, option.value)))] }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/listbox/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAEzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAqB;IAC/G,MAAM,IAAI,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAC5C,SAAS,CAAC,GAAG,EA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AAK,CAYd,CACN,CAAC,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.list{position:absolute;z-index:20;inset-block-start:calc(100% + var(--scale-4));inset-inline:0;max-block-size:280px;margin:0;overflow-y:auto;list-style:none;background:rgb(var(--background-color-rgb)/85%);scrollbar-width:thin;scrollbar-color:var(--foreground-border-color) rgba(0,0,0,0);overscroll-behavior:contain}:where(.option){display:flex;justify-content:space-between;align-items:center;gap:var(--scale-8);min-block-size:var(--current-minimum-size);padding-inline:var(--current-section-padding);border-radius:var(--corner-radius);cursor:pointer;text-align:start;transition:background-color var(--quick-duration) var(--easing)}:where(.option[data-active]){background:var(--current-transparent-hover-color)}:where(.empty){padding:var(--scale-8);color:var(--middleground-color);text-align:start}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Under its field, above everything after it; a nearly opaque background behind the glass so options read.
|
|
2
|
+
.list {
|
|
3
|
+
position: absolute;
|
|
4
|
+
z-index: 20;
|
|
5
|
+
inset-block-start: calc(100% + var(--scale-4));
|
|
6
|
+
inset-inline: 0;
|
|
7
|
+
max-block-size: 280px;
|
|
8
|
+
margin: 0;
|
|
9
|
+
overflow-y: auto;
|
|
10
|
+
list-style: none;
|
|
11
|
+
background: rgb(var(--background-color-rgb) / 85%);
|
|
12
|
+
scrollbar-width: thin;
|
|
13
|
+
scrollbar-color: var(--foreground-border-color) transparent;
|
|
14
|
+
overscroll-behavior: contain;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.option) {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: var(--scale-8);
|
|
22
|
+
min-block-size: var(--current-minimum-size);
|
|
23
|
+
padding-inline: var(--current-section-padding);
|
|
24
|
+
border-radius: var(--corner-radius);
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
text-align: start;
|
|
27
|
+
transition: background-color var(--quick-duration) var(--easing);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.option[data-active]) {
|
|
31
|
+
background: var(--current-transparent-hover-color);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(.empty) {
|
|
35
|
+
padding: var(--scale-8);
|
|
36
|
+
color: var(--middleground-color);
|
|
37
|
+
text-align: start;
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** One option of a list: what it stores and the words it shows. */
|
|
3
|
+
export interface ListboxOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ListboxProperties {
|
|
8
|
+
/** The list's id; each option's is the list's plus `-<index>`, for `aria-activedescendant`. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** The id of what names the list (its field's label). */
|
|
11
|
+
labelledBy: string;
|
|
12
|
+
options: readonly ListboxOption[];
|
|
13
|
+
/** The chosen option's value, marked selected with a check. */
|
|
14
|
+
chosen: string;
|
|
15
|
+
/** The index of the option the keyboard is on. */
|
|
16
|
+
active: number;
|
|
17
|
+
onActive: (index: number) => void;
|
|
18
|
+
onChoose: (index: number) => void;
|
|
19
|
+
/** Shown when there is no option (nothing matches what was typed). */
|
|
20
|
+
empty?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/listbox/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,mEAAmE;AACnE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,+FAA+F;IAC/F,EAAE,EAAE,MAAM,CAAC;IACX,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAClC,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,sEAAsE;IACtE,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/listbox/type.ts"],"names":[],"mappings":""}
|