@tempoxyz/ds 1.0.20261123055643 → 1.0.20261123060029
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/README.md +1 -0
- package/dist/arsenal/icons/Glyph.d.ts +72 -0
- package/dist/arsenal/icons/Glyph.d.ts.map +1 -0
- package/dist/arsenal/icons/Glyph.js +72 -0
- package/dist/arsenal/icons/Glyph.js.map +1 -0
- package/dist/arsenal/icons/Icon.d.ts +5 -39
- package/dist/arsenal/icons/Icon.d.ts.map +1 -1
- package/dist/arsenal/icons/Icon.js +24 -58
- package/dist/arsenal/icons/Icon.js.map +1 -1
- package/dist/arsenal/icons/components/A.d.ts +83 -0
- package/dist/arsenal/icons/components/A.d.ts.map +1 -0
- package/dist/arsenal/icons/components/A.js +83 -0
- package/dist/arsenal/icons/components/A.js.map +1 -0
- package/dist/arsenal/icons/components/B.d.ts +61 -0
- package/dist/arsenal/icons/components/B.d.ts.map +1 -0
- package/dist/arsenal/icons/components/B.js +61 -0
- package/dist/arsenal/icons/components/B.js.map +1 -0
- package/dist/arsenal/icons/components/C.d.ts +171 -0
- package/dist/arsenal/icons/components/C.d.ts.map +1 -0
- package/dist/arsenal/icons/components/C.js +171 -0
- package/dist/arsenal/icons/components/C.js.map +1 -0
- package/dist/arsenal/icons/components/D.d.ts +29 -0
- package/dist/arsenal/icons/components/D.d.ts.map +1 -0
- package/dist/arsenal/icons/components/D.js +29 -0
- package/dist/arsenal/icons/components/D.js.map +1 -0
- package/dist/arsenal/icons/components/E.d.ts +21 -0
- package/dist/arsenal/icons/components/E.d.ts.map +1 -0
- package/dist/arsenal/icons/components/E.js +21 -0
- package/dist/arsenal/icons/components/E.js.map +1 -0
- package/dist/arsenal/icons/components/F.d.ts +67 -0
- package/dist/arsenal/icons/components/F.d.ts.map +1 -0
- package/dist/arsenal/icons/components/F.js +67 -0
- package/dist/arsenal/icons/components/F.js.map +1 -0
- package/dist/arsenal/icons/components/G.d.ts +33 -0
- package/dist/arsenal/icons/components/G.d.ts.map +1 -0
- package/dist/arsenal/icons/components/G.js +33 -0
- package/dist/arsenal/icons/components/G.js.map +1 -0
- package/dist/arsenal/icons/components/H.d.ts +33 -0
- package/dist/arsenal/icons/components/H.d.ts.map +1 -0
- package/dist/arsenal/icons/components/H.js +33 -0
- package/dist/arsenal/icons/components/H.js.map +1 -0
- package/dist/arsenal/icons/components/I.d.ts +29 -0
- package/dist/arsenal/icons/components/I.d.ts.map +1 -0
- package/dist/arsenal/icons/components/I.js +29 -0
- package/dist/arsenal/icons/components/I.js.map +1 -0
- package/dist/arsenal/icons/components/K.d.ts +13 -0
- package/dist/arsenal/icons/components/K.d.ts.map +1 -0
- package/dist/arsenal/icons/components/K.js +13 -0
- package/dist/arsenal/icons/components/K.js.map +1 -0
- package/dist/arsenal/icons/components/L.d.ts +45 -0
- package/dist/arsenal/icons/components/L.d.ts.map +1 -0
- package/dist/arsenal/icons/components/L.js +45 -0
- package/dist/arsenal/icons/components/L.js.map +1 -0
- package/dist/arsenal/icons/components/M.d.ts +49 -0
- package/dist/arsenal/icons/components/M.d.ts.map +1 -0
- package/dist/arsenal/icons/components/M.js +49 -0
- package/dist/arsenal/icons/components/M.js.map +1 -0
- package/dist/arsenal/icons/components/N.d.ts +11 -0
- package/dist/arsenal/icons/components/N.d.ts.map +1 -0
- package/dist/arsenal/icons/components/N.js +11 -0
- package/dist/arsenal/icons/components/N.js.map +1 -0
- package/dist/arsenal/icons/components/O.d.ts +9 -0
- package/dist/arsenal/icons/components/O.d.ts.map +1 -0
- package/dist/arsenal/icons/components/O.js +9 -0
- package/dist/arsenal/icons/components/O.js.map +1 -0
- package/dist/arsenal/icons/components/P.d.ts +57 -0
- package/dist/arsenal/icons/components/P.d.ts.map +1 -0
- package/dist/arsenal/icons/components/P.js +57 -0
- package/dist/arsenal/icons/components/P.js.map +1 -0
- package/dist/arsenal/icons/components/Q.d.ts +11 -0
- package/dist/arsenal/icons/components/Q.d.ts.map +1 -0
- package/dist/arsenal/icons/components/Q.js +11 -0
- package/dist/arsenal/icons/components/Q.js.map +1 -0
- package/dist/arsenal/icons/components/R.d.ts +37 -0
- package/dist/arsenal/icons/components/R.d.ts.map +1 -0
- package/dist/arsenal/icons/components/R.js +37 -0
- package/dist/arsenal/icons/components/R.js.map +1 -0
- package/dist/arsenal/icons/components/S.d.ts +111 -0
- package/dist/arsenal/icons/components/S.d.ts.map +1 -0
- package/dist/arsenal/icons/components/S.js +111 -0
- package/dist/arsenal/icons/components/S.js.map +1 -0
- package/dist/arsenal/icons/components/T.d.ts +41 -0
- package/dist/arsenal/icons/components/T.d.ts.map +1 -0
- package/dist/arsenal/icons/components/T.js +41 -0
- package/dist/arsenal/icons/components/T.js.map +1 -0
- package/dist/arsenal/icons/components/U.d.ts +33 -0
- package/dist/arsenal/icons/components/U.d.ts.map +1 -0
- package/dist/arsenal/icons/components/U.js +33 -0
- package/dist/arsenal/icons/components/U.js.map +1 -0
- package/dist/arsenal/icons/components/V.d.ts +15 -0
- package/dist/arsenal/icons/components/V.d.ts.map +1 -0
- package/dist/arsenal/icons/components/V.js +15 -0
- package/dist/arsenal/icons/components/V.js.map +1 -0
- package/dist/arsenal/icons/components/W.d.ts +35 -0
- package/dist/arsenal/icons/components/W.d.ts.map +1 -0
- package/dist/arsenal/icons/components/W.js +35 -0
- package/dist/arsenal/icons/components/W.js.map +1 -0
- package/dist/arsenal/icons/components/X.d.ts +19 -0
- package/dist/arsenal/icons/components/X.d.ts.map +1 -0
- package/dist/arsenal/icons/components/X.js +19 -0
- package/dist/arsenal/icons/components/X.js.map +1 -0
- package/dist/arsenal/icons/components/Z.d.ts +11 -0
- package/dist/arsenal/icons/components/Z.d.ts.map +1 -0
- package/dist/arsenal/icons/components/Z.js +11 -0
- package/dist/arsenal/icons/components/Z.js.map +1 -0
- package/dist/arsenal/icons/components/index.d.ts +30 -0
- package/dist/arsenal/icons/components/index.d.ts.map +1 -0
- package/dist/arsenal/icons/components/index.js +30 -0
- package/dist/arsenal/icons/components/index.js.map +1 -0
- package/dist/arsenal/icons/index.d.ts +4 -2
- package/dist/arsenal/icons/index.d.ts.map +1 -1
- package/dist/arsenal/icons/index.js +4 -2
- package/dist/arsenal/icons/index.js.map +1 -1
- package/dist/docs/arsenal.md +4 -2
- package/dist/document/templates/brief.html +3 -3
- package/dist/document/templates/essay.html +3 -3
- package/dist/document/templates/post.html +3 -3
- package/package.json +2 -2
- package/src/arsenal/icons/Glyph.tsx +157 -0
- package/src/arsenal/icons/Icon.tsx +29 -112
- package/src/arsenal/icons/README.md +8 -4
- package/src/arsenal/icons/components/A.ts +120 -0
- package/src/arsenal/icons/components/B.ts +87 -0
- package/src/arsenal/icons/components/C.ts +252 -0
- package/src/arsenal/icons/components/D.ts +39 -0
- package/src/arsenal/icons/components/E.ts +27 -0
- package/src/arsenal/icons/components/F.ts +96 -0
- package/src/arsenal/icons/components/G.ts +45 -0
- package/src/arsenal/icons/components/H.ts +45 -0
- package/src/arsenal/icons/components/I.ts +39 -0
- package/src/arsenal/icons/components/K.ts +15 -0
- package/src/arsenal/icons/components/L.ts +63 -0
- package/src/arsenal/icons/components/M.ts +69 -0
- package/src/arsenal/icons/components/N.ts +12 -0
- package/src/arsenal/icons/components/O.ts +9 -0
- package/src/arsenal/icons/components/P.ts +81 -0
- package/src/arsenal/icons/components/Q.ts +12 -0
- package/src/arsenal/icons/components/R.ts +51 -0
- package/src/arsenal/icons/components/S.ts +162 -0
- package/src/arsenal/icons/components/T.ts +57 -0
- package/src/arsenal/icons/components/U.ts +45 -0
- package/src/arsenal/icons/components/V.ts +18 -0
- package/src/arsenal/icons/components/W.ts +48 -0
- package/src/arsenal/icons/components/X.ts +24 -0
- package/src/arsenal/icons/components/Z.ts +12 -0
- package/src/arsenal/icons/components/index.ts +29 -0
- package/src/arsenal/icons/index.ts +4 -11
package/README.md
CHANGED
|
@@ -123,6 +123,7 @@ pnpm dev # Write contracts and link source entrypoints
|
|
|
123
123
|
pnpm docs:dev # Start the documentation site
|
|
124
124
|
pnpm figma:check # Check tokens, variants, and rendered components against the Figma snapshot
|
|
125
125
|
pnpm figma:sync # Refresh the Figma snapshot with FIGMA_TOKEN, then check
|
|
126
|
+
pnpm icons:arsenal # Regenerate the Tempo Icons components from the release's glyphs.ts
|
|
126
127
|
pnpm playground:dev # Start the web playground
|
|
127
128
|
pnpm playground:mobile # Start the Expo playground in the iOS Simulator
|
|
128
129
|
pnpm swift:generate # Regenerate the Swift package's TDS.swift from the Web variables
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/** Draws one Tempo Icons glyph from its own paths, so a bundle holds only the glyphs it imports. @module */
|
|
2
|
+
import type { ReactElement, SVGProps } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Where the icon sits: small in text, tags, chips and small controls, medium everywhere else, and
|
|
5
|
+
* large for standalone icons at 32px and up.
|
|
6
|
+
*/
|
|
7
|
+
export type IconScale = 'large' | 'medium' | 'small';
|
|
8
|
+
/** The text beside it: regular at 400, emphasis at 500 and up. `medium` is 2.0's name and draws 2.0's Medium. */
|
|
9
|
+
export type IconWeight = 'emphasis' | 'medium' | 'regular';
|
|
10
|
+
/**
|
|
11
|
+
* Returns a component that draws one glyph from its builds. Each Tempo Icons component, such as
|
|
12
|
+
* `ArrowRightIcon`, is one of these.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* export const Send = glyph({ emphasis: 'M…', large: 'M…', largeEmphasis: 'M…', regular: 'M…', small: 'M…', smallEmphasis: 'M…' })
|
|
16
|
+
*/
|
|
17
|
+
export declare function glyph(data: glyph.Data): glyph.ReturnType;
|
|
18
|
+
export declare namespace glyph {
|
|
19
|
+
/** The paths of one glyph, one per build. */
|
|
20
|
+
type Data = {
|
|
21
|
+
/** Medium Emphasis. */
|
|
22
|
+
emphasis: string;
|
|
23
|
+
/** Large Regular. */
|
|
24
|
+
large: string;
|
|
25
|
+
/** Large Emphasis, which 2.0's Medium also draws at the large scale. */
|
|
26
|
+
largeEmphasis: string;
|
|
27
|
+
/** 2.0's Medium at the medium scale. Absent, it draws `emphasis`. */
|
|
28
|
+
medium?: string | undefined;
|
|
29
|
+
/** Mirrors in right-to-left layouts, such as a back arrow. Absent, it keeps its direction. */
|
|
30
|
+
mirror?: true | undefined;
|
|
31
|
+
/** Medium Regular: the default. */
|
|
32
|
+
regular: string;
|
|
33
|
+
/** Small Regular. */
|
|
34
|
+
small: string;
|
|
35
|
+
/** Small Emphasis. */
|
|
36
|
+
smallEmphasis: string;
|
|
37
|
+
/** 2.0's Medium at the small scale. Absent, it draws `smallEmphasis`. */
|
|
38
|
+
smallMedium?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
/** Properties for a glyph component, plus any native SVG attribute except its accessible name, children and `name`. */
|
|
41
|
+
type Props = Omit<SVGProps<SVGSVGElement>, 'aria-hidden' | 'aria-label' | 'children' | 'name' | 'role'> & {
|
|
42
|
+
/** Accessible name for screen readers. Absent, the icon is decorative and hidden from them. */
|
|
43
|
+
label?: string | undefined;
|
|
44
|
+
/** The build, from where the icon sits. Absent, a px size under 15 draws small, as in 2.0. */
|
|
45
|
+
scale?: IconScale | undefined;
|
|
46
|
+
/** Width and height, in px as a number or as any CSS length. Defaults to 16. It sets pixels only. */
|
|
47
|
+
size?: number | string | undefined;
|
|
48
|
+
/** The weight of the text beside it. Defaults to `regular`. */
|
|
49
|
+
weight?: IconWeight | undefined;
|
|
50
|
+
};
|
|
51
|
+
/** A component that draws one glyph. */
|
|
52
|
+
type ReturnType = (props: Props) => ReactElement;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns the path a glyph draws at a size, scale and weight. Without data it returns an empty path,
|
|
56
|
+
* so the icon stays an empty box.
|
|
57
|
+
*/
|
|
58
|
+
export declare function path(data: glyph.Data | undefined, options?: path.Options): string;
|
|
59
|
+
export declare namespace path {
|
|
60
|
+
/** Options that pick a glyph's build. */
|
|
61
|
+
type Options = {
|
|
62
|
+
/** The build, from where the icon sits. Absent, a px size under 15 draws small, as in 2.0. */
|
|
63
|
+
scale?: IconScale | undefined;
|
|
64
|
+
/** Size in px, or a px string such as `14px`. Defaults to 16, and picks a build only without a scale. */
|
|
65
|
+
size?: number | string | undefined;
|
|
66
|
+
/** The weight of the text beside it. Defaults to `regular`. */
|
|
67
|
+
weight?: IconWeight | undefined;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/** Returns the scale a call draws: the one it names, or without one, as 2.0 picked it, small for a px size under 15. */
|
|
71
|
+
export declare function scaleOf(size: number | string, scale?: IconScale | undefined): IconScale;
|
|
72
|
+
//# sourceMappingURL=Glyph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Glyph.d.ts","sourceRoot":"","sources":["../../../src/arsenal/icons/Glyph.tsx"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEpD,iHAAiH;AACjH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE1D;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,UAAU,CAIxD;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,6CAA6C;IAC7C,KAAK,IAAI,GAAG;QACV,uBAAuB;QACvB,QAAQ,EAAE,MAAM,CAAA;QAChB,qBAAqB;QACrB,KAAK,EAAE,MAAM,CAAA;QACb,wEAAwE;QACxE,aAAa,EAAE,MAAM,CAAA;QACrB,qEAAqE;QACrE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC3B,8FAA8F;QAC9F,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;QACzB,mCAAmC;QACnC,OAAO,EAAE,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,GAAG,SAAS,CAMvF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Returns a component that draws one glyph from its builds. Each Tempo Icons component, such as
|
|
4
|
+
* `ArrowRightIcon`, is one of these.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* export const Send = glyph({ emphasis: 'M…', large: 'M…', largeEmphasis: 'M…', regular: 'M…', small: 'M…', smallEmphasis: 'M…' })
|
|
8
|
+
*/
|
|
9
|
+
export function glyph(data) {
|
|
10
|
+
return function TempoIcon(props) {
|
|
11
|
+
return render(data, props);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns the path a glyph draws at a size, scale and weight. Without data it returns an empty path,
|
|
16
|
+
* so the icon stays an empty box.
|
|
17
|
+
*/
|
|
18
|
+
export function path(data, options = {}) {
|
|
19
|
+
const { size = 16, weight = 'regular' } = options;
|
|
20
|
+
if (!data)
|
|
21
|
+
return '';
|
|
22
|
+
const scale = scaleOf(size, options.scale);
|
|
23
|
+
if (weight === 'medium') {
|
|
24
|
+
if (scale === 'small')
|
|
25
|
+
return data.smallMedium ?? data.smallEmphasis;
|
|
26
|
+
if (scale === 'large')
|
|
27
|
+
return data.largeEmphasis;
|
|
28
|
+
return data.medium ?? data.emphasis;
|
|
29
|
+
}
|
|
30
|
+
// An unknown weight draws regular.
|
|
31
|
+
const emphasis = weight === 'emphasis';
|
|
32
|
+
if (scale === 'small')
|
|
33
|
+
return emphasis ? data.smallEmphasis : data.small;
|
|
34
|
+
if (scale === 'large')
|
|
35
|
+
return emphasis ? data.largeEmphasis : data.large;
|
|
36
|
+
return emphasis ? data.emphasis : data.regular;
|
|
37
|
+
}
|
|
38
|
+
/** Returns the scale a call draws: the one it names, or without one, as 2.0 picked it, small for a px size under 15. */
|
|
39
|
+
export function scaleOf(size, scale) {
|
|
40
|
+
if (scale === 'large' || scale === 'medium' || scale === 'small')
|
|
41
|
+
return scale;
|
|
42
|
+
const px = pxOf(size);
|
|
43
|
+
return px !== undefined && px < 15 ? 'small' : 'medium';
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Renders a glyph as an inline SVG that takes the text color. Without a `label` it is decorative and
|
|
47
|
+
* hidden from assistive technology. A glyph marked to mirror flips where `--icon-mirror: scaleX(-1)` is
|
|
48
|
+
* set under `[dir="rtl"]`, and a transform of the caller's own applies after the flip.
|
|
49
|
+
*/
|
|
50
|
+
function render(data, props) {
|
|
51
|
+
const { label, scale, size = 16, style, weight = 'regular', ...rest } = props;
|
|
52
|
+
const named = label ? { 'aria-label': label, role: 'img' } : { 'aria-hidden': true };
|
|
53
|
+
// `none` can't share a transform list, so beside a caller's transform the flip falls back to
|
|
54
|
+
// scaleX(1), which keeps the caller's transform wherever --icon-mirror is unset.
|
|
55
|
+
const flipped = (() => {
|
|
56
|
+
if (!data.mirror)
|
|
57
|
+
return style;
|
|
58
|
+
if (style?.transform)
|
|
59
|
+
return { ...style, transform: `var(--icon-mirror, scaleX(1)) ${style.transform}` };
|
|
60
|
+
return { ...style, transform: 'var(--icon-mirror, none)' };
|
|
61
|
+
})();
|
|
62
|
+
return (_jsx("svg", { fill: "none", height: size, viewBox: "0 0 16 16", width: size, ...named, style: flipped, ...rest, children: _jsx("path", { d: path(data, { scale, size, weight }), fill: "currentColor" }) }));
|
|
63
|
+
}
|
|
64
|
+
/** A size in px, from a number or a px string such as `14px`. Other CSS lengths have none. */
|
|
65
|
+
function pxOf(size) {
|
|
66
|
+
if (typeof size === 'number')
|
|
67
|
+
return size;
|
|
68
|
+
if (/^\s*\d+(\.\d+)?(px)?\s*$/.test(size))
|
|
69
|
+
return Number.parseFloat(size);
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=Glyph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Glyph.js","sourceRoot":"","sources":["../../../src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EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAC,cAAc,GAAG,GAChE,CACP,CAAA;AACH,CAAC;AAED,8FAA8F;AAC9F,SAAS,IAAI,CAAC,IAAqB;IACjC,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACzC,IAAI,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;IAEzE,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
|
@@ -1,39 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
import
|
|
1
|
+
/** Looks Tempo Icons up by name in the release's paths, for each glyph's path, SVG and source to copy. @module */
|
|
2
|
+
import * as Glyph from './Glyph.js';
|
|
3
|
+
import type { IconScale, IconWeight } from './Glyph.js';
|
|
3
4
|
import * as Glyphs from './glyphs.js';
|
|
4
5
|
/** A glyph's name, or an older name it still answers to. */
|
|
5
6
|
export type IconName = Glyphs.IconGlyph | keyof typeof Glyphs.ICON_ALIASES;
|
|
6
|
-
|
|
7
|
-
* Where the icon sits: small in text, tags, chips and small controls, medium everywhere else, and
|
|
8
|
-
* large for standalone icons at 32px and up.
|
|
9
|
-
*/
|
|
10
|
-
export type IconScale = 'large' | 'medium' | 'small';
|
|
11
|
-
/** The text beside it: regular at 400, emphasis at 500 and up. `medium` is 2.0's name and draws 2.0's Medium. */
|
|
12
|
-
export type IconWeight = 'emphasis' | 'medium' | 'regular';
|
|
7
|
+
export type { IconScale, IconWeight };
|
|
13
8
|
/** Returns the glyph a name draws: itself, or the glyph an older name now points to. */
|
|
14
9
|
export declare function glyphOf(name: IconName): Glyphs.IconGlyph;
|
|
15
|
-
/**
|
|
16
|
-
* Draws one glyph as an inline SVG that takes the text color. Without a `label` it is decorative and
|
|
17
|
-
* hidden from assistive technology. A glyph marked to mirror, such as a back arrow, flips where
|
|
18
|
-
* `--icon-mirror: scaleX(-1)` is set under `[dir="rtl"]`, and a transform of the caller's own applies
|
|
19
|
-
* after the flip.
|
|
20
|
-
*/
|
|
21
|
-
export declare function Icon(props: Icon.Props): import("react").JSX.Element;
|
|
22
|
-
export declare namespace Icon {
|
|
23
|
-
/** Properties for the Icon component, plus any native SVG attribute except its accessible name and children. */
|
|
24
|
-
type Props = Omit<SVGProps<SVGSVGElement>, 'aria-hidden' | 'aria-label' | 'children' | 'role'> & {
|
|
25
|
-
/** Accessible name for screen readers. Absent, the icon is decorative and hidden from them. */
|
|
26
|
-
label?: string | undefined;
|
|
27
|
-
/** The glyph to draw, or an older name for it. */
|
|
28
|
-
name: IconName;
|
|
29
|
-
/** The build, from where the icon sits. Absent, a px size under 15 draws small, as in 2.0. */
|
|
30
|
-
scale?: IconScale | undefined;
|
|
31
|
-
/** Width and height, in px as a number or as any CSS length. Defaults to 16. It sets pixels only. */
|
|
32
|
-
size?: number | string | undefined;
|
|
33
|
-
/** The weight of the text beside it. Defaults to `regular`. */
|
|
34
|
-
weight?: IconWeight | undefined;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
10
|
/** Returns a standalone component that draws one glyph, to paste into any React codebase. */
|
|
38
11
|
export declare function iconComponent(name: IconName, options?: iconPath.Options): string;
|
|
39
12
|
/**
|
|
@@ -43,14 +16,7 @@ export declare function iconComponent(name: IconName, options?: iconPath.Options
|
|
|
43
16
|
export declare function iconPath(name: IconName, options?: iconPath.Options): string;
|
|
44
17
|
export declare namespace iconPath {
|
|
45
18
|
/** Options that pick a glyph's build. */
|
|
46
|
-
type Options =
|
|
47
|
-
/** The build, from where the icon sits. Absent, a px size under 15 draws small, as in 2.0. */
|
|
48
|
-
scale?: IconScale | undefined;
|
|
49
|
-
/** Size in px, or a px string such as `14px`. Defaults to 16, and picks a build only without a scale. */
|
|
50
|
-
size?: number | string | undefined;
|
|
51
|
-
/** The weight of the text beside it. Defaults to `regular`. */
|
|
52
|
-
weight?: IconWeight | undefined;
|
|
53
|
-
};
|
|
19
|
+
type Options = Glyph.path.Options;
|
|
54
20
|
}
|
|
55
21
|
/** Returns a glyph's SVG exactly as its release file holds it, in `svg/`, `svg-small/`, `svg-large/` or their `-emphasis` folders. */
|
|
56
22
|
export declare function iconSvg(name: IconName, options?: iconPath.Options): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/arsenal/icons/Icon.tsx"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/arsenal/icons/Icon.tsx"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,4DAA4D;AAC5D,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC,YAAY,CAAA;AAE1E,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA;AAErC,wFAAwF;AACxF,wBAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC,SAAS,CAKxD;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAE,QAAQ,CAAC,OAAY,UA4B3E;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAE,QAAQ,CAAC,OAAY,GAAG,MAAM,CAE/E;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,yCAAyC;IACzC,KAAK,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAA;CAClC;AAED,sIAAsI;AACtI,wBAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAE,QAAQ,CAAC,OAAY,UAErE"}
|
|
@@ -1,41 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/** Looks Tempo Icons up by name in the release's paths, for each glyph's path, SVG and source to copy. @module */
|
|
2
|
+
import * as Glyph from './Glyph.js';
|
|
2
3
|
import * as Glyphs from './glyphs.js';
|
|
3
|
-
const builds = {
|
|
4
|
-
large: { emphasis: Glyphs.ICON_PATHS_LARGE_EMPHASIS, regular: Glyphs.ICON_PATHS_LARGE },
|
|
5
|
-
medium: { emphasis: Glyphs.ICON_PATHS_EMPHASIS, regular: Glyphs.ICON_PATHS },
|
|
6
|
-
small: { emphasis: Glyphs.ICON_PATHS_SMALL_EMPHASIS, regular: Glyphs.ICON_PATHS_SMALL },
|
|
7
|
-
};
|
|
8
4
|
/** Returns the glyph a name draws: itself, or the glyph an older name now points to. */
|
|
9
5
|
export function glyphOf(name) {
|
|
10
6
|
if (Object.hasOwn(Glyphs.ICON_ALIASES, name))
|
|
11
7
|
return Glyphs.ICON_ALIASES[name];
|
|
12
8
|
return name;
|
|
13
9
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Draws one glyph as an inline SVG that takes the text color. Without a `label` it is decorative and
|
|
16
|
-
* hidden from assistive technology. A glyph marked to mirror, such as a back arrow, flips where
|
|
17
|
-
* `--icon-mirror: scaleX(-1)` is set under `[dir="rtl"]`, and a transform of the caller's own applies
|
|
18
|
-
* after the flip.
|
|
19
|
-
*/
|
|
20
|
-
export function Icon(props) {
|
|
21
|
-
const { label, name, scale, size = 16, style, weight = 'regular', ...rest } = props;
|
|
22
|
-
const named = label ? { 'aria-label': label, role: 'img' } : { 'aria-hidden': true };
|
|
23
|
-
// `none` can't share a transform list, so beside a caller's transform the flip falls back to
|
|
24
|
-
// scaleX(1), which keeps the caller's transform wherever --icon-mirror is unset.
|
|
25
|
-
const flipped = (() => {
|
|
26
|
-
if (!mirrors(name))
|
|
27
|
-
return style;
|
|
28
|
-
if (style?.transform)
|
|
29
|
-
return { ...style, transform: `var(--icon-mirror, scaleX(1)) ${style.transform}` };
|
|
30
|
-
return { ...style, transform: 'var(--icon-mirror, none)' };
|
|
31
|
-
})();
|
|
32
|
-
return (_jsx("svg", { fill: "none", height: size, viewBox: "0 0 16 16", width: size, ...named, style: flipped, ...rest, children: _jsx("path", { d: iconPath(name, { scale, size, weight }), fill: "currentColor" }) }));
|
|
33
|
-
}
|
|
34
10
|
/** Returns a standalone component that draws one glyph, to paste into any React codebase. */
|
|
35
11
|
export function iconComponent(name, options = {}) {
|
|
36
12
|
const { size = 16, weight = 'regular' } = options;
|
|
37
13
|
const glyph = glyphOf(name);
|
|
38
|
-
const at = scaleOf(size, options.scale);
|
|
14
|
+
const at = Glyph.scaleOf(size, options.scale);
|
|
39
15
|
const build = [
|
|
40
16
|
at !== 'medium' && `${at[0]?.toUpperCase()}${at.slice(1)}`,
|
|
41
17
|
weight === 'emphasis' && 'Emphasis',
|
|
@@ -65,16 +41,32 @@ export function iconComponent(name, options = {}) {
|
|
|
65
41
|
* nothing, so the icon stays an empty box.
|
|
66
42
|
*/
|
|
67
43
|
export function iconPath(name, options = {}) {
|
|
68
|
-
|
|
69
|
-
const paths = pathsOf(scaleOf(size, options.scale), weight);
|
|
70
|
-
const glyph = glyphOf(name);
|
|
71
|
-
// Own keys only, so a name such as toString, which every object answers to, draws nothing too.
|
|
72
|
-
return Object.hasOwn(paths, glyph) ? (paths[glyph] ?? '') : '';
|
|
44
|
+
return Glyph.path(dataOf(name), options);
|
|
73
45
|
}
|
|
74
46
|
/** Returns a glyph's SVG exactly as its release file holds it, in `svg/`, `svg-small/`, `svg-large/` or their `-emphasis` folders. */
|
|
75
47
|
export function iconSvg(name, options = {}) {
|
|
76
48
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="${iconPath(name, options)}" fill="currentColor"/></svg>`;
|
|
77
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* The paths of the glyph a name draws, from the release's maps. A name the release doesn't have has
|
|
52
|
+
* none. Own keys only, so a name such as toString, which every object answers to, has none too.
|
|
53
|
+
*/
|
|
54
|
+
function dataOf(name) {
|
|
55
|
+
const glyph = glyphOf(name);
|
|
56
|
+
if (!Object.hasOwn(Glyphs.ICON_PATHS, glyph))
|
|
57
|
+
return undefined;
|
|
58
|
+
return {
|
|
59
|
+
emphasis: Glyphs.ICON_PATHS_EMPHASIS[glyph],
|
|
60
|
+
large: Glyphs.ICON_PATHS_LARGE[glyph],
|
|
61
|
+
largeEmphasis: Glyphs.ICON_PATHS_LARGE_EMPHASIS[glyph],
|
|
62
|
+
medium: Glyphs.ICON_PATHS_MEDIUM[glyph],
|
|
63
|
+
mirror: mirrors(glyph) || undefined,
|
|
64
|
+
regular: Glyphs.ICON_PATHS[glyph],
|
|
65
|
+
small: Glyphs.ICON_PATHS_SMALL[glyph],
|
|
66
|
+
smallEmphasis: Glyphs.ICON_PATHS_SMALL_EMPHASIS[glyph],
|
|
67
|
+
smallMedium: Glyphs.ICON_PATHS_14_MEDIUM[glyph],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
78
70
|
/** Whether a glyph mirrors in right-to-left layouts, such as a back arrow. */
|
|
79
71
|
function mirrors(name) {
|
|
80
72
|
const glyph = glyphOf(name);
|
|
@@ -88,30 +80,4 @@ function pascal(name) {
|
|
|
88
80
|
.map((word) => `${word[0]?.toUpperCase()}${word.slice(1)}`)
|
|
89
81
|
.join('');
|
|
90
82
|
}
|
|
91
|
-
/** The paths of a scale and weight. 2.0's `medium` keeps 2.0's drawings, and an unknown weight draws regular. */
|
|
92
|
-
function pathsOf(scale, weight) {
|
|
93
|
-
if (weight === 'medium') {
|
|
94
|
-
if (scale === 'small')
|
|
95
|
-
return Glyphs.ICON_PATHS_14_MEDIUM;
|
|
96
|
-
if (scale === 'large')
|
|
97
|
-
return Glyphs.ICON_PATHS_LARGE_EMPHASIS;
|
|
98
|
-
return Glyphs.ICON_PATHS_MEDIUM;
|
|
99
|
-
}
|
|
100
|
-
return builds[scale][weight === 'emphasis' ? 'emphasis' : 'regular'];
|
|
101
|
-
}
|
|
102
|
-
/** A size in px, from a number or a px string such as `14px`. Other CSS lengths have none. */
|
|
103
|
-
function pxOf(size) {
|
|
104
|
-
if (typeof size === 'number')
|
|
105
|
-
return size;
|
|
106
|
-
if (/^\s*\d+(\.\d+)?(px)?\s*$/.test(size))
|
|
107
|
-
return Number.parseFloat(size);
|
|
108
|
-
return undefined;
|
|
109
|
-
}
|
|
110
|
-
/** The scale a call draws: the one it names, or without one, as 2.0 picked it, small for a px size under 15. */
|
|
111
|
-
function scaleOf(size, scale) {
|
|
112
|
-
if (scale && Object.hasOwn(builds, scale))
|
|
113
|
-
return scale;
|
|
114
|
-
const px = pxOf(size);
|
|
115
|
-
return px !== undefined && px < 15 ? 'small' : 'medium';
|
|
116
|
-
}
|
|
117
83
|
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/arsenal/icons/Icon.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/arsenal/icons/Icon.tsx"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAOrC,wFAAwF;AACxF,MAAM,UAAU,OAAO,CAAC,IAAc;IACpC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC;QAC1C,OAAO,MAAM,CAAC,YAAY,CAAC,IAAwC,CAAC,CAAA;IAEtE,OAAO,IAAwB,CAAA;AACjC,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,aAAa,CAAC,IAAc,EAAE,OAAO,GAAqB,EAAE;IAC1E,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,E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F,CAAC;AAED,oEAAoE;AACpE,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,IAAI;SACR,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC;SACf,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;SAC1D,IAAI,CAAC,EAAE,CAAC,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Tempo Icons components starting with A, and their older names. `pnpm icons:arsenal` writes this module from `glyphs.ts`. Do not edit it by hand.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { glyph } from '../Glyph.js';
|
|
7
|
+
/** Tempo Icons `activity-fill`, Activity (selected): Events, activity or monitoring. A pulse line. Filled: the selected state (R65). */
|
|
8
|
+
export declare const ActivityFillIcon: glyph.ReturnType;
|
|
9
|
+
/** Tempo Icons `activity`, Activity: Events, activity or monitoring. A pulse line. */
|
|
10
|
+
export declare const ActivityIcon: glyph.ReturnType;
|
|
11
|
+
/** Tempo Icons `add-funds`, Add funds: Add funds or top up a balance. */
|
|
12
|
+
export declare const AddFundsIcon: glyph.ReturnType;
|
|
13
|
+
/** Tempo Icons `alert-triangle`, Caution: Caution: proceed with care. Triangle with exclamation. */
|
|
14
|
+
export declare const AlertTriangleIcon: glyph.ReturnType;
|
|
15
|
+
/** Tempo Icons `align-center`, Align center: Center text. */
|
|
16
|
+
export declare const AlignCenterIcon: glyph.ReturnType;
|
|
17
|
+
/** Tempo Icons `align-justify`, Justify: Justify text: every line runs full width. */
|
|
18
|
+
export declare const AlignJustifyIcon: glyph.ReturnType;
|
|
19
|
+
/** Tempo Icons `align-left`, Align left: Align text to the left. */
|
|
20
|
+
export declare const AlignLeftIcon: glyph.ReturnType;
|
|
21
|
+
/** Tempo Icons `align-right`, Align right: Align text to the right. */
|
|
22
|
+
export declare const AlignRightIcon: glyph.ReturnType;
|
|
23
|
+
/** Tempo Icons `api-connection`, API connection: An API connection: one system plugged into another's API. */
|
|
24
|
+
export declare const ApiConnectionIcon: glyph.ReturnType;
|
|
25
|
+
/** Tempo Icons `api-event`, API event: An event sent from an API, such as a webhook call. */
|
|
26
|
+
export declare const ApiEventIcon: glyph.ReturnType;
|
|
27
|
+
/** Tempo Icons `api`, API: An API or code integration. */
|
|
28
|
+
export declare const ApiIcon: glyph.ReturnType;
|
|
29
|
+
/** Tempo Icons `app-window`, App window: An app or browser window: a frame with a title bar. */
|
|
30
|
+
export declare const AppWindowIcon: glyph.ReturnType;
|
|
31
|
+
/** Tempo Icons `archive`, Archive: Archive or store away. Box with lid. */
|
|
32
|
+
export declare const ArchiveIcon: glyph.ReturnType;
|
|
33
|
+
/** Tempo Icons `arrow-circle-down`, Move down: Move down, as a circled control; a circled down arrow. */
|
|
34
|
+
export declare const ArrowCircleDownIcon: glyph.ReturnType;
|
|
35
|
+
/** Tempo Icons `arrow-circle-left`, Go back: Go back or return to the previous step; a circled back arrow. */
|
|
36
|
+
export declare const ArrowCircleLeftIcon: glyph.ReturnType;
|
|
37
|
+
/** Tempo Icons `arrow-circle-right`, Continue: Continue or go; a circled call-to-action arrow. */
|
|
38
|
+
export declare const ArrowCircleRightIcon: glyph.ReturnType;
|
|
39
|
+
/** Tempo Icons `arrow-circle-up`, Upgrade: Upgrade, or move up as a circled control; a circled up arrow. */
|
|
40
|
+
export declare const ArrowCircleUpIcon: glyph.ReturnType;
|
|
41
|
+
/** Tempo Icons `arrow-corner-down-left`, Enter: Enter or return: submit the line or start a new one; the Enter key's arrow. */
|
|
42
|
+
export declare const ArrowCornerDownLeftIcon: glyph.ReturnType;
|
|
43
|
+
/** Tempo Icons `arrow-corner-up-left`, Return: Return or go back up a level; the shaft turns a rounded corner. */
|
|
44
|
+
export declare const ArrowCornerUpLeftIcon: glyph.ReturnType;
|
|
45
|
+
/** Tempo Icons `arrow-down`, Down: Move down. */
|
|
46
|
+
export declare const ArrowDownIcon: glyph.ReturnType;
|
|
47
|
+
/** Tempo Icons `arrow-down-left`, Down and left: Incoming or received; points southwest, the reverse of the northeast exit. */
|
|
48
|
+
export declare const ArrowDownLeftIcon: glyph.ReturnType;
|
|
49
|
+
/** Tempo Icons `arrow-down-right`, Down and right: Move or point southeast. */
|
|
50
|
+
export declare const ArrowDownRightIcon: glyph.ReturnType;
|
|
51
|
+
/** Tempo Icons `arrow-left`, Back: Move back or go to the previous step. */
|
|
52
|
+
export declare const ArrowLeftIcon: glyph.ReturnType;
|
|
53
|
+
/** Tempo Icons `arrow-right`, Next: Move forward or go to the next step. */
|
|
54
|
+
export declare const ArrowRightIcon: glyph.ReturnType;
|
|
55
|
+
/** Tempo Icons `arrow-turn-down-right`, Reply in thread: A reply or sub-item that continues below; a turn down then right. */
|
|
56
|
+
export declare const ArrowTurnDownRightIcon: glyph.ReturnType;
|
|
57
|
+
/** Tempo Icons `arrow-up`, Up: Move up or scroll to top. */
|
|
58
|
+
export declare const ArrowUpIcon: glyph.ReturnType;
|
|
59
|
+
/** Tempo Icons `arrow-up-left`, Up and left: Move or point northwest. */
|
|
60
|
+
export declare const ArrowUpLeftIcon: glyph.ReturnType;
|
|
61
|
+
/** Tempo Icons `arrow-up-right`, Open: Go out or open elsewhere. Northeast exit. */
|
|
62
|
+
export declare const ArrowUpRightIcon: glyph.ReturnType;
|
|
63
|
+
/** Tempo Icons `asterisk`, Required: Required field, footnote or wildcard. */
|
|
64
|
+
export declare const AsteriskIcon: glyph.ReturnType;
|
|
65
|
+
/** Tempo Icons `at-sign`, Mention: Mention, handle or email address. */
|
|
66
|
+
export declare const AtSignIcon: glyph.ReturnType;
|
|
67
|
+
/** Tempo Icons `attach`, Attach file: Attach a file. Paperclip. */
|
|
68
|
+
export declare const AttachIcon: glyph.ReturnType;
|
|
69
|
+
/** Tempo Icons `award`, Award: Recognition or a credential: a badge, certificate or tier granted to someone. A rosette: a ring with ribbon tails. */
|
|
70
|
+
export declare const AwardIcon: glyph.ReturnType;
|
|
71
|
+
/** @deprecated `braces` is an older name of `api`. Use {@link ApiIcon}. */
|
|
72
|
+
export declare const BracesIcon: glyph.ReturnType;
|
|
73
|
+
/** @deprecated `corner-down-left` is an older name of `arrow-corner-down-left`. Use {@link ArrowCornerDownLeftIcon}. */
|
|
74
|
+
export declare const CornerDownLeftIcon: glyph.ReturnType;
|
|
75
|
+
/** @deprecated `deposit` is an older name of `add-funds`. Use {@link AddFundsIcon}. */
|
|
76
|
+
export declare const DepositIcon: glyph.ReturnType;
|
|
77
|
+
/** @deprecated `enter` is an older name of `arrow-corner-down-left`. Use {@link ArrowCornerDownLeftIcon}. */
|
|
78
|
+
export declare const EnterIcon: glyph.ReturnType;
|
|
79
|
+
/** @deprecated `json` is an older name of `api`. Use {@link ApiIcon}. */
|
|
80
|
+
export declare const JsonIcon: glyph.ReturnType;
|
|
81
|
+
/** @deprecated `warning-triangle` is an older name of `alert-triangle`. Use {@link AlertTriangleIcon}. */
|
|
82
|
+
export declare const WarningTriangleIcon: glyph.ReturnType;
|
|
83
|
+
//# sourceMappingURL=A.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A.d.ts","sourceRoot":"","sources":["../../../../src/arsenal/icons/components/A.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAEnC,wIAAwI;AACxI,eAAO,MAAM,gBAAgB,kBAAs1K,CAAA;AAEn3K,sFAAsF;AACtF,eAAO,MAAM,YAAY,kBAAotH,CAAA;AAE7uH,yEAAyE;AACzE,eAAO,MAAM,YAAY,kBAAg7rB,CAAA;AAEz8rB,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,kBAA8wL,CAAA;AAE5yL,6DAA6D;AAC7D,eAAO,MAAM,eAAe,kBAAwlK,CAAA;AAEpnK,sFAAs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