@sesamehr/react-design-system 3.10.1 → 3.10.2
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/Display/BrandLogo/BrandLogo.d.ts +6 -1
- package/dist/Display/BrandLogo/BrandLogo.module.css.js +5 -5
- package/dist/Display/BrandLogo/brandLogoArt.d.ts +23 -2
- package/dist/Display/BrandLogo/brandLogoArt.js +2 -2
- package/dist/react-design-system.css +1 -1
- package/dist/translations/es-MX.json.js +1 -0
- package/package.json +1 -1
|
@@ -15,7 +15,12 @@ export interface BrandLogoProps extends Omit<React.SVGAttributes<SVGSVGElement>,
|
|
|
15
15
|
* dark-mode switch — see the note below.
|
|
16
16
|
*/
|
|
17
17
|
color?: BrandLogoVariants['color'];
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* 20px tall, or 56px: the logo's own height, which is what the board's 32 and
|
|
20
|
+
* 88 frames hold once their padding comes off. The `viewBox` is cropped to
|
|
21
|
+
* the paths, so the element's edges are the art's edges and spacing around it
|
|
22
|
+
* is the caller's.
|
|
23
|
+
*/
|
|
19
24
|
size?: BrandLogoVariants['size'];
|
|
20
25
|
dataTestid: string;
|
|
21
26
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const o = {
|
|
2
|
-
"ox-brand-logo": "_ox-brand-
|
|
3
|
-
"ox-brand-logo--md": "_ox-brand-logo--
|
|
4
|
-
"ox-brand-logo--lg": "_ox-brand-logo--
|
|
5
|
-
"ox-brand-logo--dark": "_ox-brand-logo--
|
|
6
|
-
"ox-brand-logo--light": "_ox-brand-logo--
|
|
2
|
+
"ox-brand-logo": "_ox-brand-logo_1q2c2_2",
|
|
3
|
+
"ox-brand-logo--md": "_ox-brand-logo--md_1q2c2_2",
|
|
4
|
+
"ox-brand-logo--lg": "_ox-brand-logo--lg_1q2c2_2",
|
|
5
|
+
"ox-brand-logo--dark": "_ox-brand-logo--dark_1q2c2_2",
|
|
6
|
+
"ox-brand-logo--light": "_ox-brand-logo--light_1q2c2_2"
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
o as default
|
|
@@ -15,6 +15,23 @@
|
|
|
15
15
|
* Composed from the vector groups Figma exports, each placed with the offset
|
|
16
16
|
* the group has inside its variant frame. Regenerated rather than edited: the
|
|
17
17
|
* numbers are measurements, and a hand-nudged logo is a wrong logo.
|
|
18
|
+
*
|
|
19
|
+
* **The viewBox is the ink, not the frame Figma exports.** Every variant frame
|
|
20
|
+
* on the board is padded — 8.74 x 5.82 around the lockup, 5.82 all round the
|
|
21
|
+
* mark — and a regeneration hands that frame over as the box. Baked in, it is
|
|
22
|
+
* padding nobody asked for: a 32px-tall element drew 20px of logo inside 12px
|
|
23
|
+
* of air, its edges sat nowhere near the art, and anything positioning the logo
|
|
24
|
+
* positioned the air instead. So the `viewBox` is cropped to the measured
|
|
25
|
+
* bounds of the paths, while the group offsets are left exactly as exported —
|
|
26
|
+
* which is why the box no longer starts at `0 0`. Spacing is the caller's to
|
|
27
|
+
* add; a logo flush to its own box is the only one a caller can place.
|
|
28
|
+
* The component's own test re-measures the curves and fails if the frame comes
|
|
29
|
+
* back.
|
|
30
|
+
*
|
|
31
|
+
* Note what cropping does *not* mean: the logo is not drawn any larger to fill
|
|
32
|
+
* the space the padding used to take. The stylesheet's two heights moved down
|
|
33
|
+
* with the box, from the board's frame heights to the heights of the drawing
|
|
34
|
+
* inside them — see the component.
|
|
18
35
|
*/
|
|
19
36
|
export interface BrandLogoArt {
|
|
20
37
|
viewBox: string;
|
|
@@ -23,7 +40,11 @@ export interface BrandLogoArt {
|
|
|
23
40
|
paths: string[];
|
|
24
41
|
}[];
|
|
25
42
|
}
|
|
26
|
-
/** Symbol plus the "sesame" wordmark:
|
|
43
|
+
/** Symbol plus the "sesame" wordmark: 96.12 x 20.39 of ink, which is 4.714:1. */
|
|
27
44
|
export declare const BRAND_LOGO_FULL: BrandLogoArt;
|
|
28
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* The symbol on its own. Square to four decimals — the ink measures
|
|
47
|
+
* 20.3629 x 20.3636, and the box takes the taller of the two on both axes so
|
|
48
|
+
* that "the mark is square" stays literally true for a caller sizing it.
|
|
49
|
+
*/
|
|
29
50
|
export declare const BRAND_LOGO_MARK: BrandLogoArt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const C = {
|
|
2
|
-
viewBox: "
|
|
2
|
+
viewBox: "8.738 5.8249 96.1233 20.3904",
|
|
3
3
|
groups: [
|
|
4
4
|
{
|
|
5
5
|
transform: "translate(8.738 5.8249)",
|
|
@@ -26,7 +26,7 @@ const C = {
|
|
|
26
26
|
}
|
|
27
27
|
]
|
|
28
28
|
}, L = {
|
|
29
|
-
viewBox: "
|
|
29
|
+
viewBox: "5.8174 5.818 20.3636 20.3636",
|
|
30
30
|
groups: [
|
|
31
31
|
{
|
|
32
32
|
transform: "translate(5.8174 5.818)",
|