@mrpelz/uikit-ish 7.8.0 → 7.9.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 -15
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +86 -16
- 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 +15 -0
- package/dist/components/activity-view/main.d.ts +14 -3
- package/dist/components/activity-view/main.d.ts.map +1 -1
- package/dist/components/activity-view/main.js +19 -4
- 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 +8 -46
- package/dist/components/alert/main.d.ts +6 -4
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +20 -4
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +12 -1
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +13 -27
- 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 +3 -0
- 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 +0 -6
- package/dist/components/badge/main.d.ts +2 -2
- package/dist/components/badge/main.d.ts.map +1 -1
- package/dist/components/badge/main.js +5 -5
- 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 +3 -2
- package/dist/components/button/main.d.ts.map +1 -1
- package/dist/components/button/main.js +6 -6
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/style.css +11 -27
- package/dist/components/checkbox/style.css +2 -5
- 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 +1 -1
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +40 -33
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +21 -7
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +9 -27
- 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 +99 -47
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +17 -7
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +11 -8
- 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 +300 -139
- 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 +93 -22
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +59 -71
- 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 +74 -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 +31 -23
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/edit-menu/props.d.ts +13 -0
- package/dist/components/edit-menu/props.d.ts.map +1 -1
- package/dist/components/edit-menu/style.css +5 -7
- 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 +15 -2
- 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/style.css +19 -4
- 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 +56 -27
- 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 +62 -42
- package/dist/components/index.d.ts +26 -22
- 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 +59 -163
- 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 +18 -89
- package/dist/components/list/main.d.ts +49 -9
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +769 -208
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +165 -8
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/style.css +308 -371
- 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 +31 -8
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +175 -39
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +2 -1
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +10 -32
- package/dist/components/navigation/main.d.ts +11 -2
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +186 -98
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/props.d.ts +20 -3
- package/dist/components/navigation/props.d.ts.map +1 -1
- package/dist/components/navigation/style.css +24 -7
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +2 -2
- 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 -1
- package/dist/components/page-control/main.d.ts +1 -1
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +59 -25
- 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 +5 -0
- 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 +53 -31
- 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 +45 -4
- package/dist/components/progress/main.d.ts +1 -1
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +108 -15
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/props.d.ts +25 -5
- package/dist/components/progress/props.d.ts.map +1 -1
- package/dist/components/progress/style.css +67 -35
- 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 +81 -25
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/roll/props.d.ts +24 -7
- package/dist/components/roll/props.d.ts.map +1 -1
- package/dist/components/roll/style.css +1 -13
- package/dist/components/segmented/main.js +3 -3
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/style.css +2 -14
- 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 +57 -73
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +36 -2
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/style.css +176 -44
- package/dist/components/sidebar/style.css +13 -7
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +6 -5
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/style.css +2 -28
- 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 +17 -11
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +4 -8
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +16 -11
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +2 -2
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/switch/style.css +28 -1
- 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 +34 -27
- 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 +25 -4
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +59 -46
- 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/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +24 -46
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +9 -8
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/props.d.ts +8 -1
- package/dist/components/text-field/props.d.ts.map +1 -1
- package/dist/components/text-field/style.css +21 -55
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +11 -9
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/style.css +28 -22
- 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 +35 -6
- 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 +11 -11
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +16 -6
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/props.d.ts +2 -9
- package/dist/components/typography/props.d.ts.map +1 -1
- package/dist/components/typography/style.css +0 -120
- package/dist/components/utils/main.d.ts +34 -5
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +81 -12
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/utils/props.d.ts +4 -2
- package/dist/components/utils/props.d.ts.map +1 -1
- package/dist/components/utils/style.css +29 -16
- package/dist/components/viewport/input.d.ts +23 -0
- package/dist/components/viewport/input.d.ts.map +1 -0
- package/dist/components/viewport/input.js +95 -0
- package/dist/components/viewport/input.js.map +1 -0
- package/dist/components/viewport/main.d.ts +42 -9
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +488 -66
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +50 -0
- package/dist/components/viewport/padding.d.ts.map +1 -0
- package/dist/components/viewport/padding.js +226 -0
- package/dist/components/viewport/padding.js.map +1 -0
- package/dist/components/viewport/props.d.ts +155 -7
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/style.css +172 -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 +35 -2
- 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 +6 -13
|
@@ -1,13 +1,54 @@
|
|
|
1
1
|
/* Viewport (see main.tsx). */
|
|
2
2
|
@layer uikit-ish {
|
|
3
|
+
/* The content's edge (see padding.tsx): room for the anchors, as high
|
|
4
|
+
as they are, and the content margin (UIKit's layout margins: the
|
|
5
|
+
library's gap between content and its container's edge, by token; a
|
|
6
|
+
`margin` prop, inline, overrides it). None before a large title (it
|
|
7
|
+
sits right under the bar). */
|
|
8
|
+
.uikit-viewport-padding {
|
|
9
|
+
--uikit-viewport-padding-margin: var(
|
|
10
|
+
--uikit-content-margin-block-start,
|
|
11
|
+
16px
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
height: calc(
|
|
15
|
+
var(--uikit-viewport-padding-size, 0px) +
|
|
16
|
+
var(--uikit-viewport-overscroll-room) +
|
|
17
|
+
var(--uikit-viewport-padding-margin)
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
/* (Room for open overscroll areas, see `Overscroll`: settling.) */
|
|
21
|
+
transition: --uikit-viewport-overscroll-room 300ms ease;
|
|
22
|
+
|
|
23
|
+
&[data-edge='block-end'] {
|
|
24
|
+
--uikit-viewport-padding-margin: var(
|
|
25
|
+
--uikit-content-margin-block-end,
|
|
26
|
+
16px
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[data-edge='block-start']:has(+ .uikit-header-large-title) {
|
|
31
|
+
--uikit-viewport-padding-margin: 0px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* A content layer's being moved along (see below): its own only. */
|
|
36
|
+
.uikit-viewport-content > * {
|
|
37
|
+
--uikit-viewport-bounce: initial;
|
|
38
|
+
}
|
|
39
|
+
|
|
3
40
|
/* The safe area insets kept clear (`data-safe-area`), as padding; at the
|
|
4
41
|
bottom, less what the keyboard covers (where it's kept clear of). */
|
|
5
42
|
.uikit-viewport-anchor,
|
|
6
|
-
.uikit-viewport-content
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
--uikit-viewport-
|
|
43
|
+
.uikit-viewport-content,
|
|
44
|
+
.uikit-viewport-overscroll {
|
|
45
|
+
/* Following the keyboard as it shows or hides (iOS: about 250ms, easing
|
|
46
|
+
out; the visual viewport's change arrives once, at its end). */
|
|
47
|
+
--uikit-viewport-keyboard-transition: 250ms cubic-bezier(0.2, 0.9, 0.3, 1);
|
|
48
|
+
--uikit-viewport-safe-top: var(--uikit-safe-area-inset-top, 0px);
|
|
49
|
+
--uikit-viewport-safe-right: var(--uikit-safe-area-inset-right, 0px);
|
|
50
|
+
--uikit-viewport-safe-bottom: var(--uikit-safe-area-inset-bottom, 0px);
|
|
51
|
+
--uikit-viewport-safe-left: var(--uikit-safe-area-inset-left, 0px);
|
|
11
52
|
--uikit-viewport-safe-bottom-keyboard: max(
|
|
12
53
|
0px,
|
|
13
54
|
var(--uikit-viewport-safe-bottom) -
|
|
@@ -28,6 +69,17 @@
|
|
|
28
69
|
--uikit-viewport-safe-top: 0px;
|
|
29
70
|
--uikit-viewport-safe-bottom: 0px;
|
|
30
71
|
}
|
|
72
|
+
|
|
73
|
+
/* Kept clear: none left for its content (e.g. a page in it). */
|
|
74
|
+
&:not([data-safe-area='inline'], [data-safe-area='none']) > * {
|
|
75
|
+
--uikit-safe-area-inset-top: 0px;
|
|
76
|
+
--uikit-safe-area-inset-bottom: 0px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:not([data-safe-area='block'], [data-safe-area='none']) > * {
|
|
80
|
+
--uikit-safe-area-inset-right: 0px;
|
|
81
|
+
--uikit-safe-area-inset-left: 0px;
|
|
82
|
+
}
|
|
31
83
|
}
|
|
32
84
|
|
|
33
85
|
/* At an edge (`data-edge`): bars at the top and bottom (pushed up by the
|
|
@@ -36,6 +88,12 @@
|
|
|
36
88
|
.uikit-viewport-anchor {
|
|
37
89
|
z-index: 10;
|
|
38
90
|
|
|
91
|
+
/* A layer of its own: Safari paints a composited scroller's content (the
|
|
92
|
+
content layer's) above uncomposited later siblings, their z-index
|
|
93
|
+
notwithstanding (e.g. within a transformed ancestor, where fixed is
|
|
94
|
+
not composited as such). */
|
|
95
|
+
transform: translateZ(0);
|
|
96
|
+
|
|
39
97
|
&[data-edge='block-start'] {
|
|
40
98
|
top: var(--uikit-viewport-top, 0);
|
|
41
99
|
padding-top: var(--uikit-viewport-safe-top);
|
|
@@ -51,9 +109,13 @@
|
|
|
51
109
|
padding-inline: var(--uikit-viewport-safe-left)
|
|
52
110
|
var(--uikit-viewport-safe-right);
|
|
53
111
|
|
|
112
|
+
/* (Moving with the keyboard, see below.) */
|
|
54
113
|
&[data-keyboard='push'] {
|
|
55
114
|
bottom: var(--uikit-viewport-keyboard-inset, 0);
|
|
56
115
|
padding-bottom: var(--uikit-viewport-safe-bottom-keyboard);
|
|
116
|
+
transition:
|
|
117
|
+
bottom var(--uikit-viewport-keyboard-transition),
|
|
118
|
+
padding-bottom var(--uikit-viewport-keyboard-transition);
|
|
57
119
|
}
|
|
58
120
|
}
|
|
59
121
|
|
|
@@ -92,8 +154,77 @@
|
|
|
92
154
|
}
|
|
93
155
|
}
|
|
94
156
|
|
|
157
|
+
/* What shows past an end of the scroll container (see `Overscroll`): a
|
|
158
|
+
layer beneath the content layer (before it), clipped from its edge's
|
|
159
|
+
bars (`--uikit-viewport-overscroll-inset`, inside the safe area) to the
|
|
160
|
+
other end; its area just out of it, moved in by the pull
|
|
161
|
+
(`--uikit-viewport-overscroll`), as the content's end. Where the content
|
|
162
|
+
stays (`data-overlay`: not bouncing by itself, nor moved along, see
|
|
163
|
+
below), over it (beneath the anchors, a layer of its own as they are). */
|
|
164
|
+
.uikit-viewport-overscroll {
|
|
165
|
+
z-index: 0;
|
|
166
|
+
overflow: clip;
|
|
167
|
+
inset-inline: 0;
|
|
168
|
+
pointer-events: none;
|
|
169
|
+
|
|
170
|
+
&[data-edge='block-start'] {
|
|
171
|
+
top: calc(
|
|
172
|
+
var(--uikit-viewport-top, 0px) + var(--uikit-viewport-safe-top) +
|
|
173
|
+
var(--uikit-viewport-overscroll-inset, 0px)
|
|
174
|
+
);
|
|
175
|
+
bottom: var(--uikit-viewport-keyboard-inset, 0);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&[data-edge='block-end'] {
|
|
179
|
+
top: var(--uikit-viewport-top, 0);
|
|
180
|
+
bottom: calc(
|
|
181
|
+
var(--uikit-viewport-keyboard-inset, 0px) +
|
|
182
|
+
var(--uikit-viewport-safe-bottom-keyboard) +
|
|
183
|
+
var(--uikit-viewport-overscroll-inset, 0px)
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&[data-overlay] {
|
|
188
|
+
z-index: 9;
|
|
189
|
+
transform: translateZ(0);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.uikit-viewport-overscroll-area {
|
|
194
|
+
position: absolute;
|
|
195
|
+
box-sizing: border-box;
|
|
196
|
+
inset-inline: 0;
|
|
197
|
+
padding-inline: var(--uikit-viewport-safe-left)
|
|
198
|
+
var(--uikit-viewport-safe-right);
|
|
199
|
+
pointer-events: auto;
|
|
200
|
+
|
|
201
|
+
/* Open: moved in by the room made for it too, as the content. */
|
|
202
|
+
transition: --uikit-viewport-overscroll-room 300ms ease;
|
|
203
|
+
|
|
204
|
+
[data-edge='block-start'] > & {
|
|
205
|
+
top: 0;
|
|
206
|
+
translate: 0
|
|
207
|
+
calc(
|
|
208
|
+
var(--uikit-viewport-overscroll, 0px) +
|
|
209
|
+
var(--uikit-viewport-overscroll-room) - 100%
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[data-edge='block-end'] > & {
|
|
214
|
+
bottom: 0;
|
|
215
|
+
translate: 0
|
|
216
|
+
calc(
|
|
217
|
+
100% - var(--uikit-viewport-overscroll, 0px) -
|
|
218
|
+
var(--uikit-viewport-overscroll-room)
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
95
223
|
/* The content layer: filling the visual viewport; with the keyboard
|
|
96
|
-
(`data-keyboard='resize'`), down to its top.
|
|
224
|
+
(`data-keyboard='resize'`), down to its top. Pulled past an end where
|
|
225
|
+
it doesn't bounce by itself (the tracked scroll container: see
|
|
226
|
+
`Provider`), moved along (`--uikit-viewport-bounce`, set only then: at
|
|
227
|
+
rest, none, not a containing block), as Safari's; its own only. */
|
|
97
228
|
.uikit-viewport-content {
|
|
98
229
|
top: 0;
|
|
99
230
|
bottom: 0;
|
|
@@ -102,11 +233,46 @@
|
|
|
102
233
|
var(--uikit-viewport-safe-bottom) var(--uikit-viewport-safe-left);
|
|
103
234
|
inset-inline: 0;
|
|
104
235
|
overscroll-behavior: contain;
|
|
236
|
+
translate: 0 var(--uikit-viewport-bounce);
|
|
237
|
+
|
|
238
|
+
/* Bouncing even when its content fits (`alwaysBounce`): a box 1px
|
|
239
|
+
taller than it (its padding box: absolutely placed, it counts toward
|
|
240
|
+
its scrollable overflow), unseen. Unset (`auto`): not while its child
|
|
241
|
+
scrolls on its own (bouncing it would move that whole). */
|
|
242
|
+
&[data-always-bounce]:not(
|
|
243
|
+
[data-always-bounce='auto']:has(
|
|
244
|
+
> :is(
|
|
245
|
+
.uikit-page-root,
|
|
246
|
+
.uikit-header-root,
|
|
247
|
+
.uikit-layout-root,
|
|
248
|
+
.uikit-navigation-root
|
|
249
|
+
)
|
|
250
|
+
)
|
|
251
|
+
)::after {
|
|
252
|
+
position: absolute;
|
|
253
|
+
top: 0;
|
|
254
|
+
width: 1px;
|
|
255
|
+
height: calc(100% + 1px);
|
|
256
|
+
content: '';
|
|
257
|
+
inset-inline-start: 0;
|
|
258
|
+
pointer-events: none;
|
|
259
|
+
visibility: hidden;
|
|
260
|
+
}
|
|
105
261
|
|
|
106
262
|
&[data-keyboard='resize'] {
|
|
107
263
|
top: var(--uikit-viewport-top, 0);
|
|
108
264
|
bottom: var(--uikit-viewport-keyboard-inset, 0);
|
|
109
265
|
padding-bottom: var(--uikit-viewport-safe-bottom-keyboard);
|
|
266
|
+
transition:
|
|
267
|
+
bottom var(--uikit-viewport-keyboard-transition),
|
|
268
|
+
padding-bottom var(--uikit-viewport-keyboard-transition);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@media (prefers-reduced-motion: reduce) {
|
|
273
|
+
.uikit-viewport-anchor,
|
|
274
|
+
.uikit-viewport-content {
|
|
275
|
+
--uikit-viewport-keyboard-transition: 0s;
|
|
110
276
|
}
|
|
111
277
|
}
|
|
112
278
|
}
|
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"}
|
package/dist/styles.css
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
:root {
|
|
7
7
|
color-scheme: light dark;
|
|
8
8
|
|
|
9
|
+
/*
|
|
10
|
+
* The safe area insets (the notch or Dynamic Island, the home indicator,
|
|
11
|
+
* the rounded corners): the device's, or an app's (e.g. a frame
|
|
12
|
+
* emulating a device). A component keeping a side clear sets it to 0px
|
|
13
|
+
* for its content (e.g. Viewport's layers, Page, Sheet).
|
|
14
|
+
*/
|
|
15
|
+
--uikit-safe-area-inset-top: env(safe-area-inset-top, 0px);
|
|
16
|
+
--uikit-safe-area-inset-right: env(safe-area-inset-right, 0px);
|
|
17
|
+
--uikit-safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
|
|
18
|
+
--uikit-safe-area-inset-left: env(safe-area-inset-left, 0px);
|
|
19
|
+
|
|
9
20
|
/*
|
|
10
21
|
* Grayscale antialiasing, as on iOS (Framework7 components/app/app.less;
|
|
11
22
|
* Figma renders text the same way)
|
|
@@ -457,11 +468,16 @@
|
|
|
457
468
|
--shadow-ios-list-reorder: 0 2px 8px rgb(0 0 0 / 60%);
|
|
458
469
|
}
|
|
459
470
|
|
|
460
|
-
|
|
471
|
+
/* A color scheme forced (see `useColorScheme`): on the root element, or
|
|
472
|
+
on any element, for what's within it. (Forced within one forced
|
|
473
|
+
otherwise, the dark one's rules win, not the nearer one's.) */
|
|
474
|
+
[data-color-scheme='light'] {
|
|
461
475
|
color-scheme: light;
|
|
476
|
+
|
|
477
|
+
--glass-ios-lens-shadow: var(--glass-ios-bright-lens-shadow);
|
|
462
478
|
}
|
|
463
479
|
|
|
464
|
-
|
|
480
|
+
[data-color-scheme='dark'] {
|
|
465
481
|
color-scheme: dark;
|
|
466
482
|
|
|
467
483
|
--glass-ios-lens-shadow: var(--glass-ios-dim-lens-shadow);
|
|
@@ -565,3 +581,20 @@
|
|
|
565
581
|
initial-value: 0;
|
|
566
582
|
syntax: '<number>';
|
|
567
583
|
}
|
|
584
|
+
|
|
585
|
+
/* A symbol's emphasis (see `Symbol`), set by its host: 0 its icon shown,
|
|
586
|
+
1 its emphasized one; a number, so a host can transition it. */
|
|
587
|
+
@property --uikit-symbol-emphasis {
|
|
588
|
+
inherits: true;
|
|
589
|
+
initial-value: 0;
|
|
590
|
+
syntax: '<number>';
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/* Room made for an open overscroll area (see `Viewport.Overscroll`): a
|
|
594
|
+
length transitioning as such, the padding making it (and the area,
|
|
595
|
+
moving along) following every frame. */
|
|
596
|
+
@property --uikit-viewport-overscroll-room {
|
|
597
|
+
inherits: false;
|
|
598
|
+
initial-value: 0;
|
|
599
|
+
syntax: '<length>';
|
|
600
|
+
}
|
package/dist/styles.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export declare const useTouchActive: () => void;
|
|
|
10
10
|
/**
|
|
11
11
|
* Forces a color scheme on the whole document while mounted (sets
|
|
12
12
|
* `colorSchemeAttribute` on the root element), or follows the browser's
|
|
13
|
-
* preference (`undefined`).
|
|
13
|
+
* preference (`undefined`). (For one element and what's within it, the
|
|
14
|
+
* attribute set on that element.)
|
|
14
15
|
*/
|
|
15
16
|
export declare const useColorScheme: (scheme?: ColorScheme) => void;
|
|
16
17
|
export type StylesProps = {
|
package/dist/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,WAAW,EAAwB,MAAM,4BAA4B,CAAC;AAI/E;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,IAKjC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,WAAW,EAAwB,MAAM,4BAA4B,CAAC;AAI/E;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,IAKjC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,WAAW,KAAG,IAQrD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAKjD,CAAC"}
|
package/dist/styles.js
CHANGED
|
@@ -16,7 +16,8 @@ export const useTouchActive = () => {
|
|
|
16
16
|
/**
|
|
17
17
|
* Forces a color scheme on the whole document while mounted (sets
|
|
18
18
|
* `colorSchemeAttribute` on the root element), or follows the browser's
|
|
19
|
-
* preference (`undefined`).
|
|
19
|
+
* preference (`undefined`). (For one element and what's within it, the
|
|
20
|
+
* attribute set on that element.)
|
|
20
21
|
*/
|
|
21
22
|
export const useColorScheme = (scheme) => {
|
|
22
23
|
useEffect(() => {
|
package/dist/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAe,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE/E,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAS,EAAE;IACvC,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QACjE,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAe,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE/E,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAS,EAAE;IACvC,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QACjE,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAoB,EAAQ,EAAE;IAC3D,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM;YAAE,OAAO,SAAS,CAAC;QAE9B,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;QAChD,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAC1D,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACf,CAAC,CAAC;AAOF;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAmC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;IACxE,cAAc,EAAE,CAAC;IACjB,cAAc,CAAC,WAAW,CAAC,CAAC;IAE5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrpelz/uikit-ish",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mrpelz/utils.git",
|
|
@@ -39,19 +39,12 @@
|
|
|
39
39
|
"csstype": "3.2.3",
|
|
40
40
|
"eslint-plugin-react": "7.37.5",
|
|
41
41
|
"fork-ts-checker-webpack-plugin": "9.1.0",
|
|
42
|
+
"mermaid": "12.2.0",
|
|
43
|
+
"modify-source-webpack-plugin": "4.1.0",
|
|
44
|
+
"monaco-editor": "0.57.0",
|
|
45
|
+
"monaco-editor-webpack-plugin": "7.1.1",
|
|
46
|
+
"preact-iso": "2.12.2",
|
|
42
47
|
"preact-render-to-string": "6.8.1",
|
|
43
48
|
"source-map-loader": "5.0.0"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"@bradleyhodges/sfsymbols": ">=8.1.3",
|
|
47
|
-
"@bradleyhodges/sfsymbols-types": ">=8.1.3"
|
|
48
|
-
},
|
|
49
|
-
"peerDependenciesMeta": {
|
|
50
|
-
"@bradleyhodges/sfsymbols": {
|
|
51
|
-
"optional": true
|
|
52
|
-
},
|
|
53
|
-
"@bradleyhodges/sfsymbols-types": {
|
|
54
|
-
"optional": true
|
|
55
|
-
}
|
|
56
49
|
}
|
|
57
50
|
}
|