@mrpelz/uikit-ish 7.9.0 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/action-sheet/main.d.ts +1 -2
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +12 -12
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +2 -2
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/action-sheet/style.css +10 -1
- package/dist/components/activity-view/main.d.ts +1 -1
- package/dist/components/activity-view/main.d.ts.map +1 -1
- package/dist/components/activity-view/main.js +9 -11
- package/dist/components/activity-view/main.js.map +1 -1
- package/dist/components/activity-view/style.css +21 -21
- package/dist/components/alert/main.d.ts +2 -3
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +12 -15
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +3 -3
- package/dist/components/alert/style.css +23 -23
- package/dist/components/avatar/main.d.ts.map +1 -1
- package/dist/components/avatar/main.js +7 -8
- package/dist/components/avatar/main.js.map +1 -1
- package/dist/components/avatar/style.css +1 -1
- package/dist/components/badge/main.d.ts +1 -1
- package/dist/components/badge/main.js +4 -4
- package/dist/components/badge/main.js.map +1 -1
- package/dist/components/badge/style.css +7 -2
- package/dist/components/button/main.d.ts.map +1 -1
- package/dist/components/button/main.js +9 -9
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/props.d.ts +8 -8
- package/dist/components/button/props.d.ts.map +1 -1
- package/dist/components/button/style.css +27 -29
- package/dist/components/checkbox/main.d.ts.map +1 -1
- package/dist/components/checkbox/main.js +5 -7
- package/dist/components/checkbox/main.js.map +1 -1
- package/dist/components/checkbox/style.css +3 -3
- package/dist/components/color-picker/main.d.ts +27 -4
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +265 -90
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +45 -10
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +124 -38
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +189 -236
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +10 -33
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +60 -34
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +100 -66
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/props.d.ts +10 -10
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +51 -47
- package/dist/components/drawer/main.d.ts.map +1 -1
- package/dist/components/drawer/main.js +52 -7
- package/dist/components/drawer/main.js.map +1 -1
- package/dist/components/drawer/style.css +1 -1
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +31 -22
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/edit-menu/props.d.ts +4 -4
- package/dist/components/edit-menu/props.d.ts.map +1 -1
- package/dist/components/edit-menu/style.css +10 -1
- package/dist/components/form/main.js +3 -3
- package/dist/components/form/main.js.map +1 -1
- package/dist/components/glass/main.d.ts +1 -1
- package/dist/components/glass/main.js +4 -4
- package/dist/components/glass/main.js.map +1 -1
- package/dist/components/glass/props.d.ts +5 -5
- package/dist/components/glass/props.d.ts.map +1 -1
- package/dist/components/glass/style.css +157 -157
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +27 -26
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/style.css +13 -52
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/main.js +5 -5
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/style.css +2 -2
- package/dist/components/list/main.d.ts +11 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +296 -300
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +49 -16
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +146 -0
- package/dist/components/list/reorder.d.ts.map +1 -0
- package/dist/components/list/reorder.js +819 -0
- package/dist/components/list/reorder.js.map +1 -0
- package/dist/components/list/select.d.ts +6 -0
- package/dist/components/list/select.d.ts.map +1 -0
- package/dist/components/list/select.js +141 -0
- package/dist/components/list/select.js.map +1 -0
- package/dist/components/list/style.css +206 -158
- package/dist/components/menu/main.d.ts +77 -30
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +364 -89
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +3 -4
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +25 -11
- package/dist/components/navigation/main.d.ts +5 -2
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +287 -57
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/props.d.ts +37 -4
- package/dist/components/navigation/props.d.ts.map +1 -1
- package/dist/components/navigation/style.css +32 -2
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +12 -7
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +1 -1
- package/dist/components/page/style.css +3 -6
- package/dist/components/page-control/main.d.ts +1 -1
- package/dist/components/page-control/main.js +9 -9
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/style.css +2 -2
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +17 -14
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +2 -2
- package/dist/components/popover/style.css +10 -1
- package/dist/components/progress/main.d.ts +1 -2
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +45 -19
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/props.d.ts +22 -8
- package/dist/components/progress/props.d.ts.map +1 -1
- package/dist/components/progress/style.css +15 -15
- package/dist/components/roll/main.js +10 -10
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/roll/props.d.ts +1 -1
- package/dist/components/roll/style.css +11 -11
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +44 -27
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/style.css +14 -9
- package/dist/components/sheet/main.d.ts +1 -1
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +22 -18
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +1 -1
- package/dist/components/sheet/style.css +22 -16
- package/dist/components/sidebar/main.d.ts.map +1 -1
- package/dist/components/sidebar/main.js +9 -13
- package/dist/components/sidebar/main.js.map +1 -1
- package/dist/components/sidebar/style.css +8 -8
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +19 -19
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/props.d.ts +1 -2
- package/dist/components/slider/props.d.ts.map +1 -1
- package/dist/components/slider/style.css +25 -25
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +13 -15
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +8 -8
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +25 -18
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +5 -3
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/switch/style.css +13 -17
- package/dist/components/symbol/main.d.ts +1 -1
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +6 -5
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +3 -3
- package/dist/components/symbol/style.css +1 -1
- package/dist/components/tab-bar/main.d.ts +2 -2
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +78 -59
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +3 -3
- package/dist/components/tab-bar/style.css +92 -56
- package/dist/components/text-field/main.d.ts +3 -2
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +26 -28
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/props.d.ts +16 -1
- package/dist/components/text-field/props.d.ts.map +1 -1
- package/dist/components/text-field/style.css +105 -31
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +18 -20
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +10 -4
- package/dist/components/toolbar/props.d.ts.map +1 -1
- package/dist/components/toolbar/style.css +13 -13
- package/dist/components/tooltip/main.js +4 -4
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/tooltip/style.css +5 -5
- package/dist/components/typography/main.d.ts +2 -2
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +10 -12
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/props.d.ts +9 -9
- package/dist/components/typography/props.d.ts.map +1 -1
- package/dist/components/typography/style.css +503 -503
- package/dist/components/utils/main.d.ts +47 -6
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +155 -5
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/utils/props.d.ts +24 -3
- package/dist/components/utils/props.d.ts.map +1 -1
- package/dist/components/utils/style.css +4 -4
- package/dist/components/viewport/edge-effect.d.ts +10 -0
- package/dist/components/viewport/edge-effect.d.ts.map +1 -0
- package/dist/components/viewport/edge-effect.js +100 -0
- package/dist/components/viewport/edge-effect.js.map +1 -0
- package/dist/components/viewport/edge.d.ts +39 -0
- package/dist/components/viewport/edge.d.ts.map +1 -0
- package/dist/components/viewport/edge.js +151 -0
- package/dist/components/viewport/edge.js.map +1 -0
- package/dist/components/viewport/input.d.ts +19 -3
- package/dist/components/viewport/input.d.ts.map +1 -1
- package/dist/components/viewport/input.js +197 -12
- package/dist/components/viewport/input.js.map +1 -1
- package/dist/components/viewport/main.d.ts +9 -4
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +326 -89
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +31 -3
- package/dist/components/viewport/padding.d.ts.map +1 -1
- package/dist/components/viewport/padding.js +111 -16
- package/dist/components/viewport/padding.js.map +1 -1
- package/dist/components/viewport/props.d.ts +69 -8
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/style.css +211 -6
- package/dist/styles.css +285 -302
- package/package.json +3 -4
|
@@ -4,14 +4,13 @@ import '../viewport/style.css';
|
|
|
4
4
|
import './style.css';
|
|
5
5
|
import { useRender } from '@base-ui/react/use-render';
|
|
6
6
|
import { createContext, forwardRef, useCallback, useContext, useId, useLayoutEffect, useMemo, useState, } from 'react';
|
|
7
|
-
import { cn } from '../utils/main.js';
|
|
8
|
-
import { useAnchorSize } from '../viewport/main.js';
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// colors. Behavior after Framework7's large navbar (`navbar.less`,
|
|
7
|
+
import { cn, useForwardedRef } from '../utils/main.js';
|
|
8
|
+
import { useAnchorSize, useViewportEdgeElement } from '../viewport/main.js';
|
|
9
|
+
// A top toolbar with a large title, the titles in the label colors.
|
|
10
|
+
// Behavior after Framework7's large navbar (`navbar.less`,
|
|
12
11
|
// `navbar.js`: `.navbar-large`, collapsing on scroll).
|
|
13
12
|
//
|
|
14
|
-
// A page's header
|
|
13
|
+
// A page's header: the
|
|
15
14
|
// app's top `Toolbar` (`placement="block-start"`) in a
|
|
16
15
|
// `Viewport.BlockStart` (staying where it is, as the page scrolls or
|
|
17
16
|
// bounces under it), and a large title in the page below it (`LargeTitle`,
|
|
@@ -24,21 +23,19 @@ import { useAnchorSize } from '../viewport/main.js';
|
|
|
24
23
|
// large title scrolls under the bar, it fades out and the bar's own
|
|
25
24
|
// `Toolbar.Title` fades in (scroll-driven animations, no scroll
|
|
26
25
|
// listeners): without a large title, the bar's title just shows. Content
|
|
27
|
-
// scrolled under the bar blurs beneath it (
|
|
28
|
-
//
|
|
29
|
-
// background.
|
|
26
|
+
// scrolled under the bar blurs beneath it (the scroll edge effect: its
|
|
27
|
+
// anchor's, see `Viewport`; its accessory, stuck, covered too).
|
|
30
28
|
//
|
|
31
29
|
// An accessory (`Accessory`: a search field, a segmented control) scrolls
|
|
32
|
-
// with the large title, then sticks below the bar
|
|
33
|
-
// controller's bar with `hidesSearchBarWhenScrolling` false), 16px from
|
|
30
|
+
// with the large title, then sticks below the bar, 16px from
|
|
34
31
|
// the sides, 8px above the content.
|
|
35
32
|
//
|
|
36
|
-
//
|
|
37
|
-
// - Pulled down, the large title doesn't grow
|
|
33
|
+
// Also:
|
|
34
|
+
// - Pulled down, the large title doesn't grow.
|
|
38
35
|
// - The page's content makes room for the bar with a `Viewport.Padding`
|
|
39
36
|
// (the app's, at the page's start: as high as the bar, live); the large
|
|
40
37
|
// title and the accessory follow the bar's height too.
|
|
41
|
-
// - The scroll edge effect is an approximation
|
|
38
|
+
// - The scroll edge effect (the anchor's) is an approximation.
|
|
42
39
|
const HeaderContext = createContext({
|
|
43
40
|
hasLargeTitle: false,
|
|
44
41
|
});
|
|
@@ -85,20 +82,24 @@ const LargeTitle = forwardRef(({ className, render, ...props }, ref) => {
|
|
|
85
82
|
});
|
|
86
83
|
});
|
|
87
84
|
/**
|
|
88
|
-
* What stays with the bar (a search field, a segmented control,
|
|
89
|
-
* `hidesSearchBarWhenScrolling` false): below the large title, scrolling
|
|
85
|
+
* What stays with the bar (a search field, a segmented control): below the large title, scrolling
|
|
90
86
|
* with it, then sticking below the bar, the content beneath it blurred.
|
|
91
87
|
*/
|
|
92
|
-
const Accessory = forwardRef(({ className, render, ...props },
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
88
|
+
const Accessory = forwardRef(({ className, render, ...props }, forwardedRef) => {
|
|
89
|
+
const ref = useForwardedRef(forwardedRef);
|
|
90
|
+
// Stuck below the bar: the bar's edge effect reaching under it.
|
|
91
|
+
useViewportEdgeElement(ref, 'block-start');
|
|
92
|
+
return useRender({
|
|
93
|
+
defaultTagName: 'div',
|
|
94
|
+
props: {
|
|
95
|
+
'data-header-part': 'accessory',
|
|
96
|
+
...props,
|
|
97
|
+
className: cn('uikit-header-accessory', className),
|
|
98
|
+
},
|
|
99
|
+
ref,
|
|
100
|
+
render,
|
|
101
|
+
});
|
|
102
|
+
});
|
|
102
103
|
export const Header = {
|
|
103
104
|
Root,
|
|
104
105
|
LargeTitle,
|
|
@@ -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,KAAK,EACL,eAAe,EACf,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;
|
|
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,KAAK,EACL,eAAe,EACf,OAAO,EACP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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"}
|
|
@@ -21,44 +21,18 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/* Its bar (see Root): the app's toolbar in a `Viewport.BlockStart`, its
|
|
24
|
-
child
|
|
25
|
-
|
|
26
|
-
(else the page's own, an ancestor's), for its bar. Its bar's height
|
|
24
|
+
child (its edge effect the anchor's, see Viewport). No box of its own;
|
|
25
|
+
its large title's timeline, for its bar. Its bar's height
|
|
27
26
|
(`--uikit-header-bar`, measured, see Viewport.Padding) for its large
|
|
28
27
|
title and accessory. */
|
|
29
28
|
.uikit-header-root {
|
|
30
29
|
display: contents;
|
|
31
30
|
timeline-scope: var(--uikit-header-timeline);
|
|
32
|
-
|
|
33
|
-
&:has(.uikit-page-root) {
|
|
34
|
-
timeline-scope: var(--uikit-header-timeline), --uikit-page-scroll;
|
|
35
|
-
}
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
/* (In a navigation's transition, it moves with its page, see
|
|
39
34
|
`Navigation`: its anchor, fixed, within its page's frame.) */
|
|
40
35
|
.uikit-header-root > .uikit-viewport-anchor[data-edge='block-start'] {
|
|
41
|
-
/* The scroll edge effect, once content is scrolled under the bar (none
|
|
42
|
-
while its page can't scroll: its timeline inactive, the animation
|
|
43
|
-
doesn't apply, Safari leaving it at its own opacity): under the
|
|
44
|
-
whole anchor, the safe area above the bar too. */
|
|
45
|
-
&::before {
|
|
46
|
-
position: absolute;
|
|
47
|
-
z-index: -1;
|
|
48
|
-
animation: uikit-header-fade-in linear both;
|
|
49
|
-
animation-range: 0 16px;
|
|
50
|
-
animation-timeline: --uikit-page-scroll;
|
|
51
|
-
backdrop-filter: blur(8px);
|
|
52
|
-
content: '';
|
|
53
|
-
inset: 0 0 -16px;
|
|
54
|
-
|
|
55
|
-
/* (Under a floating column too, see Layout and Page.) */
|
|
56
|
-
inset-inline-start: calc(var(--uikit-layout-inset-start, 0px) * -1);
|
|
57
|
-
mask-image: linear-gradient(#000 50%, transparent);
|
|
58
|
-
opacity: 0;
|
|
59
|
-
pointer-events: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
36
|
/* With a large title: the bar's title fades in as the large title
|
|
63
37
|
scrolls under the bar (see Root: the header's timeline). */
|
|
64
38
|
.uikit-header-root[data-large-title] >
|
|
@@ -73,30 +47,17 @@
|
|
|
73
47
|
|
|
74
48
|
/* What stays with the bar (see Accessory): sticking below it (the bar's
|
|
75
49
|
height past the page's padding edge: its padding the safe area inset,
|
|
76
|
-
see Page), the
|
|
50
|
+
see Page), the bar's edge effect reaching under it as it's stuck (see
|
|
51
|
+
Viewport); above the bar's layer (never under the bar itself), so the
|
|
52
|
+
effect blurs what's beneath it, not it. */
|
|
77
53
|
.uikit-header-accessory {
|
|
78
54
|
position: sticky;
|
|
79
|
-
z-index:
|
|
55
|
+
z-index: 11;
|
|
80
56
|
top: var(--uikit-header-bar, 0);
|
|
81
57
|
padding: 0 16px 8px;
|
|
82
|
-
|
|
83
|
-
&::before {
|
|
84
|
-
position: absolute;
|
|
85
|
-
z-index: -1;
|
|
86
|
-
animation: uikit-header-fade-in linear both;
|
|
87
|
-
animation-range: 0 16px;
|
|
88
|
-
animation-timeline: scroll(nearest);
|
|
89
|
-
backdrop-filter: blur(8px);
|
|
90
|
-
content: '';
|
|
91
|
-
inset: 0 0 -16px;
|
|
92
|
-
inset-inline-start: calc(var(--uikit-layout-inset-start, 0px) * -1);
|
|
93
|
-
mask-image: linear-gradient(#000 50%, transparent);
|
|
94
|
-
opacity: 0;
|
|
95
|
-
pointer-events: none;
|
|
96
|
-
}
|
|
97
58
|
}
|
|
98
59
|
|
|
99
|
-
/*
|
|
60
|
+
/* A large title (and subtitle): 16px from the sides, 10px from the bar (its
|
|
100
61
|
height measured); as it scrolls under the bar, it fades out. */
|
|
101
62
|
.uikit-header-large-title {
|
|
102
63
|
display: flex;
|
|
@@ -109,18 +70,18 @@
|
|
|
109
70
|
block calc(var(--uikit-header-bar, 0px) + var(--uikit-page-safe-top, 0px))
|
|
110
71
|
0
|
|
111
72
|
);
|
|
112
|
-
color: var(--color-
|
|
113
|
-
font-size: var(--font-
|
|
73
|
+
color: var(--color-ui-label);
|
|
74
|
+
font-size: var(--font-ui-large-title-size);
|
|
114
75
|
font-style: normal;
|
|
115
76
|
font-variation-settings: 'wght'
|
|
116
|
-
var(--font-
|
|
77
|
+
var(--font-ui-large-title-weight-emphasized);
|
|
117
78
|
font-weight: round(
|
|
118
79
|
down,
|
|
119
|
-
var(--font-
|
|
80
|
+
var(--font-ui-large-title-weight-emphasized),
|
|
120
81
|
100
|
|
121
82
|
);
|
|
122
|
-
letter-spacing: var(--font-
|
|
123
|
-
line-height: var(--font-
|
|
83
|
+
letter-spacing: var(--font-ui-large-title-tracking);
|
|
84
|
+
line-height: var(--font-ui-large-title-line-height);
|
|
124
85
|
view-timeline-axis: block;
|
|
125
86
|
view-timeline-inset: calc(
|
|
126
87
|
var(--uikit-header-bar, 0px) + var(--uikit-page-safe-top, 0px)
|
|
@@ -7,7 +7,7 @@ export { Sheet, type SheetContentProps, type SheetGrabberProps, type SheetDetent
|
|
|
7
7
|
export { Tooltip, type TooltipHandle, type TooltipPositionerProps, type TooltipTriggerProps, useCreateTooltipHandle, } from './tooltip/main.js';
|
|
8
8
|
export { Avatar, type AvatarFallbackProps, type AvatarGroupProps, type AvatarImageProps, type AvatarRootProps, } from './avatar/main.js';
|
|
9
9
|
export { Badge, type BadgePlacement, type BadgeProps } from './badge/main.js';
|
|
10
|
-
export { ColorPicker, type ColorPickerChangeEventDetails, type ColorPickerEyedropperProps, type
|
|
10
|
+
export { ColorPicker, type ColorPickerChangeEventDetails, type ColorPickerEyedropperProps, type ColorPickerModeProps, type ColorPickerModesProps, type ColorPickerPanelProps, type ColorPickerRootProps, type ColorPickerSavedColorsChangeEventDetails, type ColorPickerSlidersModel, type ColorPickerSlidersProps, type ColorPickerSwatchesProps, type ColorPickerViewProps, type ColorWellProps, defaultSavedColors, formatColor, parseColor, } from './color-picker/main.js';
|
|
11
11
|
export { Button, type ButtonRootProps } from './button/main.js';
|
|
12
12
|
export { Checkbox, CheckboxGroup, type CheckboxRootProps, Radio, RadioGroup, type RadioRootProps, } from './checkbox/main.js';
|
|
13
13
|
export { type CalendarFooter, type CalendarMessageProps, type CalendarProps, type CalendarSwipe, DatePicker, type DatePickerChangeEventDetails, type DatePickerExpandableProps, DatePickerHandle, type DatePickerMode, type DatePickerOpen, type DatePickerOpenChangeEventDetails, type DatePickerProps, type DatePickerStyle, type DateRange, type DayHighlight, type DayHighlights, type HourCycle, type TimeRollProps, useCreateDatePickerHandle, } from './date-picker/main.js';
|
|
@@ -18,7 +18,7 @@ export { Segmented, type SegmentedItemProps, type SegmentedRootProps, } from './
|
|
|
18
18
|
export { Slider, type SliderLabelProps, type SliderPlacement, type SliderRootProps, type SliderSymbolProps, type SliderTicksProps, type SliderValueProps, } from './slider/main.js';
|
|
19
19
|
export { Stepper } from './stepper/main.js';
|
|
20
20
|
export { Switch, type SwitchRootProps } from './switch/main.js';
|
|
21
|
-
export { forwardClick, List, type ListAllowSwipe, type ListBlockProps, type ListButtonProps, type ListEditButtonProps, type ListEditing, type ListAccordionItemProps, type ListAccordionRootProps, type ListCollapsibleChangeEventDetails, type ListCollapsiblePanelProps, type ListCollapsibleRootProps, type ListHeaderProps, type ListImageProps, type ListIndexProps, type ListItemProps, type ListRootProps, type ListSectionProps, type ListStyle, type ListSwipeActionProps, ListSwipeActionsHandle, type ListSwipeActionsProps, type ListSwipeActionsTriggerProps, type ListGroupProps, type ListTextProps, type ListWhileEditing, useCreateSwipeActionsHandle, } from './list/main.js';
|
|
21
|
+
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';
|
|
22
22
|
export { Accordion } from './accordion/main.js';
|
|
23
23
|
export { Collapsible } from './collapsible/main.js';
|
|
24
24
|
export { ContextualMenu, type ContextualMenuHandle, type ContextualMenuPopupProps, type ContextualMenuPortalProps, type ContextualMenuPositionerProps, type ContextualMenuPreviewProps, type ContextualMenuRootProps, type ContextualMenuTriggerProps, useCreateContextualMenuHandle, } from './contextual-menu/main.js';
|
|
@@ -31,11 +31,11 @@ export { Layout, type LayoutColumnProps, type LayoutRootProps, } from './layout/
|
|
|
31
31
|
export { Drawer, type DrawerHandle, type DrawerPopupProps, type DrawerRootProps, type DrawerSide, type DrawerSwipeAreaProps, useCreateDrawerHandle, } from './drawer/main.js';
|
|
32
32
|
export { Sidebar, type SidebarRootProps, type SidebarToolbarGroupProps, type SidebarToolbarProps, } from './sidebar/main.js';
|
|
33
33
|
export { Page, type PageRootProps } from './page/main.js';
|
|
34
|
-
export { Navigation, type NavigationBackEventDetails, type NavigationBackProps, type NavigationRootProps, type NavigationStackProps, type NavigationSwipeAreaProps, } from './navigation/main.js';
|
|
34
|
+
export { Navigation, type NavigationBackEventDetails, type NavigationBackProps, type NavigationPersistentProps, type NavigationRootProps, type NavigationStackProps, type NavigationSwipeAreaProps, } from './navigation/main.js';
|
|
35
35
|
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';
|
|
36
|
-
export { type ElementGeometry, type ElementGeometryOptions, type ElementVisibilityOptions, preventFocusShift, preventInputZoom, useElementGeometry, useElementVisibility, useFocusShiftPrevention, useInputZoomPrevention, useScrollDirection, useSizeClass, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, Viewport, ViewportAnchorHandle, ViewportScopeContext, type ViewportAnchorProps, type ViewportContentProps, type ViewportEdge, type ViewportOverscrollProps, type ViewportPaddingProps, type ViewportProviderProps, type ViewportSafeArea, type SizeClass, type ViewportScrollEvent, type ViewportScrollOptions, type VisualViewportState, } from './viewport/main.js';
|
|
36
|
+
export { type ElementGeometry, type ElementGeometryOptions, type ElementVisibilityOptions, preventFocusShift, preventInputZoom, preventTextActions, useElementGeometry, useElementVisibility, useFocusShiftPrevention, useInputZoomPrevention, useScrollDirection, useSizeClass, useTextActionsPrevention, useViewportEdgeElement, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, 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';
|
|
37
37
|
export { Symbol, type SymbolIcon, type SymbolProps } from './symbol/main.js';
|
|
38
|
-
export { type
|
|
38
|
+
export { type TextSize, type TextColor, type TextStyle, Typography, type TypographyProps, } from './typography/main.js';
|
|
39
39
|
export type { GlassContextValue } from './glass/main.js';
|
|
40
40
|
export type { ColorScheme, LogicalSide, PortalContainer, SecondaryClickProps, } from './utils/main.js';
|
|
41
41
|
export { PortalContainerContext } from './utils/main.js';
|
|
@@ -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,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,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,OAAO,EACP,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EACL,WAAW,EACX,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,
|
|
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,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,KA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jB,iBAAiB,EACjB,aAAa,EACb,6BAA6B,EAC7B,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;AAG9B,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,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
|
@@ -21,7 +21,7 @@ export { Slider, } from './slider/main.js';
|
|
|
21
21
|
export { Stepper } from './stepper/main.js';
|
|
22
22
|
export { Switch } from './switch/main.js';
|
|
23
23
|
// Lists
|
|
24
|
-
export { forwardClick, List, ListSwipeActionsHandle, useCreateSwipeActionsHandle, } from './list/main.js';
|
|
24
|
+
export { forwardClick, List, ListReorderHandle, ListSwipeActionsHandle, useCreateReorderHandle, useCreateSwipeActionsHandle, } from './list/main.js';
|
|
25
25
|
export { Accordion } from './accordion/main.js';
|
|
26
26
|
export { Collapsible } from './collapsible/main.js';
|
|
27
27
|
// Menus
|
|
@@ -41,7 +41,7 @@ export { Page } from './page/main.js';
|
|
|
41
41
|
export { Navigation, } from './navigation/main.js';
|
|
42
42
|
export { collapsedSelection, TabBar, } from './tab-bar/main.js';
|
|
43
43
|
// Viewport
|
|
44
|
-
export { preventFocusShift, preventInputZoom, useElementGeometry, useElementVisibility, useFocusShiftPrevention, useInputZoomPrevention, useScrollDirection, useSizeClass, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, Viewport, ViewportAnchorHandle, ViewportScopeContext, } from './viewport/main.js';
|
|
44
|
+
export { preventFocusShift, preventInputZoom, preventTextActions, useElementGeometry, useElementVisibility, useFocusShiftPrevention, useInputZoomPrevention, useScrollDirection, useSizeClass, useTextActionsPrevention, useViewportEdgeElement, useViewportScroll, useVisualViewport, useAnchorSize, useCreateViewportAnchorHandle, Viewport, ViewportAnchorHandle, ViewportScopeContext, } from './viewport/main.js';
|
|
45
45
|
// Typography
|
|
46
46
|
export { Symbol } from './symbol/main.js';
|
|
47
47
|
export { Typography, } from './typography/main.js';
|
|
@@ -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,EAIP,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EAEjB,QAAQ,GAOT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,EAML,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,OAAO,EAIP,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,mBAAmB;AACnB,OAAO,EACL,MAAM,GAKP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,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AuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,6BAA6B,EAC7B,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,GAerB,MAAM,oBAAoB,CAAC;AAE5B,aAAa;AACb,OAAO,EAAE,MAAM,EAAqC,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAIL,UAAU,GAEX,MAAM,sBAAsB,CAAC;AAU9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import './style.css';
|
|
|
3
3
|
import { forwardRef, useLayoutEffect, useRef, useState, } from 'react';
|
|
4
4
|
import { cn, useForwardedRef, withStyle } from '../utils/main.js';
|
|
5
5
|
import { ViewportScopeContext } from '../viewport/main.js';
|
|
6
|
-
// Layouts
|
|
6
|
+
// Layouts: columns side by
|
|
7
7
|
// side, filling their container (e.g. `Viewport.Content`): a sidebar, a list, a
|
|
8
8
|
// detail; each its own scroll container (put a `Page` in it). A column takes a
|
|
9
9
|
// size (the app's, in px; between `minSize` and `maxSize`), or shares the free
|
|
@@ -11,12 +11,12 @@ import { ViewportScopeContext } from '../viewport/main.js';
|
|
|
11
11
|
// its divider (or arrow keys on it). Columns are divided by a hairline in
|
|
12
12
|
// `separator`.
|
|
13
13
|
//
|
|
14
|
-
// Compact (e.g. on
|
|
14
|
+
// Compact (e.g. on a phone, by the size class, `useSizeClass`: the app's
|
|
15
15
|
// choice), a column can be a `Drawer` instead (e.g. a sidebar), over the
|
|
16
16
|
// others from its side, hidden until opened: the app renders one or the
|
|
17
17
|
// other.
|
|
18
18
|
//
|
|
19
|
-
// Floating (a column's `floating`, e.g. for a `Sidebar
|
|
19
|
+
// Floating (a column's `floating`, e.g. for a `Sidebar`), a column
|
|
20
20
|
// floats over the others at the layout's start, which span the whole layout
|
|
21
21
|
// underneath it; a column next to it can keep its content clear of it
|
|
22
22
|
// (`clearFloating`: its pages' content and its bars' inset by the floating
|
|
@@ -28,8 +28,8 @@ import { ViewportScopeContext } from '../viewport/main.js';
|
|
|
28
28
|
// Each column is the containing block of its fixed layers (e.g. a header's
|
|
29
29
|
// bar, in a `Viewport.BlockStart`): they span it, not the screen.
|
|
30
30
|
//
|
|
31
|
-
//
|
|
32
|
-
// - Resizable
|
|
31
|
+
// Also:
|
|
32
|
+
// - Resizable.
|
|
33
33
|
// Behind its columns, filling it: its children layered, each filling it
|
|
34
34
|
// (images and videos covering it).
|
|
35
35
|
const Background = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn('uikit-layout-background', className), "data-layout-part": "background", ...props })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/layout/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAEL,UAAU,EAGV,eAAe,EACf,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAK3D,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/layout/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAEL,UAAU,EAGV,eAAe,EACf,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAK3D,2BAA2B;AAC3B,gFAAgF;AAChF,+EAA+E;AAC/E,+EAA+E;AAC/E,+EAA+E;AAC/E,0EAA0E;AAC1E,eAAe;AACf,EAAE;AACF,yEAAyE;AACzE,yEAAyE;AAC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AAS,EAAE,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAC7C,CACH,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,UAAU;IACV,MAAM;CACP,CAAC"}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
position: absolute;
|
|
101
101
|
z-index: 20;
|
|
102
102
|
width: 0.33px;
|
|
103
|
-
background-color: var(--color-
|
|
103
|
+
background-color: var(--color-ui-separator);
|
|
104
104
|
content: '';
|
|
105
105
|
inset-block: 0;
|
|
106
106
|
inset-inline-start: 0;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
&::after {
|
|
122
122
|
position: absolute;
|
|
123
123
|
width: 2px;
|
|
124
|
-
background-color: var(--color-
|
|
124
|
+
background-color: var(--color-ui-primary);
|
|
125
125
|
content: '';
|
|
126
126
|
inset-block: 0;
|
|
127
127
|
inset-inline-start: 4px;
|
|
@@ -4,8 +4,10 @@ import './style.css';
|
|
|
4
4
|
import { useRender } from '@base-ui/react/use-render';
|
|
5
5
|
import { FunctionComponent, MouseEvent, ReactNode } from 'react';
|
|
6
6
|
import { RadioRootProps } from '../checkbox/main.js';
|
|
7
|
-
import type { CollapsibleContextValue, ListAccordionItemProps, ListAccordionRootProps, ListBlockProps, ListButtonProps, ListCollapsiblePanelProps, ListCollapsibleRootProps, ListEditButtonProps, ListGroupProps, ListHeaderProps, ListImageProps, ListIndexProps, ListItemProps, ListRootProps, ListSectionProps, ListSwipeActionProps, ListSwipeActionsProps, ListSwipeActionsTriggerProps, ListTextProps, PartProps, WhileEditingProps } from './props.js';
|
|
8
|
-
export type { ListAllowSwipe, ListBlockProps, ListButtonProps, ListEditButtonProps, ListEditing, ListAccordionItemProps, ListAccordionRootProps, ListCollapsibleChangeEventDetails, ListCollapsiblePanelProps, ListCollapsibleRootProps, ListGroupProps, ListHeaderProps, ListImageProps, ListIndexProps, ListItemProps, ListRootProps, ListSectionProps, ListStyle, ListSwipeActionProps, ListSwipeActionsProps, ListSwipeActionsTriggerProps, ListTextProps, ListWhileEditing, } from './props.js';
|
|
7
|
+
import type { CollapsibleContextValue, ListAccordionItemProps, ListAccordionRootProps, ListBlockProps, ListButtonProps, ListCollapsiblePanelProps, ListCollapsibleRootProps, ListDropGroupProps, ListDropTargetProps, ListEditButtonProps, ListGroupProps, ListHeaderProps, ListImageProps, ListIndexProps, ListItemProps, ListRootProps, ListSectionProps, ListSwipeActionProps, ListSwipeActionsProps, ListSwipeActionsTriggerProps, ListTextProps, PartProps, WhileEditingProps } from './props.js';
|
|
8
|
+
export type { ListAllowSwipe, ListBlockProps, ListButtonProps, ListEditButtonProps, ListEditing, ListAccordionItemProps, ListAccordionRootProps, ListCollapsibleChangeEventDetails, ListCollapsiblePanelProps, ListCollapsibleRootProps, ListDropGroupProps, ListDropTargetProps, ListGroupProps, ListHeaderProps, ListImageProps, ListIndexProps, ListItemProps, ListRootProps, ListSectionProps, ListStyle, ListSwipeActionProps, ListSwipeActionsProps, ListSwipeActionsTriggerProps, ListTextProps, ListWhileEditing, } from './props.js';
|
|
9
|
+
import { ListReorderHandle, reorder } from './reorder.js';
|
|
10
|
+
export { type ListReorderChange, type ListReorderEventDetails, ListReorderHandle, type ListReorderItem, type ListReorderOptions, type ListReorderPart, type ListReorderReason, type ListReorderTarget, useCreateReorderHandle, } from './reorder.js';
|
|
9
11
|
export { ListSwipeActionsHandle, useCreateSwipeActionsHandle, } from './swipe-actions-handle.js';
|
|
10
12
|
/**
|
|
11
13
|
* The collapsible around (a `CollapsibleRoot`, an `AccordionItem`; not in
|
|
@@ -21,7 +23,7 @@ export declare const useCollapsible: () => Pick<CollapsibleContextValue, "isOpen
|
|
|
21
23
|
export declare const useExpandedOpen: () => boolean | undefined;
|
|
22
24
|
/**
|
|
23
25
|
* A row's click handler passing the click on to the control in it
|
|
24
|
-
* (`selector`, e.g. `[role=switch]`), as
|
|
26
|
+
* (`selector`, e.g. `[role=switch]`), as native rows do, unless it was the
|
|
25
27
|
* control's own: `<List.Item onClick={forwardClick('[role=switch]')}>`. As
|
|
26
28
|
* the click it is: a pointer's (`detail` > 0) or a keyboard's (a control's
|
|
27
29
|
* `click()` would be a keyboard's, so menus would open with their first
|
|
@@ -41,6 +43,10 @@ export declare const List: {
|
|
|
41
43
|
Group: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ListGroupProps> & {
|
|
42
44
|
ref?: import("preact").Ref<HTMLElement> | undefined;
|
|
43
45
|
}>;
|
|
46
|
+
DropGroup: FunctionComponent<ListDropGroupProps>;
|
|
47
|
+
DropTarget: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ListDropTargetProps> & {
|
|
48
|
+
ref?: import("preact").Ref<HTMLElement> | undefined;
|
|
49
|
+
}>;
|
|
44
50
|
Item: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ListItemProps> & {
|
|
45
51
|
ref?: import("preact").Ref<HTMLElement> | undefined;
|
|
46
52
|
}>;
|
|
@@ -140,5 +146,7 @@ export declare const List: {
|
|
|
140
146
|
ref?: import("preact").Ref<HTMLElement> | undefined;
|
|
141
147
|
}>;
|
|
142
148
|
createSwipeActionsHandle: () => import("./swipe-actions-handle.js").ListSwipeActionsHandle;
|
|
149
|
+
createReorderHandle: (options?: import("./reorder.js").ListReorderOptions) => ListReorderHandle;
|
|
150
|
+
reorder: typeof reorder;
|
|
143
151
|
};
|
|
144
152
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/list/main.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAKL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/list/main.tsx"],"names":[],"mappings":"AAA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