@mistriwork/ui 1.0.0-rc.68 → 1.0.0-rc.70
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/DateField.js +5 -3
- package/dist/DropMenu.d.ts +2 -1
- package/dist/DropMenu.js +6 -4
- package/dist/SensitiveField.d.ts +1 -0
- package/dist/SensitiveField.js +30 -6
- package/dist/Typeahead.js +5 -2
- package/dist/styles/kit-fields.css +4 -2
- package/dist/styles/kit-parts.css +16 -7
- package/dist/styles/looks.css +4 -2
- package/dist/styles/m-tokens.css +8 -0
- package/dist/styles/overlays.css +15 -6
- package/dist/styles/screens.css +7 -1
- package/package.json +1 -1
package/dist/DateField.js
CHANGED
|
@@ -56,7 +56,7 @@ function readDateTime(text, mask) {
|
|
|
56
56
|
const typed = text.trim();
|
|
57
57
|
if (isPickerDateTime(text))
|
|
58
58
|
return text;
|
|
59
|
-
const split = typed.match(/^(
|
|
59
|
+
const split = typed.match(/^(.+?)[ T](\d{1,2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?)$/);
|
|
60
60
|
if (!split)
|
|
61
61
|
return undefined;
|
|
62
62
|
const date = readDate(split[1], mask);
|
|
@@ -68,7 +68,7 @@ function readDateTime(text, mask) {
|
|
|
68
68
|
function readDate(text, mask) {
|
|
69
69
|
if (isoDate(text))
|
|
70
70
|
return text;
|
|
71
|
-
const numbers = text.trim().match(/^(\d{1,4})\D(\d{1,2})\D(\d{1,4})$/);
|
|
71
|
+
const numbers = text.trim().match(/^(\d{1,4})\s*\D\s*(\d{1,2})\s*\D\s*(\d{1,4})$/);
|
|
72
72
|
if (!numbers)
|
|
73
73
|
return undefined;
|
|
74
74
|
const at = {};
|
|
@@ -237,8 +237,10 @@ function DefaultDateField({ id, words, calendarIcon, value, onChange, onBlur, on
|
|
|
237
237
|
onKeyDown?.(event);
|
|
238
238
|
} }), withTime && words.time && (_jsx("input", { type: "time", "data-slot": "date-field-time", "aria-label": words.time(label || undefined), disabled: disabled, value: (splitDateTime(value)?.time ?? '').slice(0, 5), onChange: (event) => {
|
|
239
239
|
const clock = event.target.value;
|
|
240
|
-
if (!clock)
|
|
240
|
+
if (!clock) {
|
|
241
|
+
onChange(isPickerDate(datePart) ? datePart : '', changeDetails('input-change', event));
|
|
241
242
|
return;
|
|
243
|
+
}
|
|
242
244
|
const day = isPickerDate(datePart) ? datePart : today;
|
|
243
245
|
onChange(`${day} ${clock}`, changeDetails('input-change', event));
|
|
244
246
|
} })), _jsxs("span", { id: hint, "data-slot": "date-field-hint", "data-kind": "visually-hidden", children: [withTime ? words.dateAndTimeFormat(pattern) : words.dateFormat(pattern), " ", words.openWithKeys] }), _jsxs(Popover, { open: open && !shut, onOpenChange: (next, details) => {
|
package/dist/DropMenu.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface DropMenuProps {
|
|
|
15
15
|
side?: 'top' | 'bottom';
|
|
16
16
|
align?: 'start' | 'end';
|
|
17
17
|
sideOffset?: number;
|
|
18
|
+
disabled?: boolean;
|
|
18
19
|
open?: boolean;
|
|
19
20
|
onOpenChange?: (open: boolean, details: ChangeDetails<'trigger-hover' | 'trigger-focus' | 'trigger-press' | 'outside-press' | 'focus-out' | 'list-navigation' | 'escape-key' | 'item-press' | 'close-press' | 'sibling-open' | 'cancel-open' | 'imperative-action' | 'implicit'>) => void;
|
|
20
21
|
/** Where the focus goes when the menu closes; absent, back to the trigger. An element, a ref to one, or a function
|
|
@@ -22,7 +23,7 @@ interface DropMenuProps {
|
|
|
22
23
|
finalFocus?: boolean | RefObject<HTMLElement | null> | (() => boolean | HTMLElement | null | void);
|
|
23
24
|
children: ReactNode;
|
|
24
25
|
}
|
|
25
|
-
declare function DefaultDropMenu({ className, triggerClassName, triggerTitle, triggerLabel, label, popupClassName, side, align, sideOffset, open, onOpenChange, finalFocus, children, }: DropMenuProps): import("react").JSX.Element;
|
|
26
|
+
declare function DefaultDropMenu({ className, triggerClassName, triggerTitle, triggerLabel, label, popupClassName, side, align, sideOffset, disabled, open, onOpenChange, finalFocus, children, }: DropMenuProps): import("react").JSX.Element;
|
|
26
27
|
/** A labelled run of items: a menu that changes several things says which each item changes. */
|
|
27
28
|
declare function DefaultDropGroup({ className, labelClassName, label, children, }: {
|
|
28
29
|
className?: string;
|
package/dist/DropMenu.js
CHANGED
|
@@ -21,7 +21,7 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
21
21
|
import { heard } from './internal/layers.js';
|
|
22
22
|
import { popupContainer, useDialogContainer } from './internal/popups.js';
|
|
23
23
|
import { slotted } from './internal/uiKitContext.js';
|
|
24
|
-
function DefaultDropMenu({ className, triggerClassName, triggerTitle, triggerLabel, label, popupClassName, side = 'bottom', align = 'end', sideOffset = 4, open, onOpenChange, finalFocus, children, }) {
|
|
24
|
+
function DefaultDropMenu({ className, triggerClassName, triggerTitle, triggerLabel, label, popupClassName, side = 'bottom', align = 'end', sideOffset = 4, disabled, open, onOpenChange, finalFocus, children, }) {
|
|
25
25
|
const root = useRef(null);
|
|
26
26
|
const trigger = useRef(null);
|
|
27
27
|
const popup = useRef(null);
|
|
@@ -56,7 +56,7 @@ function DefaultDropMenu({ className, triggerClassName, triggerTitle, triggerLab
|
|
|
56
56
|
would have been had the item been there: only while it is still where the opening left it, and only for a
|
|
57
57
|
menu that opened empty, so one that opened with its items under a pointer keeps no item lit. */
|
|
58
58
|
const [own, setOwn] = useState(false);
|
|
59
|
-
const isOpen = open ?? own;
|
|
59
|
+
const isOpen = disabled ? false : (open ?? own);
|
|
60
60
|
const openedEmpty = useRef(false);
|
|
61
61
|
useEffect(() => {
|
|
62
62
|
if (!isOpen) {
|
|
@@ -82,7 +82,9 @@ function DefaultDropMenu({ className, triggerClassName, triggerTitle, triggerLab
|
|
|
82
82
|
return () => cancelAnimationFrame(frame);
|
|
83
83
|
// After every draw while open: the items are the caller's children, which arrive as a draw and nothing else.
|
|
84
84
|
});
|
|
85
|
-
return (_jsx("div", { className: className || undefined, "data-slot": "drop-menu", ref: root, children: _jsxs(Menu, { open: open, onOpenChange: (next, details) => {
|
|
85
|
+
return (_jsx("div", { className: className || undefined, "data-slot": "drop-menu", ref: root, children: _jsxs(Menu, { open: disabled ? false : open, onOpenChange: (next, details) => {
|
|
86
|
+
if (disabled && next)
|
|
87
|
+
return;
|
|
86
88
|
setOwn(next);
|
|
87
89
|
if (!next && finalFocus !== undefined) {
|
|
88
90
|
const at = document.activeElement;
|
|
@@ -90,7 +92,7 @@ function DefaultDropMenu({ className, triggerClassName, triggerTitle, triggerLab
|
|
|
90
92
|
setCloses((count) => count + 1);
|
|
91
93
|
}
|
|
92
94
|
onOpenChange?.(next, heard(details));
|
|
93
|
-
}, children: [_jsx(MenuTrigger, { ref: trigger, className: triggerClassName, "data-own": triggerClassName ? '' : undefined, title: triggerTitle, "aria-label": triggerLabel, children: label }), _jsx(MenuContent, { ref: popup, className: popupClassName, side: side, align: align, sideOffset: sideOffset, collisionPadding: 8, container: container ?? popupContainer(), finalFocus: finalFocus === undefined ? undefined : 'none', children: children })] }) }));
|
|
95
|
+
}, children: [_jsx(MenuTrigger, { ref: trigger, className: triggerClassName, "data-own": triggerClassName ? '' : undefined, title: triggerTitle, "aria-label": triggerLabel, disabled: disabled, children: label }), _jsx(MenuContent, { ref: popup, className: popupClassName, side: side, align: align, sideOffset: sideOffset, collisionPadding: 8, container: container ?? popupContainer(), finalFocus: finalFocus === undefined ? undefined : 'none', children: children })] }) }));
|
|
94
96
|
}
|
|
95
97
|
/** A labelled run of items: a menu that changes several things says which each item changes. */
|
|
96
98
|
function DefaultDropGroup({ className, labelClassName, label, children, }) {
|
package/dist/SensitiveField.d.ts
CHANGED
package/dist/SensitiveField.js
CHANGED
|
@@ -18,16 +18,40 @@ function DefaultSensitiveField(props) {
|
|
|
18
18
|
const [shown, setShown] = useState(false);
|
|
19
19
|
const formatted = props.mask.format(props.value);
|
|
20
20
|
const display = shown ? formatted : '•'.repeat(formatted.length);
|
|
21
|
-
const change = (typed, details) => {
|
|
21
|
+
const change = (typed, caret, details) => {
|
|
22
22
|
if (shown)
|
|
23
23
|
return props.onChange(props.mask.parse(typed), details);
|
|
24
|
-
// Hidden:
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
// Hidden: preserve unchanged leading and trailing dots around the edited span so mid-string edits do not corrupt later digits.
|
|
25
|
+
if (/^•*$/.test(typed)) {
|
|
26
|
+
if (typed.length >= formatted.length)
|
|
27
|
+
return;
|
|
28
|
+
const at = caret !== null && caret <= typed.length ? caret : typed.length;
|
|
29
|
+
const removed = formatted.length - typed.length;
|
|
30
|
+
const prefix = formatted.slice(0, at);
|
|
31
|
+
const suffix = formatted.slice(at + removed);
|
|
32
|
+
let nextDigits = digits(prefix) + digits(suffix);
|
|
33
|
+
if (nextDigits === digits(formatted)) {
|
|
34
|
+
const pre = digits(prefix);
|
|
35
|
+
const post = digits(suffix);
|
|
36
|
+
nextDigits = pre.length > 0 ? pre.slice(0, -1) + post : post.slice(1);
|
|
37
|
+
}
|
|
38
|
+
return props.onChange(props.mask.parse(nextDigits), details);
|
|
39
|
+
}
|
|
40
|
+
let lead = 0;
|
|
41
|
+
while (lead < typed.length && lead < formatted.length && typed[lead] === '•')
|
|
42
|
+
lead++;
|
|
43
|
+
let trail = 0;
|
|
44
|
+
while (trail < typed.length - lead && trail < formatted.length - lead && typed[typed.length - 1 - trail] === '•') {
|
|
45
|
+
trail++;
|
|
46
|
+
}
|
|
47
|
+
const prefix = formatted.slice(0, lead);
|
|
48
|
+
const inserted = typed.slice(lead, typed.length - trail);
|
|
49
|
+
const suffix = trail > 0 ? formatted.slice(formatted.length - trail) : '';
|
|
50
|
+
props.onChange(props.mask.parse(digits(prefix) + digits(inserted) + digits(suffix)), details);
|
|
27
51
|
};
|
|
28
|
-
return (_jsxs(Frame, { ...props, children: [_jsxs("div", { "data-slot": "field-with-action", children: [_jsxs("div", { "data-slot": "field-box", "data-has-mark": props.valid === undefined ? undefined : '', children: [_jsx(Input, { id: props.id, "data-hidden": shown ? undefined : '', value: display, inputMode: props.mask.inputMode ?? 'numeric', autoComplete: "off", autoCorrect: "off", autoCapitalize: "off", spellCheck: false, "data-1p-ignore": "", "data-lpignore": "true", "aria-required": props.required || undefined,
|
|
52
|
+
return (_jsxs(Frame, { ...props, children: [_jsxs("div", { "data-slot": "field-with-action", children: [_jsxs("div", { "data-slot": "field-box", "data-has-mark": props.valid === undefined ? undefined : '', children: [_jsx(Input, { id: props.id, "data-hidden": shown ? undefined : '', value: display, disabled: props.disabled, inputMode: props.mask.inputMode ?? 'numeric', autoComplete: "off", autoCorrect: "off", autoCapitalize: "off", spellCheck: false, "data-1p-ignore": "", "data-lpignore": "true", "aria-required": props.required || undefined,
|
|
29
53
|
// React's own change, as the text box hears it (TextField.tsx says why).
|
|
30
|
-
onChange: (event) => change(event.target.value, changeDetails('input-change', event)), onBlur: props.onBlur }), props.valid ? _jsx(ValidMark, { icon: props.validIcon }) : null] }), _jsx(Button, { intent: "quiet", onClick: () => setShown(!shown), children: shown ? props.hideLabel : props.showLabel })] }), props.note ? (_jsxs("p", { "data-slot": "field-note", children: [props.noteIcon, props.note] })) : null] }));
|
|
54
|
+
onChange: (event) => change(event.target.value, event.target.selectionStart, changeDetails('input-change', event)), onBlur: props.onBlur }), props.valid ? _jsx(ValidMark, { icon: props.validIcon }) : null] }), _jsx(Button, { intent: "quiet", disabled: props.disabled, "aria-pressed": shown, "aria-controls": props.id, onClick: () => setShown(!shown), children: shown ? props.hideLabel : props.showLabel })] }), props.note ? (_jsxs("p", { "data-slot": "field-note", children: [props.noteIcon, props.note] })) : null] }));
|
|
31
55
|
}
|
|
32
56
|
/* Slotted (UiKit.tsx): an App's control kit may draw its own in place of the default, with the same props. */
|
|
33
57
|
export const SensitiveField = slotted('SensitiveField', DefaultSensitiveField, { onChange: [1, 'input-change'] });
|
package/dist/Typeahead.js
CHANGED
|
@@ -18,6 +18,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
18
18
|
* caller's anchor) and drawn inside the enclosing dialog when there is one.
|
|
19
19
|
*/
|
|
20
20
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState, } from 'react';
|
|
21
|
+
import { createPortal } from 'react-dom';
|
|
21
22
|
import { Autocomplete, AutocompleteContent, AutocompleteInput, AutocompleteItem, AutocompleteList } from '@ui-sdk/react/autocomplete';
|
|
22
23
|
import { changeDetails } from './changeDetails.js';
|
|
23
24
|
import { popupContainer, useDialogContainer } from './internal/popups.js';
|
|
@@ -81,7 +82,7 @@ function DefaultTypeahead({ text, onText, items, itemKey, itemLabel, itemClassNa
|
|
|
81
82
|
.filter(Boolean)
|
|
82
83
|
.join(' ');
|
|
83
84
|
setLabelWords(words || inputProps.title || undefined);
|
|
84
|
-
});
|
|
85
|
+
}, [named, inputProps.title]);
|
|
85
86
|
// The text is the caller's `text` and nothing else: an input's own value or change handler would be a second one.
|
|
86
87
|
const { value: _value, defaultValue: _defaultValue, onChange: _onChange, onKeyDown, onClick, onBlur, ...input } = inputProps;
|
|
87
88
|
/* Open with nothing to list: the caller still holds the list open (a search that found no one, with or without a
|
|
@@ -114,6 +115,8 @@ function DefaultTypeahead({ text, onText, items, itemKey, itemLabel, itemClassNa
|
|
|
114
115
|
popupRef.current = node;
|
|
115
116
|
}, [popupRef]);
|
|
116
117
|
const popup = fit === 'width' ? { width: '100%' } : { minWidth: 'var(--anchor-width)', maxWidth: 'var(--available-width)' };
|
|
118
|
+
const targetContainer = (portal === 'body' ? null : dialog) ?? popupContainer();
|
|
119
|
+
const emptyOverlay = nothing ? (_jsx("div", { ref: emptyBox, "data-slot": "autocomplete-content", "data-kind": "empty", "data-fit": fit, style: under, children: _jsx("div", { ref: setPopup, className: popupClassName, "data-slot": "autocomplete-popup", "data-open": "", style: popup, children: _jsx("div", { className: listClassName, children: _jsx("div", { className: emptyClassName, "data-slot": "autocomplete-empty", role: "status", children: empty }) }) }) })) : null;
|
|
117
120
|
return (_jsxs(Autocomplete, { value: text, open: open && items.length > 0, filter: false, autoHighlight: autoHighlight && typed, onValueChange: (next, details) => {
|
|
118
121
|
// Walking the list would fill the box with each row's label as it is lit.
|
|
119
122
|
if (details.reason === 'list-navigation')
|
|
@@ -173,7 +176,7 @@ function DefaultTypeahead({ text, onText, items, itemKey, itemLabel, itemClassNa
|
|
|
173
176
|
return;
|
|
174
177
|
event.preventDefault();
|
|
175
178
|
onOpenChange(false, changeDetails('escape-key', event));
|
|
176
|
-
} }), _jsx(AutocompleteContent, { "data-fit": fit, style: fit === 'width' ? { width: 'var(--anchor-width)', maxWidth: 'var(--available-width)' } : undefined, anchor: anchorRef ? { getBoundingClientRect: () => (anchorRef.current ?? box.current).getBoundingClientRect() } : undefined, container:
|
|
179
|
+
} }), _jsx(AutocompleteContent, { "data-fit": fit, style: fit === 'width' ? { width: 'var(--anchor-width)', maxWidth: 'var(--available-width)' } : undefined, anchor: anchorRef ? { getBoundingClientRect: () => (anchorRef.current ?? box.current).getBoundingClientRect() } : undefined, container: targetContainer, children: _jsx("div", { ref: setPopup, className: popupClassName, "data-slot": "autocomplete-popup", "data-open": open ? '' : undefined, style: popup, children: items.length > 0 ? (_jsx(AutocompleteList, { className: listClassName, "aria-label": named ? input['aria-label'] : labelWords, "aria-labelledby": input['aria-labelledby'], children: items.map((item) => (_jsx(AutocompleteItem, { value: itemKey(item), label: itemLabel(item), className: (state) => itemClassName(item, state.highlighted === true), children: renderItem(item) }, itemKey(item)))) })) : null }) }), emptyOverlay && (targetContainer ? createPortal(emptyOverlay, targetContainer) : emptyOverlay)] }));
|
|
177
180
|
}
|
|
178
181
|
/* Slotted (UiKit.tsx): an App's control kit may draw its own in place of the default, with the same props. */
|
|
179
182
|
export const Typeahead = slotted('Typeahead', DefaultTypeahead, { onText: [1, 'input-change'], onOpenChange: [1, 'implicit'] });
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
[data-slot='tooltip-trigger'][data-kind='help-tip'] {
|
|
7
7
|
display: inline-grid;
|
|
8
8
|
place-items: center;
|
|
9
|
-
width: 1.
|
|
10
|
-
height: 1.
|
|
11
|
-
min-width:
|
|
9
|
+
width: 1.5rem;
|
|
10
|
+
height: 1.5rem;
|
|
11
|
+
min-width: 1.5rem;
|
|
12
|
+
min-height: 1.5rem;
|
|
12
13
|
padding: 0;
|
|
13
14
|
border: 1px solid var(--m-line-control);
|
|
14
15
|
border-radius: 999px;
|
|
@@ -25,11 +26,17 @@
|
|
|
25
26
|
height: 0.6875rem;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
&:hover,
|
|
29
29
|
&[aria-expanded='true'] {
|
|
30
30
|
background: var(--m-accent-soft);
|
|
31
31
|
color: var(--m-accent-ink);
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
@media (hover: hover) {
|
|
35
|
+
&:hover {
|
|
36
|
+
background: var(--m-accent-soft);
|
|
37
|
+
color: var(--m-accent-ink);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
/* A sentence or two to read, not a word to glance at: the surface of a popover and room for its lines, where a
|
|
@@ -82,9 +89,11 @@
|
|
|
82
89
|
color: var(--m-ink-muted);
|
|
83
90
|
cursor: pointer;
|
|
84
91
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
@media (hover: hover) {
|
|
93
|
+
&:hover:not(:disabled) {
|
|
94
|
+
background: var(--m-raised);
|
|
95
|
+
color: var(--m-ink);
|
|
96
|
+
}
|
|
88
97
|
}
|
|
89
98
|
|
|
90
99
|
&:disabled {
|
package/dist/styles/looks.css
CHANGED
package/dist/styles/m-tokens.css
CHANGED
package/dist/styles/overlays.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
[data-slot='dialog-content'][data-kind='sheet'] {
|
|
12
12
|
width: min(30rem, calc(100% - 2rem));
|
|
13
13
|
max-height: min(44rem, calc(100dvh - 4rem));
|
|
14
|
-
border-radius: calc(var(--m-radius) + 4px);
|
|
14
|
+
border-radius: calc(var(--m-radius) + min(4px, var(--m-radius)));
|
|
15
15
|
|
|
16
16
|
&[data-size='lg'] {
|
|
17
17
|
width: min(42rem, calc(100% - 2rem));
|
|
@@ -24,8 +24,15 @@
|
|
|
24
24
|
height: calc(100dvh - 1rem);
|
|
25
25
|
max-height: none;
|
|
26
26
|
margin-block: var(--m-space-3);
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
border-radius: calc(var(--m-radius) + min(4px, var(--m-radius)));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-slot='drawer-content'][data-kind='sheet'][data-side='right'] {
|
|
31
|
+
margin-inline-end: calc(var(--m-space-3) + env(safe-area-inset-right, 0px));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-slot='drawer-content'][data-kind='sheet'][data-side='left'] {
|
|
35
|
+
margin-inline-start: calc(var(--m-space-3) + env(safe-area-inset-left, 0px));
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
[data-slot='sheet-head'] {
|
|
@@ -56,7 +63,7 @@
|
|
|
56
63
|
[data-slot='sheet-body'] {
|
|
57
64
|
flex: 1;
|
|
58
65
|
min-height: 0;
|
|
59
|
-
padding: var(--m-space-2) var(--m-space-5h) var(--m-space-6);
|
|
66
|
+
padding: var(--m-space-2) var(--m-space-5h) calc(var(--m-space-6) + env(safe-area-inset-bottom, 0px));
|
|
60
67
|
overflow-y: auto;
|
|
61
68
|
overscroll-behavior: contain;
|
|
62
69
|
}
|
|
@@ -67,8 +74,10 @@
|
|
|
67
74
|
background: var(--m-critical);
|
|
68
75
|
color: var(--m-surface);
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
@media (hover: hover) {
|
|
78
|
+
&:hover:not([data-disabled]) {
|
|
79
|
+
background: color-mix(in oklab, var(--m-critical) 88%, var(--m-ink));
|
|
80
|
+
}
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
package/dist/styles/screens.css
CHANGED
|
@@ -60,7 +60,13 @@
|
|
|
60
60
|
enlarges (1, 1.12, 1.24), so a flat 16px is at least 16px drawn. Not verified on WebKit: it is not installed
|
|
61
61
|
where this was written, so a real iPhone is the test of this rule. */
|
|
62
62
|
@media (pointer: coarse) {
|
|
63
|
-
:is(
|
|
63
|
+
:is(
|
|
64
|
+
[data-slot='input'],
|
|
65
|
+
[data-slot='textarea'],
|
|
66
|
+
[data-slot='select-trigger'],
|
|
67
|
+
[data-slot='autocomplete-input'],
|
|
68
|
+
[data-slot='date-field-time']
|
|
69
|
+
) {
|
|
64
70
|
font-size: max(16px, var(--m-text));
|
|
65
71
|
}
|
|
66
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mistriwork/ui",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.70",
|
|
4
4
|
"description": "The standalone React primitives both shells are drawn with: Modal, DropMenu, Dropdown, Typeahead, Button, Field, Icon and DateField over UI SDK, Switch, Tabs, Drawer, Popover, Avatar, Pagination, Carousel, Resizable, ScrollArea and Tooltip, the form controls built on them (text, masked, money and sensitive boxes, listboxes, choices, slider, progress and action bar; Preview), the landing hero's blocks (badge, photo tiles, icon rows; Preview), their tokens and stylesheet, and the zoom-aware ruler their popups are placed by.",
|
|
5
5
|
"homepage": "https://mistriwork.dev",
|
|
6
6
|
"bugs": {
|