@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
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
);
|
|
51
51
|
mix-blend-mode: var(--uikit-symbol-blend);
|
|
52
52
|
scale: var(--uikit-symbol-scale);
|
|
53
|
-
transition: scale var(--glass-
|
|
53
|
+
transition: scale var(--glass-ui-lens-duration);
|
|
54
54
|
|
|
55
55
|
&:has(> .uikit-symbol) {
|
|
56
56
|
mix-blend-mode: normal;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
opacity: calc(
|
|
65
65
|
var(--uikit-glass-fade, 1) * var(--uikit-tab-bar-tab-fade, 1)
|
|
66
66
|
);
|
|
67
|
-
transition-duration: var(--glass-
|
|
67
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
68
68
|
transition-property: opacity, scale;
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
mix-blend-mode: var(--uikit-glass-content-blend);
|
|
91
91
|
scale: var(--uikit-tab-bar-content-scale, none);
|
|
92
92
|
text-align: center;
|
|
93
|
-
transition-duration: var(--glass-
|
|
93
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
94
94
|
transition-property: scale, width, height, opacity;
|
|
95
95
|
|
|
96
96
|
& > * {
|
|
97
97
|
opacity: calc(
|
|
98
98
|
var(--uikit-glass-fade, 1) * var(--uikit-tab-bar-tab-fade, 1)
|
|
99
99
|
);
|
|
100
|
-
transition: opacity var(--glass-
|
|
100
|
+
transition: opacity var(--glass-ui-lens-duration);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
[data-active] > & {
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
|
|
150
150
|
& > * {
|
|
151
151
|
opacity: var(--uikit-glass-fade, 1);
|
|
152
|
-
transition: opacity var(--glass-
|
|
152
|
+
transition: opacity var(--glass-ui-lens-duration);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -165,14 +165,14 @@
|
|
|
165
165
|
opacity: var(--uikit-tab-bar-pressed, 0);
|
|
166
166
|
pointer-events: none;
|
|
167
167
|
scale: calc(
|
|
168
|
-
1 + (var(--glass-
|
|
168
|
+
1 + (var(--glass-ui-lens-scale) - 1) * var(--uikit-tab-bar-pressed, 0)
|
|
169
169
|
);
|
|
170
170
|
transition-duration:
|
|
171
|
-
var(--uikit-tab-bar-lens-move-duration, var(--glass-
|
|
172
|
-
var(--uikit-tab-bar-lens-move-duration, var(--glass-
|
|
173
|
-
var(--uikit-tab-bar-lens-size-duration, var(--glass-
|
|
174
|
-
var(--uikit-tab-bar-lens-size-duration, var(--glass-
|
|
175
|
-
var(--glass-
|
|
171
|
+
var(--uikit-tab-bar-lens-move-duration, var(--glass-ui-lens-duration)),
|
|
172
|
+
var(--uikit-tab-bar-lens-move-duration, var(--glass-ui-lens-duration)),
|
|
173
|
+
var(--uikit-tab-bar-lens-size-duration, var(--glass-ui-lens-duration)),
|
|
174
|
+
var(--uikit-tab-bar-lens-size-duration, var(--glass-ui-lens-duration)),
|
|
175
|
+
var(--glass-ui-lens-duration), var(--glass-ui-lens-duration);
|
|
176
176
|
transition-property:
|
|
177
177
|
--uikit-tab-bar-lens-x, --uikit-tab-bar-lens-y,
|
|
178
178
|
--uikit-tab-bar-lens-width, --uikit-tab-bar-lens-height, opacity, scale;
|
|
@@ -217,11 +217,11 @@
|
|
|
217
217
|
);
|
|
218
218
|
transform: scale(
|
|
219
219
|
calc(
|
|
220
|
-
1 + (var(--glass-
|
|
220
|
+
1 + (var(--glass-ui-lens-scale) - 1) *
|
|
221
221
|
var(--uikit-tab-bar-pressed, 0)
|
|
222
222
|
)
|
|
223
223
|
);
|
|
224
|
-
transition-duration: var(--glass-
|
|
224
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
gap: var(--uikit-tab-bar-tab-gap);
|
|
252
252
|
margin-inline-end: var(--uikit-tab-bar-tab-overlap);
|
|
253
253
|
text-align: center;
|
|
254
|
-
transition-duration: var(--glass-
|
|
254
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
255
255
|
transition-property:
|
|
256
256
|
width, min-width, min-height, padding, margin, gap, visibility;
|
|
257
257
|
-webkit-user-select: none;
|
|
@@ -267,10 +267,10 @@
|
|
|
267
267
|
opacity: calc(
|
|
268
268
|
var(--uikit-glass-fade, 1) * var(--uikit-tab-bar-tab-fade, 1)
|
|
269
269
|
);
|
|
270
|
-
transition: opacity var(--glass-
|
|
270
|
+
transition: opacity var(--glass-ui-lens-duration);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
/* Symbol only: a circle (
|
|
273
|
+
/* Symbol only: a circle (compact) or a capsule hugging it (regular) */
|
|
274
274
|
&:not(:has(> [data-tab-bar-part='label'])) {
|
|
275
275
|
width: auto;
|
|
276
276
|
flex-shrink: 0;
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
margin-inline-end: 0;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
/* Symbol only (
|
|
295
|
+
/* Symbol only (regular: 50×36) */
|
|
296
296
|
&&&:where([data-shape='capsule']):not(:has(> [data-tab-bar-part='label'])) {
|
|
297
297
|
padding: var(--uikit-tab-bar-symbol-padding);
|
|
298
298
|
}
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
&[data-active] {
|
|
321
|
-
color: var(--uikit-tab-bar-active-color, var(--color-
|
|
321
|
+
color: var(--uikit-tab-bar-active-color, var(--color-ui-primary));
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
&[data-disabled] {
|
|
@@ -390,12 +390,12 @@
|
|
|
390
390
|
--uikit-tab-bar-collapsed-label-extent: auto;
|
|
391
391
|
--uikit-tab-bar-collapsed-label-opacity: 1;
|
|
392
392
|
--uikit-tab-bar-collapsed-symbol: flex;
|
|
393
|
-
--uikit-tab-bar-collapsed-icon-size: var(--font-
|
|
393
|
+
--uikit-tab-bar-collapsed-icon-size: var(--font-ui-subheadline-size);
|
|
394
394
|
--uikit-tab-bar-collapsed-icon-line-height: var(
|
|
395
|
-
--font-
|
|
395
|
+
--font-ui-subheadline-line-height
|
|
396
396
|
);
|
|
397
397
|
--uikit-tab-bar-collapsed-icon-letter-spacing: var(
|
|
398
|
-
--font-
|
|
398
|
+
--font-ui-subheadline-tracking
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
401
|
|
|
@@ -438,18 +438,19 @@
|
|
|
438
438
|
box-sizing: border-box;
|
|
439
439
|
border-radius: 100px;
|
|
440
440
|
color: var(--uikit-glass-content);
|
|
441
|
-
font-size: var(--font-
|
|
442
|
-
letter-spacing: var(--font-
|
|
443
|
-
line-height: var(--font-
|
|
444
|
-
transition-duration: var(--glass-ios-lens-duration);
|
|
445
|
-
transition-property: visibility;
|
|
441
|
+
font-size: var(--font-ui-subheadline-size);
|
|
442
|
+
letter-spacing: var(--font-ui-subheadline-tracking);
|
|
443
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
446
444
|
|
|
447
|
-
/* Hidden in the state it isn't shown in (see visibleIn), fading
|
|
445
|
+
/* Hidden in the state it isn't shown in (see visibleIn), fading (shown
|
|
446
|
+
at once: e.g. its field focused right away). */
|
|
448
447
|
&[data-visible-in='expanded'][data-collapsed],
|
|
449
448
|
&[data-visible-in='collapsed']:not([data-collapsed]) {
|
|
450
449
|
--uikit-glass-fade: 0;
|
|
451
450
|
|
|
452
451
|
pointer-events: none;
|
|
452
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
453
|
+
transition-property: visibility;
|
|
453
454
|
visibility: hidden;
|
|
454
455
|
}
|
|
455
456
|
|
|
@@ -467,15 +468,44 @@
|
|
|
467
468
|
align-items: center;
|
|
468
469
|
justify-content: flex-start;
|
|
469
470
|
|
|
470
|
-
/*
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
/* Its sides clear of the screen's rounded corners (32px); pushed up by
|
|
472
|
+
the keyboard (see Viewport.BlockEnd's `keyboard`), away from them, its
|
|
473
|
+
groups' glass as wide as a toolbar's (16px from the sides, as the
|
|
474
|
+
keyboard's own bar: the glass extends 4px beyond), collapsed too. */
|
|
475
|
+
--uikit-tab-bar-side: 32px;
|
|
476
|
+
|
|
477
|
+
/* (None below: the safe area, kept clear by its anchor, see Viewport.) */
|
|
478
|
+
padding: 16px var(--uikit-tab-bar-side) 0;
|
|
473
479
|
gap: var(--uikit-tab-bar-group-gap, 16px);
|
|
474
480
|
interpolate-size: allow-keywords;
|
|
475
481
|
touch-action: none;
|
|
476
|
-
transition-duration: var(--glass-
|
|
482
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
477
483
|
transition-property: padding, gap;
|
|
478
484
|
|
|
485
|
+
/* (Any keyboard height: 20px, collapsed without its inset; as the
|
|
486
|
+
padding transitions.) */
|
|
487
|
+
[data-keyboard='push'] > & {
|
|
488
|
+
--uikit-tab-bar-side: calc(
|
|
489
|
+
32px -
|
|
490
|
+
clamp(0px, var(--uikit-viewport-keyboard-inset, 0px) * 1000, 12px)
|
|
491
|
+
);
|
|
492
|
+
--uikit-tab-bar-collapsed-side-inset: calc(
|
|
493
|
+
var(--uikit-tab-bar-collapsed-inset) -
|
|
494
|
+
clamp(
|
|
495
|
+
0px,
|
|
496
|
+
var(--uikit-viewport-keyboard-inset, 0px) * 1000,
|
|
497
|
+
var(--uikit-tab-bar-collapsed-inset)
|
|
498
|
+
)
|
|
499
|
+
);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/* A single tab: nothing to choose, no selection (nor the active
|
|
503
|
+
tab's tint; pressed, its lens all the same). */
|
|
504
|
+
&[data-single-tab] {
|
|
505
|
+
--uikit-tab-bar-selection-shown: 0;
|
|
506
|
+
--uikit-tab-bar-active-color: currentcolor;
|
|
507
|
+
}
|
|
508
|
+
|
|
479
509
|
/* Room for its accessory above the groups (see placeAccessory), in the
|
|
480
510
|
bar's layout: its height and gap above the groups (at the padding),
|
|
481
511
|
also while collapsed (nothing moves): 40px high, 16px above. */
|
|
@@ -496,14 +526,14 @@
|
|
|
496
526
|
)
|
|
497
527
|
1 0;
|
|
498
528
|
content: '';
|
|
499
|
-
transition: margin var(--glass-
|
|
529
|
+
transition: margin var(--glass-ui-lens-duration);
|
|
500
530
|
}
|
|
501
531
|
|
|
502
532
|
&[data-wide]::before,
|
|
503
533
|
&[data-wide]::after {
|
|
504
534
|
transition:
|
|
505
|
-
margin var(--glass-
|
|
506
|
-
flex-grow var(--glass-
|
|
535
|
+
margin var(--glass-ui-lens-duration),
|
|
536
|
+
flex-grow var(--glass-ui-lens-duration);
|
|
507
537
|
}
|
|
508
538
|
|
|
509
539
|
&::before {
|
|
@@ -571,30 +601,30 @@
|
|
|
571
601
|
--uikit-tab-bar-pressed-group-scale: 1.065;
|
|
572
602
|
--uikit-tab-bar-collapsed-tab-height: 36px;
|
|
573
603
|
--uikit-tab-bar-collapsed-inset: 0px;
|
|
574
|
-
--uikit-tab-bar-icon-size: var(--font-
|
|
575
|
-
--uikit-tab-bar-icon-line-height: var(--font-
|
|
576
|
-
--uikit-tab-bar-icon-letter-spacing: var(--font-
|
|
604
|
+
--uikit-tab-bar-icon-size: var(--font-ui-subheadline-size);
|
|
605
|
+
--uikit-tab-bar-icon-line-height: var(--font-ui-subheadline-line-height);
|
|
606
|
+
--uikit-tab-bar-icon-letter-spacing: var(--font-ui-subheadline-tracking);
|
|
577
607
|
--uikit-tab-bar-icon-weight: 510;
|
|
578
608
|
--uikit-tab-bar-icon-active-weight: 700;
|
|
579
|
-
--uikit-tab-bar-label-size: var(--font-
|
|
609
|
+
--uikit-tab-bar-label-size: var(--font-ui-subheadline-size);
|
|
580
610
|
--uikit-tab-bar-label-active-size: 17px;
|
|
581
611
|
--uikit-tab-bar-label-line-height: var(
|
|
582
|
-
--font-
|
|
612
|
+
--font-ui-subheadline-line-height
|
|
583
613
|
);
|
|
584
614
|
--uikit-tab-bar-label-letter-spacing: var(
|
|
585
|
-
--font-
|
|
615
|
+
--font-ui-subheadline-tracking
|
|
586
616
|
);
|
|
587
617
|
|
|
588
618
|
/* Selected content in the regular size: the tint, or white on dim
|
|
589
619
|
glass. */
|
|
590
|
-
--uikit-tab-bar-active-color: light-dark(var(--color-
|
|
620
|
+
--uikit-tab-bar-active-color: light-dark(var(--color-ui-primary), #fff);
|
|
591
621
|
}
|
|
592
622
|
|
|
593
623
|
&:where([data-size='regular']):where(
|
|
594
624
|
[data-glass-context='bright'],
|
|
595
625
|
[data-glass-context='background-bright']
|
|
596
626
|
) {
|
|
597
|
-
--uikit-tab-bar-active-color: var(--color-
|
|
627
|
+
--uikit-tab-bar-active-color: var(--color-ui-primary);
|
|
598
628
|
}
|
|
599
629
|
|
|
600
630
|
&:where([data-size='regular']):where(
|
|
@@ -616,17 +646,23 @@
|
|
|
616
646
|
--uikit-tab-bar-label-min-width: 0;
|
|
617
647
|
|
|
618
648
|
padding: calc(16px + var(--uikit-tab-bar-collapsed-inset))
|
|
619
|
-
calc(
|
|
649
|
+
calc(
|
|
650
|
+
var(--uikit-tab-bar-side) +
|
|
651
|
+
var(
|
|
652
|
+
--uikit-tab-bar-collapsed-side-inset,
|
|
653
|
+
var(--uikit-tab-bar-collapsed-inset)
|
|
654
|
+
)
|
|
655
|
+
)
|
|
620
656
|
var(--uikit-tab-bar-collapsed-inset);
|
|
621
657
|
|
|
622
658
|
&& > div > [data-tab-bar-part='tabs'] > [role='tab'] {
|
|
623
|
-
--uikit-tab-bar-label-size: var(--font-
|
|
624
|
-
--uikit-tab-bar-label-active-size: var(--font-
|
|
659
|
+
--uikit-tab-bar-label-size: var(--font-ui-subheadline-size);
|
|
660
|
+
--uikit-tab-bar-label-active-size: var(--font-ui-subheadline-size);
|
|
625
661
|
--uikit-tab-bar-label-line-height: var(
|
|
626
|
-
--font-
|
|
662
|
+
--font-ui-subheadline-line-height
|
|
627
663
|
);
|
|
628
664
|
--uikit-tab-bar-label-letter-spacing: var(
|
|
629
|
-
--font-
|
|
665
|
+
--font-ui-subheadline-tracking
|
|
630
666
|
);
|
|
631
667
|
|
|
632
668
|
width: var(--uikit-tab-bar-collapsed-width);
|
|
@@ -742,12 +778,12 @@
|
|
|
742
778
|
--uikit-tab-bar-collapsed-label-extent: auto;
|
|
743
779
|
--uikit-tab-bar-collapsed-label-opacity: 1;
|
|
744
780
|
--uikit-tab-bar-collapsed-symbol: flex;
|
|
745
|
-
--uikit-tab-bar-collapsed-icon-size: var(--font-
|
|
781
|
+
--uikit-tab-bar-collapsed-icon-size: var(--font-ui-subheadline-size);
|
|
746
782
|
--uikit-tab-bar-collapsed-icon-line-height: var(
|
|
747
|
-
--font-
|
|
783
|
+
--font-ui-subheadline-line-height
|
|
748
784
|
);
|
|
749
785
|
--uikit-tab-bar-collapsed-icon-letter-spacing: var(
|
|
750
|
-
--font-
|
|
786
|
+
--font-ui-subheadline-tracking
|
|
751
787
|
);
|
|
752
788
|
}
|
|
753
789
|
}
|
|
@@ -768,7 +804,7 @@
|
|
|
768
804
|
border: 0 solid transparent;
|
|
769
805
|
grid-template-columns: minmax(0, max-content);
|
|
770
806
|
margin-inline: 0;
|
|
771
|
-
transition-duration: var(--glass-
|
|
807
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
772
808
|
transition-property:
|
|
773
809
|
min-width, min-height, margin, border-width, visibility;
|
|
774
810
|
|
|
@@ -780,7 +816,7 @@
|
|
|
780
816
|
}
|
|
781
817
|
|
|
782
818
|
/* Under the lens, the group grows: its glass and content scale up around
|
|
783
|
-
its center (
|
|
819
|
+
its center (compact 1.05, regular 1.065). Scaled layer
|
|
784
820
|
by layer, so nothing isolates their blending (see pressGroup). */
|
|
785
821
|
&[data-pressed] {
|
|
786
822
|
--uikit-glass-scale: var(--uikit-tab-bar-pressed-group-scale);
|
|
@@ -890,12 +926,12 @@
|
|
|
890
926
|
--uikit-tab-bar-collapsed-label-extent: auto;
|
|
891
927
|
--uikit-tab-bar-collapsed-label-opacity: 1;
|
|
892
928
|
--uikit-tab-bar-collapsed-symbol: flex;
|
|
893
|
-
--uikit-tab-bar-collapsed-icon-size: var(--font-
|
|
929
|
+
--uikit-tab-bar-collapsed-icon-size: var(--font-ui-subheadline-size);
|
|
894
930
|
--uikit-tab-bar-collapsed-icon-line-height: var(
|
|
895
|
-
--font-
|
|
931
|
+
--font-ui-subheadline-line-height
|
|
896
932
|
);
|
|
897
933
|
--uikit-tab-bar-collapsed-icon-letter-spacing: var(
|
|
898
|
-
--font-
|
|
934
|
+
--font-ui-subheadline-tracking
|
|
899
935
|
);
|
|
900
936
|
}
|
|
901
937
|
|
|
@@ -908,7 +944,7 @@
|
|
|
908
944
|
&&&&&&:where([data-selection-shown])
|
|
909
945
|
> [data-tab-bar-part='tabs']
|
|
910
946
|
> [role='tab'][data-active] {
|
|
911
|
-
color: var(--uikit-tab-bar-active-color, var(--color-
|
|
947
|
+
color: var(--uikit-tab-bar-active-color, var(--color-ui-primary));
|
|
912
948
|
}
|
|
913
949
|
}
|
|
914
950
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import '../glass/style.css';
|
|
1
2
|
import './style.css';
|
|
2
|
-
import type { ClearProps } from './props.js';
|
|
3
|
+
import type { ClearProps, SearchProps } from './props.js';
|
|
3
4
|
export declare const TextField: {
|
|
4
|
-
Search: import("preact").FunctionalComponent<import("react").PropsWithoutRef<
|
|
5
|
+
Search: import("preact").FunctionalComponent<import("react").PropsWithoutRef<SearchProps> & {
|
|
5
6
|
ref?: import("preact").Ref<HTMLLabelElement> | undefined;
|
|
6
7
|
}>;
|
|
7
8
|
Root: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<import("@base-ui/react/field").FieldRootProps, "ref">> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAcrB,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAoP1D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;CASrB,CAAC"}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import '../glass/style.css';
|
|
2
3
|
import './style.css';
|
|
3
4
|
import { Field as BaseField } from '@base-ui/react/field';
|
|
4
|
-
import { forwardRef, useId,
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
//
|
|
5
|
+
import { forwardRef, useId, useState, } from 'react';
|
|
6
|
+
import { GlassBackground } from '../glass/main.js';
|
|
7
|
+
import { cn, isKeyboardFocus } from '../utils/main.js';
|
|
8
|
+
// Text fields, light and dark, in the semantic colors: 52px rows (padding
|
|
9
|
+
// 0 16px),
|
|
8
10
|
// the value in 17px at 510 (20px line height, Body's tracking) in `label`,
|
|
9
11
|
// the placeholder in `placeholderText`, a 2px caret in the tint, the clear
|
|
10
|
-
// button (
|
|
11
|
-
//
|
|
12
|
+
// button (17px) in `tertiaryLabel` while focused and filled. Messages
|
|
13
|
+
// follow Framework7 (`components/input/input.less`,
|
|
12
14
|
// `input-ios.less`, `input-vars.less`): info (`Description`) and error
|
|
13
15
|
// messages in 12px below, invalid text in `systemRed`, disabled at 55%.
|
|
14
16
|
//
|
|
15
|
-
// A Base UI field
|
|
17
|
+
// A Base UI field: in a list row (`Root` rendering a
|
|
16
18
|
// `List.Item`), the label is the row's title and the control fills the rest
|
|
17
19
|
// of the row, the description and error below (see `List`); elsewhere, the
|
|
18
20
|
// parts stack. A textarea renders through `Control`'s `render`.
|
|
19
21
|
//
|
|
20
|
-
//
|
|
22
|
+
// Also:
|
|
21
23
|
// - No outlined style (Framework7 `.input-outline`).
|
|
22
|
-
// - Labels
|
|
23
|
-
//
|
|
24
|
+
// - Labels are inline in rows, in Body (Framework7's iOS theme: 12px labels
|
|
25
|
+
// above the input, `.item-label`); standalone,
|
|
24
26
|
// they're above, in Subheadline.
|
|
25
27
|
// - Info and errors are in Caption 1 (12/16px, Framework7: 12px, 1.4).
|
|
26
|
-
// - The caret is the browser's
|
|
27
|
-
// - The clear button is
|
|
28
|
-
//
|
|
28
|
+
// - The caret is the browser's.
|
|
29
|
+
// - The clear button is a circled cross, cut out of the circle, with a 44px
|
|
30
|
+
// hit area.
|
|
29
31
|
/** A field (Base UI); rendering a `List.Item`, a list row. */
|
|
30
32
|
const Root = forwardRef(({ className, ...props }, ref) => (_jsx(BaseField.Root, { ref: ref, "data-text-field-part": "root", ...props, className: cn('uikit-text-field-root', className) })));
|
|
31
33
|
const Label = forwardRef(({ className, ...props }, ref) => (_jsx(BaseField.Label, { ref: ref, "data-text-field-part": "label", ...props, className: cn('uikit-text-field-label', className) })));
|
|
@@ -45,8 +47,8 @@ const setValue = (control) => {
|
|
|
45
47
|
};
|
|
46
48
|
/**
|
|
47
49
|
* Empties the field's control (as typing would, so its change handlers run),
|
|
48
|
-
* focusing it; shown while it's filled, and (`mode
|
|
49
|
-
*
|
|
50
|
+
* focusing it; shown while it's filled, and (`mode`) while
|
|
51
|
+
* it's focused, while it isn't, or always.
|
|
50
52
|
*/
|
|
51
53
|
const Clear = forwardRef(({ className, children, mode = 'whileEditing', onClick, onPointerDown, ...props }, ref) => {
|
|
52
54
|
const mask = useId();
|
|
@@ -70,28 +72,24 @@ const Clear = forwardRef(({ className, children, mode = 'whileEditing', onClick,
|
|
|
70
72
|
}, children: children ?? (_jsxs("svg", { "aria-hidden": "true", height: "17", viewBox: "0 0 17 17", width: "17", children: [_jsxs("mask", { id: mask, children: [_jsx("rect", { fill: "#fff", height: "17", width: "17" }), _jsx("path", { d: "M5.5 5.5l6 6M11.5 5.5l-6 6", stroke: "#000", strokeLinecap: "round", strokeWidth: "1.6" })] }), _jsx("circle", { cx: "8.5", cy: "8.5", fill: "currentcolor", mask: `url(#${typeof CSS === 'object' ? CSS.escape(mask) : mask})`, r: "8.5" })] })) }));
|
|
71
73
|
});
|
|
72
74
|
/**
|
|
73
|
-
* A search field's capsule
|
|
75
|
+
* A search field's capsule: its symbol, a
|
|
74
76
|
* `TextField.Control` (e.g. `type="search"`), and its buttons.
|
|
75
77
|
*/
|
|
76
|
-
const Search = forwardRef(({ className, onBlur, onFocus,
|
|
77
|
-
// Focused by a pointer (pressed
|
|
78
|
-
|
|
79
|
-
const [
|
|
80
|
-
return (
|
|
78
|
+
const Search = forwardRef(({ children, className, onBlur, onFocus, variant = 'fill', ...props }, ref) => {
|
|
79
|
+
// Focused by keyboard, or by a pointer (pressed anywhere: also beside
|
|
80
|
+
// it, see `preventFocusShift`).
|
|
81
|
+
const [isKeyboard, setIsKeyboard] = useState(false);
|
|
82
|
+
return (_jsxs("label", { ref: ref, "data-keyboard-focus": isKeyboard ? '' : undefined, "data-text-field-part": "search", "data-variant": variant, onBlur: (event) => {
|
|
81
83
|
onBlur?.(event);
|
|
82
84
|
const { relatedTarget } = event;
|
|
83
85
|
if (!(relatedTarget instanceof Node) ||
|
|
84
86
|
!event.currentTarget.contains(relatedTarget)) {
|
|
85
|
-
|
|
87
|
+
setIsKeyboard(false);
|
|
86
88
|
}
|
|
87
89
|
}, onFocus: (event) => {
|
|
88
90
|
onFocus?.(event);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}, onPointerDown: (event) => {
|
|
92
|
-
onPointerDown?.(event);
|
|
93
|
-
pressed.current = true;
|
|
94
|
-
}, ...props, className: cn('uikit-text-field-search', className) }));
|
|
91
|
+
setIsKeyboard(isKeyboardFocus());
|
|
92
|
+
}, ...props, className: cn('uikit-text-field-search', className), children: [variant === 'tab-bar' || variant === 'toolbar' ? (_jsx(GlassBackground, { kind: variant === 'toolbar' ? 'button' : 'bar' })) : null, children] }));
|
|
95
93
|
});
|
|
96
94
|
export const TextField = {
|
|
97
95
|
...BaseField,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/text-field/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/text-field/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACL,UAAU,EAIV,KAAK,EACL,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,EAAE,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGvD,0EAA0E;AAC1E,WAAW;AACX,2EAA2E;AAC3E,2EAA2E;AAC3E,sEAAsE;AACtE,oDAAoD;AACpD,uEAAuE;AACvE,wEAAwE;AACxE,EAAE;AACF,qDAAqD;AACrD,4EAA4E;AAC5E,2EAA2E;AAC3E,gEAAgE;AA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B,KAAK;CACN,CAAC"}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
export type ClearProps = Omit<ComponentProps<'button'>, 'ref'> & {
|
|
3
3
|
/**
|
|
4
|
-
* When it's shown
|
|
4
|
+
* When it's shown, always only while the field
|
|
5
5
|
* is filled: while it's focused, while it isn't, or either way.
|
|
6
6
|
* @default 'whileEditing'
|
|
7
7
|
*/
|
|
8
8
|
mode?: 'always' | 'unlessEditing' | 'whileEditing';
|
|
9
9
|
};
|
|
10
|
+
/** A search field's look (see `SearchProps`). */
|
|
11
|
+
export type SearchVariant = 'fill' | 'row' | 'tab-bar' | 'tab-bar-collapsed' | 'toolbar';
|
|
12
|
+
export type SearchProps = Omit<ComponentProps<'label'>, 'ref'> & {
|
|
13
|
+
/**
|
|
14
|
+
* Its look: a capsule on the tertiary fill; a list row's look (inset
|
|
15
|
+
* grouped: its background, height and corners; not a row); a tab bar
|
|
16
|
+
* group's glass capsule, as high as its tabs (e.g. beside a
|
|
17
|
+
* `TabBar.Group`); or the collapsed tab bar's, no capsule of its own, on
|
|
18
|
+
* the glass it's in (e.g. a `TabBar.Accessory`'s, filling it); or a
|
|
19
|
+
* toolbar group's glass capsule, as high as its buttons (e.g. between a
|
|
20
|
+
* `Toolbar`'s buttons).
|
|
21
|
+
* @default 'fill'
|
|
22
|
+
*/
|
|
23
|
+
variant?: SearchVariant;
|
|
24
|
+
};
|
|
10
25
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG;IAC/D;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,cAAc,CAAC;CACpD,CAAC"}
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG;IAC/D;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,cAAc,CAAC;CACpD,CAAC;AAEF,iDAAiD;AACjD,MAAM,MAAM,aAAa,GACvB,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,mBAAmB,GAAG,SAAS,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG;IAC/D;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC"}
|