@mrpelz/uikit-ish 7.8.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/accordion/main.d.ts +12 -0
- package/dist/components/accordion/main.d.ts.map +1 -0
- package/dist/components/accordion/main.js +20 -0
- package/dist/components/accordion/main.js.map +1 -0
- package/dist/components/accordion/style.css +23 -0
- package/dist/components/action-sheet/main.d.ts +22 -16
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +89 -19
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +17 -5
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/action-sheet/style.css +24 -0
- package/dist/components/activity-view/main.d.ts +15 -4
- package/dist/components/activity-view/main.d.ts.map +1 -1
- package/dist/components/activity-view/main.js +27 -14
- package/dist/components/activity-view/main.js.map +1 -1
- package/dist/components/activity-view/props.d.ts +2 -10
- package/dist/components/activity-view/props.d.ts.map +1 -1
- package/dist/components/activity-view/style.css +29 -67
- package/dist/components/alert/main.d.ts +8 -7
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +32 -19
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +13 -2
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +36 -50
- package/dist/components/avatar/main.d.ts +5 -3
- package/dist/components/avatar/main.d.ts.map +1 -1
- package/dist/components/avatar/main.js +10 -8
- package/dist/components/avatar/main.js.map +1 -1
- package/dist/components/avatar/props.d.ts +4 -0
- package/dist/components/avatar/props.d.ts.map +1 -1
- package/dist/components/avatar/style.css +1 -7
- package/dist/components/badge/main.d.ts +3 -3
- package/dist/components/badge/main.d.ts.map +1 -1
- package/dist/components/badge/main.js +9 -9
- package/dist/components/badge/main.js.map +1 -1
- package/dist/components/badge/props.d.ts +4 -3
- package/dist/components/badge/props.d.ts.map +1 -1
- package/dist/components/badge/style.css +10 -4
- package/dist/components/button/main.d.ts.map +1 -1
- package/dist/components/button/main.js +15 -15
- 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 +37 -55
- 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 +5 -8
- package/dist/components/collapsible/main.d.ts +9 -0
- package/dist/components/collapsible/main.d.ts.map +1 -0
- package/dist/components/collapsible/main.js +19 -0
- package/dist/components/collapsible/main.js.map +1 -0
- package/dist/components/collapsible/style.css +23 -0
- 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 +292 -110
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +64 -15
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +133 -65
- package/dist/components/contextual-menu/main.d.ts +11 -7
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +207 -202
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +21 -34
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +63 -34
- package/dist/components/date-picker/handle.d.ts +41 -0
- package/dist/components/date-picker/handle.d.ts.map +1 -0
- package/dist/components/date-picker/handle.js +47 -0
- package/dist/components/date-picker/handle.js.map +1 -0
- package/dist/components/date-picker/main.d.ts +31 -49
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +373 -178
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/pager.d.ts +24 -0
- package/dist/components/date-picker/pager.d.ts.map +1 -0
- package/dist/components/date-picker/pager.js +307 -0
- package/dist/components/date-picker/pager.js.map +1 -0
- package/dist/components/date-picker/props.d.ts +98 -27
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +110 -118
- package/dist/components/drawer/main.d.ts +31 -0
- package/dist/components/drawer/main.d.ts.map +1 -0
- package/dist/components/drawer/main.js +119 -0
- package/dist/components/drawer/main.js.map +1 -0
- package/dist/components/drawer/props.d.ts +39 -0
- package/dist/components/drawer/props.d.ts.map +1 -0
- package/dist/components/drawer/props.js +2 -0
- package/dist/components/drawer/props.js.map +1 -0
- package/dist/components/drawer/style.css +135 -0
- package/dist/components/edit-menu/main.d.ts +7 -7
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +57 -40
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/edit-menu/props.d.ts +14 -1
- package/dist/components/edit-menu/props.d.ts.map +1 -1
- package/dist/components/edit-menu/style.css +15 -8
- package/dist/components/form/main.d.ts +8 -0
- package/dist/components/form/main.d.ts.map +1 -1
- package/dist/components/form/main.js +18 -5
- package/dist/components/form/main.js.map +1 -1
- package/dist/components/form/props.d.ts +1 -2
- package/dist/components/form/props.d.ts.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 +176 -161
- package/dist/components/header/main.d.ts +5 -4
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +64 -34
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/props.d.ts +2 -3
- package/dist/components/header/props.d.ts.map +1 -1
- package/dist/components/header/style.css +46 -65
- package/dist/components/index.d.ts +27 -23
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +17 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/main.d.ts +2 -2
- package/dist/components/layout/main.d.ts.map +1 -1
- package/dist/components/layout/main.js +63 -167
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/props.d.ts +2 -20
- package/dist/components/layout/props.d.ts.map +1 -1
- package/dist/components/layout/style.css +20 -91
- package/dist/components/list/main.d.ts +58 -10
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +1022 -465
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +211 -21
- 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 +492 -507
- package/dist/components/list/swipe-actions-handle.d.ts +40 -0
- package/dist/components/list/swipe-actions-handle.d.ts.map +1 -0
- package/dist/components/list/swipe-actions-handle.js +51 -0
- package/dist/components/list/swipe-actions-handle.js.map +1 -0
- package/dist/components/menu/main.d.ts +102 -32
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +510 -99
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +5 -5
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +35 -43
- package/dist/components/navigation/main.d.ts +14 -2
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +437 -119
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/props.d.ts +53 -3
- package/dist/components/navigation/props.d.ts.map +1 -1
- package/dist/components/navigation/style.css +56 -9
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +13 -8
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +8 -0
- package/dist/components/page/props.d.ts.map +1 -1
- package/dist/components/page/style.css +39 -4
- package/dist/components/page-control/main.d.ts +2 -2
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +66 -32
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/props.d.ts +10 -2
- package/dist/components/page-control/props.d.ts.map +1 -1
- package/dist/components/page-control/style.css +7 -2
- package/dist/components/popover/main.d.ts +11 -6
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +63 -38
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +7 -6
- package/dist/components/popover/props.d.ts.map +1 -1
- package/dist/components/popover/style.css +54 -4
- package/dist/components/progress/main.d.ts +2 -3
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +148 -29
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/props.d.ts +43 -9
- package/dist/components/progress/props.d.ts.map +1 -1
- package/dist/components/progress/style.css +82 -50
- package/dist/components/roll/main.d.ts +1 -1
- package/dist/components/roll/main.d.ts.map +1 -1
- package/dist/components/roll/main.js +90 -34
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/roll/props.d.ts +25 -8
- package/dist/components/roll/props.d.ts.map +1 -1
- package/dist/components/roll/style.css +12 -24
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +47 -30
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/style.css +16 -23
- package/dist/components/sheet/main.d.ts +25 -15
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +66 -78
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +37 -3
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/style.css +183 -45
- 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 +20 -14
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +23 -22
- 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 +27 -53
- package/dist/components/stepper/main.d.ts +4 -6
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +29 -25
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +12 -16
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +40 -28
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +7 -5
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/switch/style.css +40 -17
- package/dist/components/symbol/main.d.ts +2 -2
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +36 -28
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +39 -4
- package/dist/components/symbol/props.d.ts.map +1 -1
- package/dist/components/symbol/style.css +26 -5
- 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 +133 -101
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +6 -6
- package/dist/components/tab-bar/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +113 -99
- 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 +29 -30
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/props.d.ts +23 -1
- package/dist/components/text-field/props.d.ts.map +1 -1
- package/dist/components/text-field/style.css +122 -82
- package/dist/components/toolbar/main.js +27 -27
- 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 +39 -33
- package/dist/components/tooltip/main.d.ts +10 -9
- package/dist/components/tooltip/main.d.ts.map +1 -1
- package/dist/components/tooltip/main.js +39 -10
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/tooltip/props.d.ts +2 -0
- package/dist/components/tooltip/props.d.ts.map +1 -1
- package/dist/components/tooltip/style.css +16 -16
- 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 +24 -16
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/props.d.ts +11 -18
- package/dist/components/typography/props.d.ts.map +1 -1
- package/dist/components/typography/style.css +503 -623
- package/dist/components/utils/main.d.ts +78 -8
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +235 -16
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/utils/props.d.ts +27 -4
- package/dist/components/utils/props.d.ts.map +1 -1
- package/dist/components/utils/style.css +31 -18
- 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 +39 -0
- package/dist/components/viewport/input.d.ts.map +1 -0
- package/dist/components/viewport/input.js +280 -0
- package/dist/components/viewport/input.js.map +1 -0
- package/dist/components/viewport/main.d.ts +47 -9
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +745 -86
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +78 -0
- package/dist/components/viewport/padding.d.ts.map +1 -0
- package/dist/components/viewport/padding.js +321 -0
- package/dist/components/viewport/padding.js.map +1 -0
- package/dist/components/viewport/props.d.ts +220 -11
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/style.css +377 -6
- package/dist/main.d.ts +0 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js.map +1 -1
- package/dist/styles.css +318 -302
- package/dist/styles.d.ts +2 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +2 -1
- package/dist/styles.js.map +1 -1
- package/package.json +8 -16
|
@@ -1,13 +1,74 @@
|
|
|
1
1
|
/* Viewport (see main.tsx). */
|
|
2
2
|
@layer uikit-ish {
|
|
3
|
+
/* iOS 26, a Home Screen app (marked by its layers, see main.tsx; under
|
|
4
|
+
a translucent status bar, the page under the safe areas): a document no
|
|
5
|
+
taller than its window gets a layout viewport short by the status
|
|
6
|
+
bar's height (WebKit bug 301108), nothing painted below it (the
|
|
7
|
+
layers neither). As tall as the screen, the document gets the full one
|
|
8
|
+
(then, as tall as it, nothing to scroll; at most the status bar's
|
|
9
|
+
height more where it's opaque). */
|
|
10
|
+
:root[data-uikit-viewport-standalone] {
|
|
11
|
+
min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px)));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* The window an app's (its layers in it, or a provider tracking it, see
|
|
15
|
+
main.tsx): its
|
|
16
|
+
background, where nothing paints its own (a page's default, see Page):
|
|
17
|
+
beneath the layers, the content layer without one of its own (its
|
|
18
|
+
overscroll areas beneath it), behind the safe areas and past its
|
|
19
|
+
content's ends. */
|
|
20
|
+
:root[data-uikit-viewport-window] {
|
|
21
|
+
background-color: var(--color-ui-system-grouped-background);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* The content's edge (see padding.tsx): room for the anchors, as high
|
|
25
|
+
as they are, and the content margin (the library's gap between content and its container's edge, by token; a
|
|
26
|
+
`margin` prop, inline, overrides it). None before a large title (it
|
|
27
|
+
sits right under the bar). */
|
|
28
|
+
.uikit-viewport-padding {
|
|
29
|
+
--uikit-viewport-padding-margin: var(
|
|
30
|
+
--uikit-content-margin-block-start,
|
|
31
|
+
16px
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
height: calc(
|
|
35
|
+
var(--uikit-viewport-padding-size, 0px) +
|
|
36
|
+
var(--uikit-viewport-overscroll-room) +
|
|
37
|
+
var(--uikit-viewport-padding-margin)
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
/* (Room for open overscroll areas, see `Overscroll`: settling.) */
|
|
41
|
+
transition: --uikit-viewport-overscroll-room 300ms ease;
|
|
42
|
+
|
|
43
|
+
&[data-edge='block-end'] {
|
|
44
|
+
--uikit-viewport-padding-margin: var(
|
|
45
|
+
--uikit-content-margin-block-end,
|
|
46
|
+
16px
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[data-edge='block-start']:has(+ .uikit-header-large-title) {
|
|
51
|
+
--uikit-viewport-padding-margin: 0px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* A content layer's being moved along (see below): its own only. */
|
|
56
|
+
.uikit-viewport-content > * {
|
|
57
|
+
--uikit-viewport-bounce: initial;
|
|
58
|
+
}
|
|
59
|
+
|
|
3
60
|
/* The safe area insets kept clear (`data-safe-area`), as padding; at the
|
|
4
61
|
bottom, less what the keyboard covers (where it's kept clear of). */
|
|
5
62
|
.uikit-viewport-anchor,
|
|
6
|
-
.uikit-viewport-content
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
--uikit-viewport-
|
|
63
|
+
.uikit-viewport-content,
|
|
64
|
+
.uikit-viewport-overscroll {
|
|
65
|
+
/* Following the keyboard as it shows or hides (iOS: about 250ms, easing
|
|
66
|
+
out; the visual viewport's change arrives once, at its end). */
|
|
67
|
+
--uikit-viewport-keyboard-transition: 250ms cubic-bezier(0.2, 0.9, 0.3, 1);
|
|
68
|
+
--uikit-viewport-safe-top: var(--uikit-safe-area-inset-top, 0px);
|
|
69
|
+
--uikit-viewport-safe-right: var(--uikit-safe-area-inset-right, 0px);
|
|
70
|
+
--uikit-viewport-safe-bottom: var(--uikit-safe-area-inset-bottom, 0px);
|
|
71
|
+
--uikit-viewport-safe-left: var(--uikit-safe-area-inset-left, 0px);
|
|
11
72
|
--uikit-viewport-safe-bottom-keyboard: max(
|
|
12
73
|
0px,
|
|
13
74
|
var(--uikit-viewport-safe-bottom) -
|
|
@@ -28,6 +89,17 @@
|
|
|
28
89
|
--uikit-viewport-safe-top: 0px;
|
|
29
90
|
--uikit-viewport-safe-bottom: 0px;
|
|
30
91
|
}
|
|
92
|
+
|
|
93
|
+
/* Kept clear: none left for its content (e.g. a page in it). */
|
|
94
|
+
&:not([data-safe-area='inline'], [data-safe-area='none']) > * {
|
|
95
|
+
--uikit-safe-area-inset-top: 0px;
|
|
96
|
+
--uikit-safe-area-inset-bottom: 0px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:not([data-safe-area='block'], [data-safe-area='none']) > * {
|
|
100
|
+
--uikit-safe-area-inset-right: 0px;
|
|
101
|
+
--uikit-safe-area-inset-left: 0px;
|
|
102
|
+
}
|
|
31
103
|
}
|
|
32
104
|
|
|
33
105
|
/* At an edge (`data-edge`): bars at the top and bottom (pushed up by the
|
|
@@ -36,6 +108,12 @@
|
|
|
36
108
|
.uikit-viewport-anchor {
|
|
37
109
|
z-index: 10;
|
|
38
110
|
|
|
111
|
+
/* A layer of its own: Safari paints a composited scroller's content (the
|
|
112
|
+
content layer's) above uncomposited later siblings, their z-index
|
|
113
|
+
notwithstanding (e.g. within a transformed ancestor, where fixed is
|
|
114
|
+
not composited as such). */
|
|
115
|
+
transform: translateZ(0);
|
|
116
|
+
|
|
39
117
|
&[data-edge='block-start'] {
|
|
40
118
|
top: var(--uikit-viewport-top, 0);
|
|
41
119
|
padding-top: var(--uikit-viewport-safe-top);
|
|
@@ -51,9 +129,13 @@
|
|
|
51
129
|
padding-inline: var(--uikit-viewport-safe-left)
|
|
52
130
|
var(--uikit-viewport-safe-right);
|
|
53
131
|
|
|
132
|
+
/* (Moving with the keyboard, see below.) */
|
|
54
133
|
&[data-keyboard='push'] {
|
|
55
134
|
bottom: var(--uikit-viewport-keyboard-inset, 0);
|
|
56
135
|
padding-bottom: var(--uikit-viewport-safe-bottom-keyboard);
|
|
136
|
+
transition:
|
|
137
|
+
bottom var(--uikit-viewport-keyboard-transition),
|
|
138
|
+
padding-bottom var(--uikit-viewport-keyboard-transition);
|
|
57
139
|
}
|
|
58
140
|
}
|
|
59
141
|
|
|
@@ -92,8 +174,214 @@
|
|
|
92
174
|
}
|
|
93
175
|
}
|
|
94
176
|
|
|
177
|
+
/* A scroller's edge effect (see EdgeEffects), fixed at its edge as its
|
|
178
|
+
bars are (beneath them, a layer of its own: Safari's overlap testing,
|
|
179
|
+
see above), as tall as the tallest (`--uikit-viewport-edge-size`, its
|
|
180
|
+
safe area too) and what's stuck to them (`--uikit-viewport-edge-extent`).
|
|
181
|
+
Showing as content scrolls under the bars
|
|
182
|
+
(`--uikit-viewport-edge-progress`, measured). */
|
|
183
|
+
.uikit-viewport-edge-effect {
|
|
184
|
+
--uikit-viewport-edge-reach: calc(
|
|
185
|
+
var(--uikit-viewport-edge-size) + var(--uikit-viewport-edge-extent, 0px)
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
position: fixed;
|
|
189
|
+
z-index: 9;
|
|
190
|
+
height: var(--uikit-viewport-edge-reach);
|
|
191
|
+
inset-inline: 0;
|
|
192
|
+
pointer-events: none;
|
|
193
|
+
transform: translateZ(0);
|
|
194
|
+
|
|
195
|
+
&[data-edge='block-start'] {
|
|
196
|
+
top: var(--uikit-viewport-top, 0);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&[data-edge='block-end'] {
|
|
200
|
+
bottom: 0;
|
|
201
|
+
|
|
202
|
+
&[data-keyboard='push'] {
|
|
203
|
+
bottom: var(--uikit-viewport-keyboard-inset, 0);
|
|
204
|
+
transition: bottom var(--uikit-viewport-keyboard-transition, 250ms);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&::before,
|
|
209
|
+
&::after {
|
|
210
|
+
position: absolute;
|
|
211
|
+
content: '';
|
|
212
|
+
inset: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&::before {
|
|
216
|
+
opacity: var(--uikit-viewport-edge-progress, 0);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Soft: a blur fading out away from the edge (16px further), the tint
|
|
220
|
+
under the same fade. */
|
|
221
|
+
&[data-edge-effect='soft'] {
|
|
222
|
+
height: calc(var(--uikit-viewport-edge-reach) + 16px);
|
|
223
|
+
|
|
224
|
+
&::before {
|
|
225
|
+
backdrop-filter: blur(8px);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&::after {
|
|
229
|
+
background-color: var(--uikit-viewport-edge-tint, transparent);
|
|
230
|
+
transition: background-color 300ms;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* (Masked each, not the layer: masked, it would be the blur's
|
|
234
|
+
backdrop root, the blur seeing nothing behind it.) */
|
|
235
|
+
&[data-edge='block-start']::before,
|
|
236
|
+
&[data-edge='block-start']::after {
|
|
237
|
+
mask-image: linear-gradient(#000 50%, transparent);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&[data-edge='block-end']::before,
|
|
241
|
+
&[data-edge='block-end']::after {
|
|
242
|
+
mask-image: linear-gradient(transparent, #000 50%);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* Hard: a solid backing (the tint, or the background), a line at its
|
|
247
|
+
inner side; tinted, at rest too. */
|
|
248
|
+
&[data-edge-effect='hard'] {
|
|
249
|
+
&::before {
|
|
250
|
+
background-color: var(
|
|
251
|
+
--uikit-viewport-edge-tint,
|
|
252
|
+
var(--color-ui-system-background)
|
|
253
|
+
);
|
|
254
|
+
transition: background-color 300ms;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&[data-edge-tinted]::before {
|
|
258
|
+
opacity: 1;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&::after {
|
|
262
|
+
content: none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&[data-edge='block-start']::before {
|
|
266
|
+
border-bottom: 1px solid var(--color-ui-separator);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&[data-edge='block-end']::before {
|
|
270
|
+
border-top: 1px solid var(--color-ui-separator);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@media (prefers-reduced-motion: reduce) {
|
|
275
|
+
&::before,
|
|
276
|
+
&::after {
|
|
277
|
+
transition: none;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* The bars' inner side (see EdgeEffects: what's stuck to them, measured
|
|
283
|
+
from it). */
|
|
284
|
+
.uikit-viewport-edge-line {
|
|
285
|
+
position: absolute;
|
|
286
|
+
height: 0;
|
|
287
|
+
inset-inline: 0;
|
|
288
|
+
|
|
289
|
+
[data-edge='block-start'] > & {
|
|
290
|
+
top: var(--uikit-viewport-edge-size);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
[data-edge='block-end'] > & {
|
|
294
|
+
bottom: var(--uikit-viewport-edge-size);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* What shows past an end of the scroll container (see `Overscroll`): a
|
|
299
|
+
layer beneath the content layer (before it), clipped from its edge's
|
|
300
|
+
bars (`--uikit-viewport-overscroll-inset`, inside the safe area) to the
|
|
301
|
+
other end; its area just out of it, moved in by the pull
|
|
302
|
+
(`--uikit-viewport-overscroll`), as the content's end. Where the content
|
|
303
|
+
stays (`data-overlay`: not bouncing by itself, nor moved along, see
|
|
304
|
+
below), over it (beneath the anchors, a layer of its own as they are). */
|
|
305
|
+
.uikit-viewport-overscroll {
|
|
306
|
+
/* Its area's rest past the insets not kept clear (`data-safe-area`, see
|
|
307
|
+
above): clear of them all the same (where it's open). */
|
|
308
|
+
--uikit-viewport-overscroll-rest-start: calc(
|
|
309
|
+
var(--uikit-safe-area-inset-top, 0px) - var(--uikit-viewport-safe-top)
|
|
310
|
+
);
|
|
311
|
+
--uikit-viewport-overscroll-rest-end: calc(
|
|
312
|
+
max(
|
|
313
|
+
0px,
|
|
314
|
+
var(--uikit-safe-area-inset-bottom, 0px) -
|
|
315
|
+
var(--uikit-viewport-keyboard-inset, 0px)
|
|
316
|
+
) - var(--uikit-viewport-safe-bottom-keyboard)
|
|
317
|
+
);
|
|
318
|
+
|
|
319
|
+
z-index: 0;
|
|
320
|
+
overflow: clip;
|
|
321
|
+
inset-inline: 0;
|
|
322
|
+
pointer-events: none;
|
|
323
|
+
|
|
324
|
+
&[data-edge='block-start'] {
|
|
325
|
+
top: calc(
|
|
326
|
+
var(--uikit-viewport-top, 0px) + var(--uikit-viewport-safe-top) +
|
|
327
|
+
var(--uikit-viewport-overscroll-inset, 0px)
|
|
328
|
+
);
|
|
329
|
+
bottom: var(--uikit-viewport-keyboard-inset, 0);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&[data-edge='block-end'] {
|
|
333
|
+
top: var(--uikit-viewport-top, 0);
|
|
334
|
+
bottom: calc(
|
|
335
|
+
var(--uikit-viewport-keyboard-inset, 0px) +
|
|
336
|
+
var(--uikit-viewport-safe-bottom-keyboard) +
|
|
337
|
+
var(--uikit-viewport-overscroll-inset, 0px)
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
&[data-overlay] {
|
|
342
|
+
z-index: 9;
|
|
343
|
+
transform: translateZ(0);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.uikit-viewport-overscroll-area {
|
|
348
|
+
position: absolute;
|
|
349
|
+
box-sizing: border-box;
|
|
350
|
+
inset-inline: 0;
|
|
351
|
+
padding-inline: var(--uikit-viewport-safe-left)
|
|
352
|
+
var(--uikit-viewport-safe-right);
|
|
353
|
+
pointer-events: auto;
|
|
354
|
+
|
|
355
|
+
/* Open: moved in by the room made for it too, as the content. */
|
|
356
|
+
transition: --uikit-viewport-overscroll-room 300ms ease;
|
|
357
|
+
|
|
358
|
+
[data-edge='block-start'] > & {
|
|
359
|
+
top: 0;
|
|
360
|
+
translate: 0
|
|
361
|
+
calc(
|
|
362
|
+
var(--uikit-viewport-overscroll, 0px) +
|
|
363
|
+
var(--uikit-viewport-overscroll-room) +
|
|
364
|
+
var(--uikit-viewport-overscroll-rest-start) - 100%
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
[data-edge='block-end'] > & {
|
|
369
|
+
bottom: 0;
|
|
370
|
+
translate: 0
|
|
371
|
+
calc(
|
|
372
|
+
100% - var(--uikit-viewport-overscroll, 0px) -
|
|
373
|
+
var(--uikit-viewport-overscroll-room) -
|
|
374
|
+
var(--uikit-viewport-overscroll-rest-end)
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
95
379
|
/* The content layer: filling the visual viewport; with the keyboard
|
|
96
|
-
(`data-keyboard='resize'`), down to its top.
|
|
380
|
+
(`data-keyboard='resize'`), down to its top. Pulled past an end where
|
|
381
|
+
it doesn't bounce by itself (the tracked scroll container: see
|
|
382
|
+
`Provider`), moved along while an overscroll area is shown
|
|
383
|
+
(`--uikit-viewport-bounce`, set only then: at
|
|
384
|
+
rest, none, not a containing block), as Safari's; its own only. */
|
|
97
385
|
.uikit-viewport-content {
|
|
98
386
|
top: 0;
|
|
99
387
|
bottom: 0;
|
|
@@ -102,11 +390,94 @@
|
|
|
102
390
|
var(--uikit-viewport-safe-bottom) var(--uikit-viewport-safe-left);
|
|
103
391
|
inset-inline: 0;
|
|
104
392
|
overscroll-behavior: contain;
|
|
393
|
+
translate: 0 var(--uikit-viewport-bounce);
|
|
394
|
+
|
|
395
|
+
/* Bouncing even when its content fits (`alwaysBounce`): a box 1px
|
|
396
|
+
taller than it (its padding box: absolutely placed, it counts toward
|
|
397
|
+
its scrollable overflow), unseen. Unset (`auto`): not while its child
|
|
398
|
+
scrolls on its own (bouncing it would move that whole). */
|
|
399
|
+
&[data-always-bounce]:not(
|
|
400
|
+
[data-always-bounce='auto']:has(
|
|
401
|
+
> :is(
|
|
402
|
+
.uikit-page-root,
|
|
403
|
+
.uikit-header-root,
|
|
404
|
+
.uikit-layout-root,
|
|
405
|
+
.uikit-navigation-root
|
|
406
|
+
)
|
|
407
|
+
)
|
|
408
|
+
)::after {
|
|
409
|
+
position: absolute;
|
|
410
|
+
top: 0;
|
|
411
|
+
width: 1px;
|
|
412
|
+
height: calc(100% + 1px);
|
|
413
|
+
content: '';
|
|
414
|
+
inset-inline-start: 0;
|
|
415
|
+
pointer-events: none;
|
|
416
|
+
visibility: hidden;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* Its safe area insets (`safeArea`) unset (`auto`): kept clear (as
|
|
420
|
+
`all`), but not while its child scrolls on its own (as `none`: it
|
|
421
|
+
fills the screen, its bars and paddings keeping its content clear,
|
|
422
|
+
the insets left for them). */
|
|
423
|
+
&[data-safe-area='auto']:has(
|
|
424
|
+
> :is(
|
|
425
|
+
.uikit-page-root,
|
|
426
|
+
.uikit-header-root,
|
|
427
|
+
.uikit-layout-root,
|
|
428
|
+
.uikit-navigation-root
|
|
429
|
+
)
|
|
430
|
+
) {
|
|
431
|
+
--uikit-viewport-safe-top: 0px;
|
|
432
|
+
--uikit-viewport-safe-right: 0px;
|
|
433
|
+
--uikit-viewport-safe-bottom: 0px;
|
|
434
|
+
--uikit-viewport-safe-left: 0px;
|
|
435
|
+
|
|
436
|
+
& > * {
|
|
437
|
+
--uikit-safe-area-inset-top: inherit;
|
|
438
|
+
--uikit-safe-area-inset-right: inherit;
|
|
439
|
+
--uikit-safe-area-inset-bottom: inherit;
|
|
440
|
+
--uikit-safe-area-inset-left: inherit;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
105
443
|
|
|
106
444
|
&[data-keyboard='resize'] {
|
|
107
445
|
top: var(--uikit-viewport-top, 0);
|
|
108
446
|
bottom: var(--uikit-viewport-keyboard-inset, 0);
|
|
109
447
|
padding-bottom: var(--uikit-viewport-safe-bottom-keyboard);
|
|
448
|
+
transition:
|
|
449
|
+
bottom var(--uikit-viewport-keyboard-transition),
|
|
450
|
+
padding-bottom var(--uikit-viewport-keyboard-transition);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* What's typed into, kept above the keyboard (see `KeyboardAccessory`):
|
|
455
|
+
lifted by `--uikit-viewport-keyboard-lift` (its place kept), as the
|
|
456
|
+
keyboard moves; above what's around it, its background the app's
|
|
457
|
+
(`--uikit-viewport-keyboard-accessory-background`, none by default). */
|
|
458
|
+
.uikit-viewport-keyboard-accessory {
|
|
459
|
+
--uikit-viewport-keyboard-transition: 250ms cubic-bezier(0.2, 0.9, 0.3, 1);
|
|
460
|
+
|
|
461
|
+
position: relative;
|
|
462
|
+
transition:
|
|
463
|
+
translate var(--uikit-viewport-keyboard-transition),
|
|
464
|
+
background-color var(--uikit-viewport-keyboard-transition);
|
|
465
|
+
translate: 0 calc(var(--uikit-viewport-keyboard-lift, 0px) * -1);
|
|
466
|
+
|
|
467
|
+
&[data-lifted] {
|
|
468
|
+
z-index: 1;
|
|
469
|
+
background-color: var(
|
|
470
|
+
--uikit-viewport-keyboard-accessory-background,
|
|
471
|
+
transparent
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
@media (prefers-reduced-motion: reduce) {
|
|
477
|
+
.uikit-viewport-anchor,
|
|
478
|
+
.uikit-viewport-content,
|
|
479
|
+
.uikit-viewport-keyboard-accessory {
|
|
480
|
+
--uikit-viewport-keyboard-transition: 0s;
|
|
110
481
|
}
|
|
111
482
|
}
|
|
112
483
|
}
|
package/dist/main.d.ts
CHANGED
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
|