@newtone-dev/ui-react-web 0.38.0 → 0.39.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/action/action.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ interface ActionPrimary extends ActionShared {
|
|
|
47
47
|
*/
|
|
48
48
|
iconEnd?: string;
|
|
49
49
|
icon?: undefined;
|
|
50
|
+
iconFill?: undefined;
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* Beside the ask: one glyph in a circle, no word. **No words is what keeps it from being a second
|
|
@@ -58,6 +59,12 @@ interface ActionSecondary extends ActionShared {
|
|
|
58
59
|
icon: string;
|
|
59
60
|
/** Its accessible name, required because nothing visible names it. */
|
|
60
61
|
ariaLabel: string;
|
|
62
|
+
/**
|
|
63
|
+
* Fill the glyph, the family's `FILL` axis; the circle stays unfilled. From 2026-10-13, for a
|
|
64
|
+
* transport control's play and pause, which read filled. Defaults to outlined.
|
|
65
|
+
* components/action.md, *The secondary tier*.
|
|
66
|
+
*/
|
|
67
|
+
iconFill?: boolean;
|
|
61
68
|
label?: undefined;
|
|
62
69
|
iconEnd?: undefined;
|
|
63
70
|
}
|
|
@@ -103,6 +110,6 @@ export type ActionProps = (ActionPrimary | ActionSecondary) & ((Omit<ButtonHTMLA
|
|
|
103
110
|
* does nothing, which is an honest placeholder and not a form control: `type="button"` is
|
|
104
111
|
* hardcoded, so it cannot submit a form it happens to be standing in.
|
|
105
112
|
*/
|
|
106
|
-
export declare function Action({ variant, label, icon, ariaLabel, iconEnd, size, fill, className, ...rest }: ActionProps): import("react").JSX.Element;
|
|
113
|
+
export declare function Action({ variant, label, icon, ariaLabel, iconEnd, iconFill, size, fill, className, ...rest }: ActionProps): import("react").JSX.Element;
|
|
107
114
|
export {};
|
|
108
115
|
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/action/action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M,CAAA;IAClB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;GAGG;AACH,UAAU,eAAgB,SAAQ,YAAY;IAC1C,OAAO,EAAE,WAAW,CAAA;IACpB,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAA;IACZ,sEAAsE;IACtE,SAAS,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,CAAA;CACtB;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,aAAa,GAAG,eAAe,CAAC,GACvD,CACM,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,GAAG;IACxE,IAAI,CAAC,EAAE,SAAS,CAAA;CACnB,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG;IACjF,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAA;CACf,CAAC,CACP,CAAA;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,MAAM,CAAC,EACnB,OAAmB,EACnB,KAAK,EACL,IAAI,EACJ,SAAS,EACT,OAAO,EACP,QAAgB,EAChB,IAAW,EACX,IAAY,EACZ,SAAS,EACT,GAAG,IAAI,EACV,EAAE,WAAW,+BAiDb"}
|
package/dist/action/action.js
CHANGED
|
@@ -49,7 +49,7 @@ const GLYPH = { sm: 'md', lg: 'md' };
|
|
|
49
49
|
* does nothing, which is an honest placeholder and not a form control: `type="button"` is
|
|
50
50
|
* hardcoded, so it cannot submit a form it happens to be standing in.
|
|
51
51
|
*/
|
|
52
|
-
export function Action({ variant = 'primary', label, icon, ariaLabel, iconEnd, size = 'lg', fill = false, className, ...rest }) {
|
|
52
|
+
export function Action({ variant = 'primary', label, icon, ariaLabel, iconEnd, iconFill = false, size = 'lg', fill = false, className, ...rest }) {
|
|
53
53
|
// `--icon-end` is keyed on the glyph being PRESENT and not on the prop being declared, because
|
|
54
54
|
// the class does one thing -- take a gap off the padding on the glyph's side -- and a pill with
|
|
55
55
|
// no glyph in it would be 16px short on one side for nothing. See action.css.
|
|
@@ -65,7 +65,7 @@ export function Action({ variant = 'primary', label, icon, ariaLabel, iconEnd, s
|
|
|
65
65
|
.join(' ');
|
|
66
66
|
// A primary's label is always present, so it always has a name and the glyph is decorative. A
|
|
67
67
|
// secondary's name is its required `ariaLabel`. `Icon` writes its own `aria-hidden`.
|
|
68
|
-
const content = variant === 'secondary' ? (_jsx(Icon, { name: icon, size: GLYPH[size] })) : (_jsxs(_Fragment, { children: [_jsx("span", { className: "newtone-action-label", children: label }), iconEnd === undefined ? null : _jsx(Icon, { name: iconEnd, size: GLYPH[size] })] }));
|
|
68
|
+
const content = variant === 'secondary' ? (_jsx(Icon, { name: icon, size: GLYPH[size], fill: iconFill })) : (_jsxs(_Fragment, { children: [_jsx("span", { className: "newtone-action-label", children: label }), iconEnd === undefined ? null : _jsx(Icon, { name: iconEnd, size: GLYPH[size] })] }));
|
|
69
69
|
if (rest.href !== undefined) {
|
|
70
70
|
const { href, ...anchor } = rest;
|
|
71
71
|
return (_jsx("a", { href: href, className: classes, "aria-label": ariaLabel, ...anchor, children: content }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../src/action/action.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAiB,MAAM,kBAAkB,CAAA;AAsBtD;;;;;;;;;;;GAWG;AACH,MAAM,KAAK,GAAiC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAA;
|
|
1
|
+
{"version":3,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AC,IAAI,IAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,GAAI,IAC3E,CACN,CAAA;IAEL,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,IAG3B,CAAA;QACD,OAAO,CACH,YAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,gBAAc,SAAS,KAAM,MAAM,YAC/D,OAAO,GACR,CACP,CAAA;IACL,CAAC;IAED,OAAO,CACH,iBACI,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,OAAO,gBACN,SAAS,KAChB,IAAgD,YAEpD,OAAO,GACH,CACZ,CAAA;AACL,CAAC"}
|
|
@@ -94,9 +94,14 @@
|
|
|
94
94
|
* absent `ratio` asks for them, so every writer before 0.16.0 renders the one span it always did.
|
|
95
95
|
*
|
|
96
96
|
* AREA: the designated space. The parent's full size, or the given ratio at the parent's width. A size
|
|
97
|
-
* container, so the frame can be capped by it in `cqw` and `cqh`.
|
|
97
|
+
* container, so the frame can be capped by it in `cqw` and `cqh`.
|
|
98
|
+
*
|
|
99
|
+
* ITS ONE CELL IS `minmax(0, 1fr)` BOTH WAYS, from 0.38.1. With no template the row was `auto`, so a
|
|
100
|
+
* filling frame's `100%` read the picture's own height: a 1600 px picture in a 520 px area made the
|
|
101
|
+
* area 1280 px tall. Fit never showed it, because a measured frame is sized in `cqw` and `cqh`. */
|
|
98
102
|
.newtone-media-window-area {
|
|
99
103
|
display: grid;
|
|
104
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
100
105
|
place-items: center;
|
|
101
106
|
container-type: size;
|
|
102
107
|
inline-size: 100%;
|