@mrpelz/uikit-ish 7.13.0 → 7.26.2
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/components/accordion/style.css +1 -1
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +9 -6
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +2 -1
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +12 -4
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +2 -1
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +27 -5
- package/dist/components/button/main.js +1 -1
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/props.d.ts +3 -2
- package/dist/components/button/props.d.ts.map +1 -1
- package/dist/components/button/style.css +6 -17
- package/dist/components/card/main.d.ts +53 -0
- package/dist/components/card/main.d.ts.map +1 -0
- package/dist/components/card/main.js +286 -0
- package/dist/components/card/main.js.map +1 -0
- package/dist/components/card/props.d.ts +83 -0
- package/dist/components/card/props.d.ts.map +1 -0
- package/dist/components/card/props.js +2 -0
- package/dist/components/card/props.js.map +1 -0
- package/dist/components/card/style.css +900 -0
- package/dist/components/collapsible/style.css +1 -1
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +20 -33
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/style.css +4 -23
- package/dist/components/contextual-menu/main.d.ts +6 -2
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +67 -43
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +2 -1
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +64 -2
- package/dist/components/control-cards/main.d.ts +49 -0
- package/dist/components/control-cards/main.d.ts.map +1 -0
- package/dist/components/control-cards/main.js +835 -0
- package/dist/components/control-cards/main.js.map +1 -0
- package/dist/components/control-cards/props.d.ts +409 -0
- package/dist/components/control-cards/props.d.ts.map +1 -0
- package/dist/components/control-cards/props.js +2 -0
- package/dist/components/control-cards/props.js.map +1 -0
- package/dist/components/control-cards/style.css +492 -0
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +7 -3
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/style.css +1 -1
- package/dist/components/drawer/style.css +6 -0
- package/dist/components/edit-menu/main.d.ts +2 -1
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +8 -4
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/glass/backdrop.d.ts +75 -0
- package/dist/components/glass/backdrop.d.ts.map +1 -0
- package/dist/components/glass/backdrop.js +608 -0
- package/dist/components/glass/backdrop.js.map +1 -0
- package/dist/components/glass/gradient.d.ts +17 -0
- package/dist/components/glass/gradient.d.ts.map +1 -0
- package/dist/components/glass/gradient.js +233 -0
- package/dist/components/glass/gradient.js.map +1 -0
- package/dist/components/glass/main.d.ts +60 -6
- package/dist/components/glass/main.d.ts.map +1 -1
- package/dist/components/glass/main.js +100 -122
- package/dist/components/glass/main.js.map +1 -1
- package/dist/components/glass/marker.d.ts +66 -0
- package/dist/components/glass/marker.d.ts.map +1 -0
- package/dist/components/glass/marker.js +268 -0
- package/dist/components/glass/marker.js.map +1 -0
- package/dist/components/glass/props.d.ts +33 -7
- package/dist/components/glass/props.d.ts.map +1 -1
- package/dist/components/glass/style.css +139 -75
- package/dist/components/grid/dashes.d.ts +15 -0
- package/dist/components/grid/dashes.d.ts.map +1 -0
- package/dist/components/grid/dashes.js +37 -0
- package/dist/components/grid/dashes.js.map +1 -0
- package/dist/components/grid/edit.d.ts +11 -0
- package/dist/components/grid/edit.d.ts.map +1 -0
- package/dist/components/grid/edit.js +1066 -0
- package/dist/components/grid/edit.js.map +1 -0
- package/dist/components/grid/handle.d.ts +123 -0
- package/dist/components/grid/handle.d.ts.map +1 -0
- package/dist/components/grid/handle.js +194 -0
- package/dist/components/grid/handle.js.map +1 -0
- package/dist/components/grid/icons.d.ts +40 -0
- package/dist/components/grid/icons.d.ts.map +1 -0
- package/dist/components/grid/icons.js +140 -0
- package/dist/components/grid/icons.js.map +1 -0
- package/dist/components/grid/layout.d.ts +111 -0
- package/dist/components/grid/layout.d.ts.map +1 -0
- package/dist/components/grid/layout.js +1257 -0
- package/dist/components/grid/layout.js.map +1 -0
- package/dist/components/grid/main.d.ts +63 -0
- package/dist/components/grid/main.d.ts.map +1 -0
- package/dist/components/grid/main.js +1894 -0
- package/dist/components/grid/main.js.map +1 -0
- package/dist/components/grid/overlay.d.ts +24 -0
- package/dist/components/grid/overlay.d.ts.map +1 -0
- package/dist/components/grid/overlay.js +312 -0
- package/dist/components/grid/overlay.js.map +1 -0
- package/dist/components/grid/plan.d.ts +78 -0
- package/dist/components/grid/plan.d.ts.map +1 -0
- package/dist/components/grid/plan.js +249 -0
- package/dist/components/grid/plan.js.map +1 -0
- package/dist/components/grid/props.d.ts +509 -0
- package/dist/components/grid/props.d.ts.map +1 -0
- package/dist/components/grid/props.js +2 -0
- package/dist/components/grid/props.js.map +1 -0
- package/dist/components/grid/reshape.d.ts +60 -0
- package/dist/components/grid/reshape.d.ts.map +1 -0
- package/dist/components/grid/reshape.js +214 -0
- package/dist/components/grid/reshape.js.map +1 -0
- package/dist/components/grid/style.css +1293 -0
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +97 -10
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/props.d.ts +2 -2
- package/dist/components/header/props.d.ts.map +1 -1
- package/dist/components/header/style.css +28 -43
- package/dist/components/index.d.ts +10 -6
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/island/main.d.ts +2 -2
- package/dist/components/island/main.d.ts.map +1 -1
- package/dist/components/island/main.js +193 -41
- package/dist/components/island/main.js.map +1 -1
- package/dist/components/island/props.d.ts +4 -2
- package/dist/components/island/props.d.ts.map +1 -1
- package/dist/components/island/style.css +50 -3
- package/dist/components/layout/main.d.ts +3 -6
- package/dist/components/layout/main.d.ts.map +1 -1
- package/dist/components/layout/main.js +225 -56
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/props.d.ts +43 -2
- package/dist/components/layout/props.d.ts.map +1 -1
- package/dist/components/layout/style.css +84 -23
- package/dist/components/list/main.d.ts +3 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +96 -20
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +20 -0
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +16 -2
- package/dist/components/list/reorder.d.ts.map +1 -1
- package/dist/components/list/reorder.js.map +1 -1
- package/dist/components/list/style.css +61 -4
- package/dist/components/menu/main.d.ts +9 -5
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +87 -9
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +14 -0
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +3 -1
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +6 -3
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +3 -2
- package/dist/components/page/props.d.ts.map +1 -1
- package/dist/components/page/style.css +8 -4
- package/dist/components/page-control/props.d.ts +3 -3
- package/dist/components/popover/main.d.ts +10 -4
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +30 -19
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +2 -0
- package/dist/components/popover/props.d.ts.map +1 -1
- package/dist/components/popover/style.css +6 -2
- package/dist/components/progress/style.css +2 -2
- package/dist/components/roll/main.d.ts.map +1 -1
- package/dist/components/roll/main.js +5 -3
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +4 -4
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/props.d.ts +5 -2
- package/dist/components/segmented/props.d.ts.map +1 -1
- package/dist/components/segmented/style.css +1 -1
- package/dist/components/settings/main.d.ts +13 -0
- package/dist/components/settings/main.d.ts.map +1 -1
- package/dist/components/settings/main.js +16 -0
- package/dist/components/settings/main.js.map +1 -1
- package/dist/components/settings/props.d.ts +1 -0
- package/dist/components/settings/props.d.ts.map +1 -1
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +156 -45
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +4 -2
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/snap.d.ts +54 -0
- package/dist/components/sheet/snap.d.ts.map +1 -1
- package/dist/components/sheet/snap.js +253 -23
- package/dist/components/sheet/snap.js.map +1 -1
- package/dist/components/sheet/style.css +126 -20
- package/dist/components/sidebar/main.d.ts +2 -1
- package/dist/components/sidebar/main.d.ts.map +1 -1
- package/dist/components/sidebar/main.js +18 -6
- package/dist/components/sidebar/main.js.map +1 -1
- package/dist/components/sidebar/props.d.ts +2 -1
- package/dist/components/sidebar/props.d.ts.map +1 -1
- package/dist/components/sidebar/style.css +78 -0
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +51 -9
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/props.d.ts +1 -0
- package/dist/components/slider/props.d.ts.map +1 -1
- package/dist/components/slider/style.css +9 -0
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +4 -2
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +5 -1
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +10 -0
- package/dist/components/symbol/props.d.ts.map +1 -1
- package/dist/components/symbol/style.css +21 -3
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +8 -5
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +16 -12
- package/dist/components/tab-bar/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +3 -9
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +6 -3
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/style.css +1 -1
- package/dist/components/toolbar/main.js +1 -1
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +3 -3
- package/dist/components/toolbar/style.css +1 -1
- package/dist/components/tooltip/main.d.ts +6 -1
- package/dist/components/tooltip/main.d.ts.map +1 -1
- package/dist/components/tooltip/main.js +13 -7
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/utils/main.d.ts +31 -2
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +60 -3
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/viewport/current.d.ts +15 -0
- package/dist/components/viewport/current.d.ts.map +1 -0
- package/dist/components/viewport/current.js +74 -0
- package/dist/components/viewport/current.js.map +1 -0
- package/dist/components/viewport/edge-effect.d.ts.map +1 -1
- package/dist/components/viewport/edge-effect.js +52 -24
- package/dist/components/viewport/edge-effect.js.map +1 -1
- package/dist/components/viewport/edge.d.ts +7 -4
- package/dist/components/viewport/edge.d.ts.map +1 -1
- package/dist/components/viewport/edge.js +21 -7
- package/dist/components/viewport/edge.js.map +1 -1
- package/dist/components/viewport/focus-scroll.d.ts +21 -0
- package/dist/components/viewport/focus-scroll.d.ts.map +1 -0
- package/dist/components/viewport/focus-scroll.js +272 -0
- package/dist/components/viewport/focus-scroll.js.map +1 -0
- package/dist/components/viewport/input.d.ts +39 -1
- package/dist/components/viewport/input.d.ts.map +1 -1
- package/dist/components/viewport/input.js +122 -13
- package/dist/components/viewport/input.js.map +1 -1
- package/dist/components/viewport/main.d.ts +16 -1
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +243 -49
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +1 -1
- package/dist/components/viewport/padding.d.ts.map +1 -1
- package/dist/components/viewport/padding.js +2 -2
- package/dist/components/viewport/props.d.ts +12 -2
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/status-bar.d.ts +9 -0
- package/dist/components/viewport/status-bar.d.ts.map +1 -0
- package/dist/components/viewport/status-bar.js +131 -0
- package/dist/components/viewport/status-bar.js.map +1 -0
- package/dist/components/viewport/style.css +62 -5
- package/dist/styles.css +123 -198
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/header/main.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,aAAa,CAAC;AAGrB,OAAO,EAIL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/header/main.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,aAAa,CAAC;AAGrB,OAAO,EAIL,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,oBAAoB,EAEpB,qBAAqB,EACrB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,GAChB,MAAM,YAAY,CAAC;AAsOpB,eAAO,MAAM,MAAM;;;;;;;;CAIlB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import '../toolbar/style.css';
|
|
|
3
3
|
import '../viewport/style.css';
|
|
4
4
|
import './style.css';
|
|
5
5
|
import { useRender } from '@base-ui/react/use-render';
|
|
6
|
-
import { createContext, forwardRef, useCallback, useContext,
|
|
6
|
+
import { createContext, forwardRef, useCallback, useContext, useLayoutEffect, useMemo, useState, } from 'react';
|
|
7
7
|
import { cn, useForwardedRef } from '../utils/main.js';
|
|
8
8
|
import { useAnchorSize, useViewportEdgeElement } from '../viewport/main.js';
|
|
9
9
|
// A top toolbar with a large title, the titles in the label colors.
|
|
@@ -21,8 +21,13 @@ import { useAnchorSize, useViewportEdgeElement } from '../viewport/main.js';
|
|
|
21
21
|
// `Viewport.Padding` at its start (the app's: e.g. none while the bar is
|
|
22
22
|
// empty). As the
|
|
23
23
|
// large title scrolls under the bar, it fades out and the bar's own
|
|
24
|
-
// `Toolbar.Title` fades in
|
|
25
|
-
//
|
|
24
|
+
// `Toolbar.Title` fades in: without a large title, the bar's title just
|
|
25
|
+
// shows. The fade follows a scroll listener (`useTitleFade`), written to
|
|
26
|
+
// the two titles alone, only as it changes: the large title's text alpha
|
|
27
|
+
// (inside the page's scroller, it never has a layer of its own), the bar
|
|
28
|
+
// title's opacity (a layer of its own throughout, in the fixed bar). Not
|
|
29
|
+
// scroll-driven animations, nor a property on the root (see the docs' iOS
|
|
30
|
+
// Quirks: layers changing under a scroll; moving values and memory). Content
|
|
26
31
|
// scrolled under the bar blurs beneath it (the scroll edge effect: its
|
|
27
32
|
// anchor's, see `Viewport`; its accessory, stuck, covered too).
|
|
28
33
|
//
|
|
@@ -45,29 +50,111 @@ const HeaderContext = createContext({
|
|
|
45
50
|
* within it). It has no box of its own.
|
|
46
51
|
*/
|
|
47
52
|
const Root = ({ children }) => {
|
|
48
|
-
const
|
|
49
|
-
const timeline = `--uikit-header-${id.replaceAll(/[^\w-]/gu, '')}`;
|
|
53
|
+
const [root, setRoot] = useState(null);
|
|
50
54
|
const [largeTitles, setLargeTitles] = useState(0);
|
|
51
55
|
const markLargeTitle = useCallback(() => {
|
|
52
56
|
setLargeTitles((count) => count + 1);
|
|
53
57
|
return () => setLargeTitles((count) => count - 1);
|
|
54
58
|
}, []);
|
|
55
|
-
const value = useMemo(() => ({ hasLargeTitle: largeTitles > 0, markLargeTitle,
|
|
59
|
+
const value = useMemo(() => ({ hasLargeTitle: largeTitles > 0, markLargeTitle, root }), [largeTitles, markLargeTitle, root]);
|
|
56
60
|
// Its bar's height (the tallest at the block start, in its scope: see
|
|
57
61
|
// Viewport.Padding), for its large title and accessory.
|
|
58
62
|
const barSize = useAnchorSize('block-start');
|
|
59
|
-
return (_jsx(HeaderContext.Provider, { value: value, children: _jsx("div", { className: "uikit-header-root", "data-header-part": "root", "data-large-title": value.hasLargeTitle ? '' : undefined, style: {
|
|
63
|
+
return (_jsx(HeaderContext.Provider, { value: value, children: _jsx("div", { ref: setRoot, className: "uikit-header-root", "data-header-part": "root", "data-large-title": value.hasLargeTitle ? '' : undefined, style: {
|
|
60
64
|
'--uikit-header-bar': `${String(barSize)}px`,
|
|
61
|
-
'--uikit-header-timeline': timeline,
|
|
62
65
|
}, children: children }) }));
|
|
63
66
|
};
|
|
67
|
+
/** Its scroll container: the nearest ancestor scrolling vertically. */
|
|
68
|
+
const scrollerOf = (element) => {
|
|
69
|
+
for (let parent = element.parentElement; parent && parent !== document.body; parent = parent.parentElement) {
|
|
70
|
+
const { overflowY } = getComputedStyle(parent);
|
|
71
|
+
if (overflowY === 'auto' || overflowY === 'scroll')
|
|
72
|
+
return parent;
|
|
73
|
+
}
|
|
74
|
+
return undefined;
|
|
75
|
+
};
|
|
76
|
+
const clampUnit = (value) => Math.min(Math.max(value, 0), 1);
|
|
77
|
+
/**
|
|
78
|
+
* Fades the large title out, and its bar's title in, as it scrolls under
|
|
79
|
+
* the bar (see the top): how far it's past the bar's lower edge (the
|
|
80
|
+
* page's safe area inset, its top padding, and the bar's height below its
|
|
81
|
+
* scroller's top), over its own height; the first half fading it out, the
|
|
82
|
+
* second the bar's title in. Pulled past an end, as it was at that end
|
|
83
|
+
* (nothing changes during a bounce), its first pixel none. Measured as its
|
|
84
|
+
* scroller scrolls (once a frame) or resizes.
|
|
85
|
+
*/
|
|
86
|
+
const useTitleFade = (titleRef, root) => {
|
|
87
|
+
useLayoutEffect(() => {
|
|
88
|
+
const { current: title } = titleRef;
|
|
89
|
+
const scroller = title ? scrollerOf(title) : undefined;
|
|
90
|
+
if (!title || !root || !scroller)
|
|
91
|
+
return undefined;
|
|
92
|
+
const barTitleSelector = ':scope > .uikit-viewport-anchor[data-edge="block-start"] > .uikit-toolbar-root > [data-toolbar-part="title"]';
|
|
93
|
+
let frame = 0;
|
|
94
|
+
let written;
|
|
95
|
+
let barTitle = null;
|
|
96
|
+
const measure = () => {
|
|
97
|
+
frame = 0;
|
|
98
|
+
const own = title.getBoundingClientRect();
|
|
99
|
+
const { top } = scroller.getBoundingClientRect();
|
|
100
|
+
// (The page's safe area inset: its top padding, see Page; the bar's
|
|
101
|
+
// height: set as a length, see Root.)
|
|
102
|
+
const line = top +
|
|
103
|
+
(Number.parseFloat(getComputedStyle(scroller).paddingTop) || 0) +
|
|
104
|
+
(Number.parseFloat(getComputedStyle(title).getPropertyValue('--uikit-header-bar')) || 0);
|
|
105
|
+
// (Pulled past an end, bouncing: where it was at that end. A fade
|
|
106
|
+
// changing during a bounce ends the bounce on iOS: the page let go
|
|
107
|
+
// while still pulled.)
|
|
108
|
+
const { clientHeight, scrollHeight, scrollTop } = scroller;
|
|
109
|
+
const past = scrollTop -
|
|
110
|
+
Math.min(Math.max(scrollTop, 0), Math.max(scrollHeight - clientHeight, 0));
|
|
111
|
+
// (A pixel's none: a page bouncing always scrolls by one, see Page,
|
|
112
|
+
// as the edge effect's, see Viewport.)
|
|
113
|
+
const progress = own.height > 0
|
|
114
|
+
? clampUnit((line - own.top - past - 1) / own.height)
|
|
115
|
+
: 0;
|
|
116
|
+
const next = [
|
|
117
|
+
String(1 - clampUnit(progress * 2)),
|
|
118
|
+
String(clampUnit(progress * 2 - 1)),
|
|
119
|
+
];
|
|
120
|
+
if (!barTitle?.isConnected) {
|
|
121
|
+
barTitle = root.querySelector(barTitleSelector);
|
|
122
|
+
written = undefined;
|
|
123
|
+
}
|
|
124
|
+
if (written?.[0] === next[0] && written[1] === next[1])
|
|
125
|
+
return;
|
|
126
|
+
written = next;
|
|
127
|
+
title.style.setProperty('--uikit-header-large-title-fade', next[0]);
|
|
128
|
+
if (barTitle)
|
|
129
|
+
barTitle.style.opacity = next[1];
|
|
130
|
+
};
|
|
131
|
+
const schedule = () => {
|
|
132
|
+
if (!frame)
|
|
133
|
+
frame = requestAnimationFrame(measure);
|
|
134
|
+
};
|
|
135
|
+
measure();
|
|
136
|
+
scroller.addEventListener('scroll', schedule, { passive: true });
|
|
137
|
+
const resizeObserver = new ResizeObserver(schedule);
|
|
138
|
+
resizeObserver.observe(scroller);
|
|
139
|
+
resizeObserver.observe(title);
|
|
140
|
+
return () => {
|
|
141
|
+
cancelAnimationFrame(frame);
|
|
142
|
+
scroller.removeEventListener('scroll', schedule);
|
|
143
|
+
resizeObserver.disconnect();
|
|
144
|
+
title.style.removeProperty('--uikit-header-large-title-fade');
|
|
145
|
+
barTitle?.style.removeProperty('opacity');
|
|
146
|
+
};
|
|
147
|
+
}, [root, titleRef]);
|
|
148
|
+
};
|
|
64
149
|
/**
|
|
65
150
|
* The header's large title (with an optional `Toolbar.Subtitle`), at its
|
|
66
151
|
* page's start (below the bar), scrolling with the page.
|
|
67
152
|
*/
|
|
68
|
-
const LargeTitle = forwardRef(({ className, render, ...props },
|
|
69
|
-
const
|
|
153
|
+
const LargeTitle = forwardRef(({ className, render, ...props }, forwardedRef) => {
|
|
154
|
+
const ref = useForwardedRef(forwardedRef);
|
|
155
|
+
const { markLargeTitle, root } = useContext(HeaderContext);
|
|
70
156
|
useLayoutEffect(() => markLargeTitle?.(), [markLargeTitle]);
|
|
157
|
+
useTitleFade(ref, root);
|
|
71
158
|
return useRender({
|
|
72
159
|
defaultTagName: 'div',
|
|
73
160
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/header/main.tsx"],"names":[],"mappings":";AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,aAAa,EAEb,UAAU,EAEV,WAAW,EACX,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/header/main.tsx"],"names":[],"mappings":";AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,aAAa,EAEb,UAAU,EAEV,WAAW,EACX,UAAU,EACV,eAAe,EACf,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,EAAE,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAc5E,oEAAoE;AACpE,2DAA2D;AAC3D,uDAAuD;AACvD,EAAE;AACF,uBAAuB;AACvB,uDAAuD;AACvD,qEAAqE;AACrE,2EAA2E;AAC3E,gEAAgE;AAChE,yEAAyE;AACzE,2EAA2E;AAC3E,uEAAuE;AACvE,yEAAyE;AACzE,iBAAiB;AACjB,oEAAoE;AACpE,wEAAwE;AACxE,yEAAyE;AACzE,yEAAyE;AACzE,yEAAyE;AACzE,yEAAyE;AACzE,0EAA0E;AAC1E,6EAA6E;AAC7E,uEAAuE;AACvE,gEAAgE;AAChE,EAAE;AACF,0EAA0E;AAC1E,6DAA6D;AAC7D,oCAAoC;AACpC,EAAE;AACF,QAAQ;AACR,+CAA+C;AAC/C,wEAAwE;AACxE,0EAA0E;AAC1E,yDAAyD;AACzD,+DAA+D;AAE/D,MAAM,aAAa,GAAG,aAAa,CAAqB;IACtD,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,eAAe,CAAC,YAAY,CAAC,CAAC;IAC1C,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC3D,eAAe,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAC5D,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAExB,OAAO,SAAS,CAAC;QACf,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE;YACL,YAAY,EAAE,CAAC;YACf,kBAAkB,EAAE,aAAa;YACjC,IAAI,EAAE,SAAS;YACf,GAAG,KAAK;YACR,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC;SACrD;QACD,GAAG;QACH,MAAM;KACP,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,SAAS,GAAG,UAAU,CAC1B,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAChD,MAAM,GAAG,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAC1C,gEAAgE;IAChE,sBAAsB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IAE3C,OAAO,SAAS,CAAC;QACf,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE;YACL,kBAAkB,EAAE,WAAW;YAC/B,GAAG,KAAK;YACR,SAAS,EAAE,EAAE,CAAC,wBAAwB,EAAE,SAAS,CAAC;SACnD;QACD,GAAG;QACH,MAAM;KACP,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,UAAU;IACV,SAAS;CACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ export type HeaderContextValue = {
|
|
|
4
4
|
/** Whether the header has a large title (see `LargeTitle`). */
|
|
5
5
|
hasLargeTitle: boolean;
|
|
6
6
|
markLargeTitle?: () => () => void;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Its root's element (its bar's title found within it). */
|
|
8
|
+
root?: HTMLElement | null;
|
|
9
9
|
};
|
|
10
10
|
export type HeaderRootProps = {
|
|
11
11
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/header/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+DAA+D;IAC/D,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,MAAM,IAAI,CAAC;IAClC,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/header/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+DAA+D;IAC/D,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,MAAM,IAAI,CAAC;IAClC,4DAA4D;IAC5D,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,47 +1,28 @@
|
|
|
1
1
|
/* Header (see main.tsx). */
|
|
2
2
|
@layer uikit-ish {
|
|
3
|
-
@keyframes uikit-header-fade-in {
|
|
4
|
-
from {
|
|
5
|
-
opacity: 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
to {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@keyframes uikit-header-fade-out {
|
|
14
|
-
from {
|
|
15
|
-
opacity: 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
to {
|
|
19
|
-
opacity: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
3
|
/* Its bar (see Root): the app's toolbar in a `Viewport.BlockStart`, its
|
|
24
|
-
child (its edge effect the anchor's, see Viewport). No box of its own
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
title and accessory. */
|
|
4
|
+
child (its edge effect the anchor's, see Viewport). No box of its own.
|
|
5
|
+
Its bar's height (`--uikit-header-bar`, measured, see Viewport.Padding)
|
|
6
|
+
for its large title and accessory. */
|
|
28
7
|
.uikit-header-root {
|
|
29
8
|
display: contents;
|
|
30
|
-
timeline-scope: var(--uikit-header-timeline);
|
|
31
9
|
}
|
|
32
10
|
|
|
33
11
|
/* (In a navigation's transition, it moves with its page, see
|
|
34
12
|
`Navigation`: its anchor, fixed, within its page's frame.) */
|
|
35
13
|
.uikit-header-root > .uikit-viewport-anchor[data-edge='block-start'] {
|
|
36
|
-
/* With a large title: the bar's title
|
|
37
|
-
scrolls under the bar (
|
|
14
|
+
/* With a large title: the bar's title hidden until the large title
|
|
15
|
+
scrolls under the bar (its opacity then written, see main.tsx). */
|
|
38
16
|
.uikit-header-root[data-large-title] >
|
|
39
17
|
&
|
|
40
18
|
> .uikit-toolbar-root
|
|
41
19
|
> [data-toolbar-part='title'] {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
20
|
+
opacity: 0;
|
|
21
|
+
|
|
22
|
+
/* (Its own layer throughout, in the bar, fixed, outside the page's
|
|
23
|
+
scroller: its fade changing a value, not the layers; translucent,
|
|
24
|
+
it got one and lost it again, which ended glides on iOS.) */
|
|
25
|
+
will-change: opacity;
|
|
45
26
|
}
|
|
46
27
|
}
|
|
47
28
|
|
|
@@ -58,19 +39,23 @@
|
|
|
58
39
|
}
|
|
59
40
|
|
|
60
41
|
/* A large title (and subtitle): 16px from the sides, 10px from the bar (its
|
|
61
|
-
height measured); as it scrolls under the bar, it fades out
|
|
42
|
+
height measured); as it scrolls under the bar, it fades out (its
|
|
43
|
+
text's alpha written, see main.tsx). */
|
|
62
44
|
.uikit-header-large-title {
|
|
63
45
|
display: flex;
|
|
64
46
|
box-sizing: border-box;
|
|
65
47
|
flex-direction: column;
|
|
66
48
|
padding: 0 16px 10px;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
49
|
+
|
|
50
|
+
/* Fading by its text's alpha (see main.tsx), not its opacity: inside
|
|
51
|
+
its page's scroller, no layer of its own. (Translucent, it got one
|
|
52
|
+
and lost it again; with one throughout, it was dropped as it left the
|
|
53
|
+
screen: either ended a glide or a bounce on iOS.) */
|
|
54
|
+
color: color-mix(
|
|
55
|
+
in srgb,
|
|
56
|
+
var(--color-ui-label) calc(var(--uikit-header-large-title-fade, 1) * 100%),
|
|
57
|
+
transparent
|
|
72
58
|
);
|
|
73
|
-
color: var(--color-ui-label);
|
|
74
59
|
font-size: var(--font-ui-large-title-size);
|
|
75
60
|
font-style: normal;
|
|
76
61
|
font-variation-settings: 'wght'
|
|
@@ -82,14 +67,14 @@
|
|
|
82
67
|
);
|
|
83
68
|
letter-spacing: var(--font-ui-large-title-tracking);
|
|
84
69
|
line-height: var(--font-ui-large-title-line-height);
|
|
85
|
-
view-timeline-axis: block;
|
|
86
|
-
view-timeline-inset: calc(
|
|
87
|
-
var(--uikit-header-bar, 0px) + var(--uikit-page-safe-top, 0px)
|
|
88
|
-
)
|
|
89
|
-
0;
|
|
90
|
-
view-timeline-name: var(--uikit-header-timeline);
|
|
91
70
|
|
|
92
71
|
& > [data-toolbar-part='subtitle'] {
|
|
72
|
+
color: color-mix(
|
|
73
|
+
in srgb,
|
|
74
|
+
var(--color-ui-secondary-label)
|
|
75
|
+
calc(var(--uikit-header-large-title-fade, 1) * 100%),
|
|
76
|
+
transparent
|
|
77
|
+
);
|
|
93
78
|
font-size: 15px;
|
|
94
79
|
font-variation-settings: 'wght' 510;
|
|
95
80
|
font-weight: round(down, 510, 100);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ActivityView, type ActivityViewActionProps, type ActivityViewPersonProps, } from './activity-view/main.js';
|
|
2
2
|
export { ActionSheet, type ActionSheetActionProps, type ActionSheetActionVariant, type ActionSheetHandle, type ActionSheetPopupProps, useCreateActionSheetHandle, } from './action-sheet/main.js';
|
|
3
3
|
export { Alert, type AlertActionProps, type AlertActionsProps, type AlertActionVariant, type AlertHandle, type AlertPopupProps, useCreateAlertHandle, } from './alert/main.js';
|
|
4
|
-
export { Popover, type PopoverAlign, type PopoverHandle, type PopoverArrowProps, type PopoverHeaderProps, type PopoverPositionerProps, useCreatePopoverHandle, } from './popover/main.js';
|
|
4
|
+
export { Popover, type PopoverAlign, type PopoverHandle, type PopoverArrowProps, type PopoverBodyProps, type PopoverHeaderProps, type PopoverPositionerProps, useCreatePopoverHandle, } from './popover/main.js';
|
|
5
5
|
export { ActivityIndicator, type ActivityIndicatorProps, Progress, type ProgressLabelProps, type ProgressPlacement, type ProgressRootProps, type ProgressValueProps, type ActivityIndicatorMovement, type ActivityIndicatorDisplay, } from './progress/main.js';
|
|
6
6
|
export { Sheet, type SheetContentProps, type SheetGrabberProps, type SheetHeaderProps, type SheetSnapGroupProps, type SheetTriggerProps, type SheetDetent, type SheetRegular, type SheetHandle, type SheetPopupProps, useCreateSheetHandle, type SheetRootProps, type SheetSwipeDirection, } from './sheet/main.js';
|
|
7
7
|
export { Island, type IslandContentProps, type IslandGrabberProps, type IslandHeaderProps, type IslandRootProps, type IslandSnapGroupProps, type IslandSnapPointChangeDetails, } from './island/main.js';
|
|
@@ -20,25 +20,29 @@ export { Segmented, type SegmentedItemProps, type SegmentedRootProps, } from './
|
|
|
20
20
|
export { Slider, type SliderLabelProps, type SliderPlacement, type SliderRootProps, type SliderSymbolProps, type SliderTicksProps, type SliderValueProps, } from './slider/main.js';
|
|
21
21
|
export { Stepper } from './stepper/main.js';
|
|
22
22
|
export { Switch, type SwitchRootProps } from './switch/main.js';
|
|
23
|
-
export { forwardClick, List, type ListAllowSwipe, type ListBlockProps, type ListButtonProps, type ListEditButtonProps, type ListEditing, type ListAccordionItemProps, type ListAccordionRootProps, type ListCollapsibleChangeEventDetails, type ListCollapsiblePanelProps, type ListCollapsibleRootProps, type ListDropGroupProps, type ListDropTargetProps, type ListHeaderProps, type ListImageProps, type ListIndexProps, type ListItemProps, type ListReorderChange, type ListReorderEventDetails, ListReorderHandle, type ListReorderItem, type ListReorderOptions, type ListReorderPart, type ListReorderReason, type ListReorderTarget, type ListRootProps, type ListSectionProps, type ListStyle, type ListSwipeActionProps, ListSwipeActionsHandle, type ListSwipeActionsProps, type ListSwipeActionsTriggerProps, type ListGroupProps, type ListTextProps, type ListWhileEditing, useCreateReorderHandle, useCreateSwipeActionsHandle, } from './list/main.js';
|
|
23
|
+
export { forwardClick, List, type ListAllowSwipe, type ListBlockProps, type ListButtonProps, type ListEditButtonProps, type ListEditing, type ListAccordionItemProps, type ListAccordionRootProps, type ListCollapsibleChangeEventDetails, type ListCollapsiblePanelProps, type ListCollapsibleRootProps, type ListDropGroupProps, type ListDropTargetProps, type ListHeaderProps, type ListImageProps, type ListIndexItemProps, type ListIndexProps, type ListItemProps, type ListReorderChange, type ListReorderEventDetails, ListReorderHandle, type ListReorderItem, type ListReorderOptions, type ListReorderPart, type ListReorderReason, type ListReorderTarget, type ListRootProps, type ListSectionProps, type ListStyle, type ListSwipeActionProps, ListSwipeActionsHandle, type ListSwipeActionsProps, type ListSwipeActionsTriggerProps, type ListGroupProps, type ListTextProps, type ListWhileEditing, useCreateReorderHandle, useCreateSwipeActionsHandle, } from './list/main.js';
|
|
24
24
|
export { Accordion } from './accordion/main.js';
|
|
25
25
|
export { Collapsible } from './collapsible/main.js';
|
|
26
26
|
export { ContextualMenu, type ContextualMenuHandle, type ContextualMenuPopupProps, type ContextualMenuPortalProps, type ContextualMenuPositionerProps, type ContextualMenuPreviewProps, type ContextualMenuRootProps, type ContextualMenuTriggerProps, useCreateContextualMenuHandle, } from './contextual-menu/main.js';
|
|
27
27
|
export { EditMenu, type SelectionAnchor, useSelectionAnchor, type EditMenuPositionerProps, type EditMenuRootProps, } from './edit-menu/main.js';
|
|
28
|
-
export { Menu, type MenuHandle, type MenuRootProps, type Size as MenuSize, type MenuPositionerProps, type MenuTriggerProps, useCreateMenuHandle, } from './menu/main.js';
|
|
28
|
+
export { Menu, type MenuHandle, type MenuRootProps, type Size as MenuSize, type MenuPopupProps, type MenuPositionerProps, type MenuTriggerProps, useCreateMenuHandle, } from './menu/main.js';
|
|
29
29
|
export { Header, type HeaderAccessoryProps, type HeaderLargeTitleProps, type HeaderRootProps, } from './header/main.js';
|
|
30
30
|
export { PageControl, type PageControlChangeEventDetails, type PageControlProps, } from './page-control/main.js';
|
|
31
31
|
export { Toolbar, type ToolbarButtonProps, type ToolbarGroupProps, type ToolbarRootProps, type ToolbarSideProps, type ToolbarTitleProps, } from './toolbar/main.js';
|
|
32
|
-
export {
|
|
32
|
+
export { Grid, type GridAreaButtonProps, type GridAreaProps, type GridAreaState, type GridBreakProps, type GridBreakRows, type GridDropGroupProps, type GridHeaderProps, type GridItemLayoutChange, type GridItemLayoutHandlers, type GridItemProps, type GridItemState, type GridOpenChangeDetails, type GridOpenChangeReason, type GridPlacement, type GridCorner, type GridCornerButtonProps, gridIcons, type GridReorderChange, type GridReorderEventDetails, GridReorderHandle, type GridReorderHandleOptions, type GridReorderCells, type GridReorderInsert, type GridReorderItem, type GridReorderPart, type GridReorderReason, type GridReorderTarget, type GridRemoveButtonProps, type GridResizeHandleProps, type GridRootProps, type GridSectionProps, type GridSize, type GridSizeChangeDetails, type GridSizeFit, type GridSpacerProps, type GridSpawnProps, useGridArea, useGridItem, useGridItemLayout, } from './grid/main.js';
|
|
33
|
+
export { Card, type CardActions, type CardCornerButtonProps, type CardOrientation, type CardRootProps, type CardSizes, cardSizes, type CardSwitchProps, type CardSymbolProps, type CardTitleProps, type CardValueProps, useCardOrientation, } from './card/main.js';
|
|
34
|
+
export { type ControlCardButtonProps, type ControlCardChannel, type ControlCardChannelsProps, type ControlCardExpandButtonProps, type ControlCardFormat, type ControlCardLightProps, type ControlCardListProps, type ControlCardOpenButtonsProps, type ControlCardProgressProps, type ControlCardProps, type ControlCardRow, ControlCards, type ControlCardSegmentedItemProps, type ControlCardSegmentedProps, type ControlCardSliderFillProps, type ControlCardSliderProps, type ControlCardStateProps, type ControlCardStates, type ControlCardTextStates, type ControlCardSwitchProps, type ControlCardTrendProps, type ControlCardValueProps, type ControlCardValueTextDetails, } from './control-cards/main.js';
|
|
35
|
+
export { Layout, type LayoutColumnOpenChangeDetails, type LayoutColumnProps, type LayoutRootProps, } from './layout/main.js';
|
|
33
36
|
export { Drawer, type DrawerHandle, type DrawerPopupProps, type DrawerRootProps, type DrawerSide, type DrawerSwipeAreaProps, useCreateDrawerHandle, } from './drawer/main.js';
|
|
34
37
|
export { Sidebar, type SidebarRootProps, type SidebarToolbarGroupProps, type SidebarToolbarProps, } from './sidebar/main.js';
|
|
35
38
|
export { Page, type PageRootProps } from './page/main.js';
|
|
36
39
|
export { Navigation, type NavigationBackEventDetails, type NavigationBackProps, type NavigationPersistentProps, type NavigationRootProps, type NavigationPageProps, type NavigationStackProps, type NavigationSwipeAreaProps, } from './navigation/main.js';
|
|
37
40
|
export { type AccessoryVisibility, type CollapsedContent, type CollapsedGroupSelection, type CollapsedPosition, collapsedSelection, TabBar, type TabBarAccessoryProps, type TabBarGroupProps, type TabBarListProps, type TabBarRootProps, type TabBarTabProps, } from './tab-bar/main.js';
|
|
38
|
-
export { type ElementGeometry, type ElementGeometryOptions, type ElementVisibilityOptions, preventFocusShift, preventInputZoom, preventTextActions, useElementGeometry, useElementVisibility, useFocusShiftPrevention, useInputZoomPrevention, useScrollDirection, useSizeClass, useTextActionsPrevention, useViewportEdgeElement, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, ios27Attribute, isIos27, Viewport, ViewportAnchorHandle, ViewportScopeContext, type ViewportAnchorProps, type ViewportContentProps, type ViewportKeyboardAccessoryProps, type ViewportContentSafeArea, type ViewportEdge, type ViewportEdgeEffect, type ViewportOverscrollProps, type ViewportPaddingProps, type ViewportProviderProps, type ViewportSafeArea, type SizeClass, type ViewportScrollEvent, type ViewportScrollOptions, type VisualViewportState, } from './viewport/main.js';
|
|
41
|
+
export { type ElementGeometry, type ElementGeometryOptions, type ElementVisibilityOptions, type FocusScrollMode, preventFocusShift, preventInputZoom, preventTextActions, trackStatusBarTaps, useElementGeometry, useElementVisibility, useFocusScroll, useFocusShiftPrevention, useCurrentScroller, useInputZoomPrevention, useScrollDirection, useSizeClass, useStatusBarTaps, useTextActionsPrevention, useViewportEdgeElement, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, ios27Attribute, isIos27, Viewport, ViewportAnchorHandle, ViewportScopeContext, type ViewportAnchorProps, type ViewportBackgroundProps, type ViewportContentProps, type ViewportKeyboardAccessoryProps, type ViewportContentSafeArea, type ViewportEdge, type ViewportEdgeEffect, type ViewportOverscrollProps, type ViewportPaddingProps, type ViewportProviderProps, type ViewportSafeArea, type SizeClass, type ViewportScrollEvent, type ViewportScrollOptions, type VisualViewportState, } from './viewport/main.js';
|
|
39
42
|
export { Symbol, type SymbolIcon, type SymbolProps } from './symbol/main.js';
|
|
40
43
|
export { type TextSize, type TextColor, type TextStyle, Typography, type TypographyProps, } from './typography/main.js';
|
|
41
|
-
export type
|
|
44
|
+
export { type BackdropArea, backdropGridOf, type BackdropMarkerValue, type BackdropTone, type BackdropToneOptions, contentToneProps, ContentToneScope, type ImageBackdropMarkerOptions, resampleBackdrops, useBackdropMarker, useBackdropTone, useContentTone, useImageBackdropMarker, } from './glass/main.js';
|
|
45
|
+
export type { GlassContext, GlassContextValue, GlassSurfaceProps, GlassMode, GlassModeProps, } from './glass/main.js';
|
|
42
46
|
export type { ColorScheme, LogicalSide, PortalContainer, SecondaryClickProps, } from './utils/main.js';
|
|
43
47
|
export { PortalContainerContext } from './utils/main.js';
|
|
44
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EAC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gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,kBAAkB,EAClB,MAAM,EACN,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,6BAA6B,EAC7B,cAAc,EACd,OAAO,EACP,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,SAAS,EACd,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;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,eAAe,EACf,cAAc,EACd,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -35,6 +35,9 @@ export { Header, } from './header/main.js';
|
|
|
35
35
|
export { PageControl, } from './page-control/main.js';
|
|
36
36
|
export { Toolbar, } from './toolbar/main.js';
|
|
37
37
|
// Pages and layout
|
|
38
|
+
export { Grid, gridIcons, GridReorderHandle, useGridArea, useGridItem, useGridItemLayout, } from './grid/main.js';
|
|
39
|
+
export { Card, cardSizes, useCardOrientation, } from './card/main.js';
|
|
40
|
+
export { ControlCards, } from './control-cards/main.js';
|
|
38
41
|
export { Layout, } from './layout/main.js';
|
|
39
42
|
export { Drawer, useCreateDrawerHandle, } from './drawer/main.js';
|
|
40
43
|
export { Sidebar, } from './sidebar/main.js';
|
|
@@ -43,9 +46,10 @@ export { Page } from './page/main.js';
|
|
|
43
46
|
export { Navigation, } from './navigation/main.js';
|
|
44
47
|
export { collapsedSelection, TabBar, } from './tab-bar/main.js';
|
|
45
48
|
// Viewport
|
|
46
|
-
export { preventFocusShift, preventInputZoom, preventTextActions, useElementGeometry, useElementVisibility, useFocusShiftPrevention, useInputZoomPrevention, useScrollDirection, useSizeClass, useTextActionsPrevention, useViewportEdgeElement, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, ios27Attribute, isIos27, Viewport, ViewportAnchorHandle, ViewportScopeContext, } from './viewport/main.js';
|
|
49
|
+
export { preventFocusShift, preventInputZoom, preventTextActions, trackStatusBarTaps, useElementGeometry, useElementVisibility, useFocusScroll, useFocusShiftPrevention, useCurrentScroller, useInputZoomPrevention, useScrollDirection, useSizeClass, useStatusBarTaps, useTextActionsPrevention, useViewportEdgeElement, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, ios27Attribute, isIos27, Viewport, ViewportAnchorHandle, ViewportScopeContext, } from './viewport/main.js';
|
|
47
50
|
// Typography
|
|
48
51
|
export { Symbol } from './symbol/main.js';
|
|
49
52
|
export { Typography, } from './typography/main.js';
|
|
53
|
+
export { backdropGridOf, contentToneProps, ContentToneScope, resampleBackdrops, useBackdropMarker, useBackdropTone, useContentTone, useImageBackdropMarker, } from './glass/main.js';
|
|
50
54
|
export { PortalContainerContext } from './utils/main.js';
|
|
51
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EACL,YAAY,GAGb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,EAKX,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,EAML,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EACL,YAAY,GAGb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,EAKX,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,EAML,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,OAAO,EAOP,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EAEjB,QAAQ,GAOT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,EAUL,oBAAoB,GAGrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAA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ACb,6BAA6B,EAC7B,cAAc,EACd,OAAO,EACP,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,GAgBrB,MAAM,oBAAoB,CAAC;AAE5B,aAAa;AACb,OAAO,EAAE,MAAM,EAAqC,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAIL,UAAU,GAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAEL,cAAc,EAId,gBAAgB,EAChB,gBAAgB,EAEhB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAgBzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../glass/style.css';
|
|
2
2
|
import './style.css';
|
|
3
|
-
import type { IslandGrabberProps, IslandHeaderProps, IslandRootProps, IslandSnapGroupProps } from './props.js';
|
|
3
|
+
import type { IslandContentProps, IslandGrabberProps, IslandHeaderProps, IslandRootProps, IslandSnapGroupProps } from './props.js';
|
|
4
4
|
export type { IslandContentProps, IslandGrabberProps, IslandHeaderProps, IslandRootProps, IslandSnapGroupProps, IslandSnapPointChangeDetails, } from './props.js';
|
|
5
5
|
/**
|
|
6
6
|
* An island: a sheet's glass capsule, always there, over a page's content
|
|
@@ -17,7 +17,7 @@ export declare const Island: {
|
|
|
17
17
|
Grabber: import("preact").FunctionalComponent<import("react").PropsWithoutRef<IslandGrabberProps> & {
|
|
18
18
|
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
19
19
|
}>;
|
|
20
|
-
Content: import("preact").FunctionalComponent<import("react").PropsWithoutRef<
|
|
20
|
+
Content: import("preact").FunctionalComponent<import("react").PropsWithoutRef<IslandContentProps> & {
|
|
21
21
|
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
SnapGroup: import("preact").FunctionalComponent<import("react").PropsWithoutRef<IslandSnapGroupProps> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/island/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/island/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAwCrB,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EAErB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,YAAY,CAAC;AA2zBpB;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAMlB,CAAC"}
|