@fairmint/ui 0.3.43 → 0.4.1
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/_virtual/index3.cjs +3 -5
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.cjs +5 -3
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +5 -2
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMark.cjs.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMark.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMark.js.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.cjs +16 -7
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.cjs.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.d.ts +17 -8
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.js +16 -7
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.js.map +1 -1
- package/dist/components/generic/FilterToggle/FilterToggle.cjs +51 -0
- package/dist/components/generic/FilterToggle/FilterToggle.cjs.map +1 -0
- package/dist/components/generic/FilterToggle/FilterToggle.d.ts +19 -0
- package/dist/components/generic/FilterToggle/FilterToggle.d.ts.map +1 -0
- package/dist/components/generic/FilterToggle/FilterToggle.js +51 -0
- package/dist/components/generic/FilterToggle/FilterToggle.js.map +1 -0
- package/dist/components/generic/QuickFilterChip/QuickFilterChip.cjs +57 -0
- package/dist/components/generic/QuickFilterChip/QuickFilterChip.cjs.map +1 -0
- package/dist/components/generic/QuickFilterChip/QuickFilterChip.d.ts +34 -0
- package/dist/components/generic/QuickFilterChip/QuickFilterChip.d.ts.map +1 -0
- package/dist/components/generic/QuickFilterChip/QuickFilterChip.js +57 -0
- package/dist/components/generic/QuickFilterChip/QuickFilterChip.js.map +1 -0
- package/dist/components/generic/SearchInput/SearchInput.cjs +1 -0
- package/dist/components/generic/SearchInput/SearchInput.cjs.map +1 -1
- package/dist/components/generic/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/generic/SearchInput/SearchInput.js +1 -0
- package/dist/components/generic/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/layout/AppHeader/AppHeader.cjs.map +1 -1
- package/dist/components/layout/AppHeader/AppHeader.d.ts +2 -2
- package/dist/components/layout/AppHeader/AppHeader.d.ts.map +1 -1
- package/dist/components/layout/AppHeader/AppHeader.js.map +1 -1
- package/dist/components/layout/SideNav/studioNavFixtures.d.ts +2 -2
- package/dist/components/layout/SideNav/studioNavFixtures.d.ts.map +1 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.cjs.map +1 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts +2 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts.map +1 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.js.map +1 -1
- package/dist/fairmint-ui.cjs +4 -2
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +4 -2
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.cjs +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.js +1 -1
- package/dist/node_modules/prop-types/index.cjs +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/styles.css +79 -79
- package/package.json +1 -1
- package/dist/components/FairmintLogo/FairmintBrandLogo.cjs +0 -66
- package/dist/components/FairmintLogo/FairmintBrandLogo.cjs.map +0 -1
- package/dist/components/FairmintLogo/FairmintBrandLogo.d.ts +0 -46
- package/dist/components/FairmintLogo/FairmintBrandLogo.d.ts.map +0 -1
- package/dist/components/FairmintLogo/FairmintBrandLogo.js +0 -66
- package/dist/components/FairmintLogo/FairmintBrandLogo.js.map +0 -1
- package/dist/components/FairmintLogo/brandLogoLayout.cjs +0 -25
- package/dist/components/FairmintLogo/brandLogoLayout.cjs.map +0 -1
- package/dist/components/FairmintLogo/brandLogoLayout.d.ts +0 -19
- package/dist/components/FairmintLogo/brandLogoLayout.d.ts.map +0 -1
- package/dist/components/FairmintLogo/brandLogoLayout.js +0 -25
- package/dist/components/FairmintLogo/brandLogoLayout.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -1,82 +1,3 @@
|
|
|
1
|
-
.fairmint-equity-ribbon {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: clamp(360px, 42vw, 500px);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.fairmint-equity-ribbon--has-chart-width {
|
|
8
|
-
width: 100%;
|
|
9
|
-
max-width: var(--fairmint-ribbon-nominal-width);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.fairmint-equity-ribbon--bg-white {
|
|
13
|
-
background: var(--fairmint-ribbon-surface-white);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.fairmint-equity-ribbon--bg-black {
|
|
17
|
-
background: var(--fairmint-ribbon-surface-black);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.fairmint-equity-ribbon--bg-transparent {
|
|
21
|
-
background: transparent;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.fairmint-equity-ribbon--layout-mark {
|
|
25
|
-
height: 100%;
|
|
26
|
-
width: 100%;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.fairmint-equity-ribbon__svg {
|
|
31
|
-
position: absolute;
|
|
32
|
-
inset: 0;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
overflow: visible;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.fairmint-equity-ribbon__band {
|
|
39
|
-
stroke-width: 2px;
|
|
40
|
-
stroke-linejoin: round;
|
|
41
|
-
stroke: var(--fairmint-ribbon-gap-color, var(--fairmint-ribbon-surface-black));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.fairmint-equity-ribbon--layout-mark .fairmint-equity-ribbon__band {
|
|
45
|
-
stroke-width: 1.5px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.fairmint-equity-ribbon__label {
|
|
49
|
-
position: absolute;
|
|
50
|
-
white-space: nowrap;
|
|
51
|
-
font-weight: 800;
|
|
52
|
-
font-size: clamp(17px, 1.5vw, 21px);
|
|
53
|
-
letter-spacing: -0.03em;
|
|
54
|
-
pointer-events: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.fairmint-equity-ribbon__label--start {
|
|
58
|
-
text-align: left;
|
|
59
|
-
padding-bottom: 6px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.fairmint-equity-ribbon--hidden-labels .fairmint-equity-ribbon__label {
|
|
63
|
-
visibility: hidden;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@media (max-width: 760px) {
|
|
67
|
-
.fairmint-equity-ribbon__label {
|
|
68
|
-
font-size: 15px;
|
|
69
|
-
letter-spacing: -0.02em;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.fairmint-equity-ribbon__label--start {
|
|
73
|
-
padding-bottom: 5px;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.fairmint-ribbon-mark {
|
|
78
|
-
flex-shrink: 0;
|
|
79
|
-
}
|
|
80
1
|
.fairmint-step-progress {
|
|
81
2
|
width: 100%;
|
|
82
3
|
}
|
|
@@ -9436,6 +9357,85 @@ fieldset:disabled .m_38aeed47:where(:not([data-inverted])),
|
|
|
9436
9357
|
.fairmint-multiselect-pills-list > * {
|
|
9437
9358
|
flex-shrink: 0;
|
|
9438
9359
|
}
|
|
9360
|
+
.fairmint-equity-ribbon {
|
|
9361
|
+
position: relative;
|
|
9362
|
+
width: 100%;
|
|
9363
|
+
height: clamp(360px, 42vw, 500px);
|
|
9364
|
+
}
|
|
9365
|
+
|
|
9366
|
+
.fairmint-equity-ribbon--has-chart-width {
|
|
9367
|
+
width: 100%;
|
|
9368
|
+
max-width: var(--fairmint-ribbon-nominal-width);
|
|
9369
|
+
}
|
|
9370
|
+
|
|
9371
|
+
.fairmint-equity-ribbon--bg-white {
|
|
9372
|
+
background: var(--fairmint-ribbon-surface-white);
|
|
9373
|
+
}
|
|
9374
|
+
|
|
9375
|
+
.fairmint-equity-ribbon--bg-black {
|
|
9376
|
+
background: var(--fairmint-ribbon-surface-black);
|
|
9377
|
+
}
|
|
9378
|
+
|
|
9379
|
+
.fairmint-equity-ribbon--bg-transparent {
|
|
9380
|
+
background: transparent;
|
|
9381
|
+
}
|
|
9382
|
+
|
|
9383
|
+
.fairmint-equity-ribbon--layout-mark {
|
|
9384
|
+
height: 100%;
|
|
9385
|
+
width: 100%;
|
|
9386
|
+
overflow: hidden;
|
|
9387
|
+
}
|
|
9388
|
+
|
|
9389
|
+
.fairmint-equity-ribbon__svg {
|
|
9390
|
+
position: absolute;
|
|
9391
|
+
inset: 0;
|
|
9392
|
+
width: 100%;
|
|
9393
|
+
height: 100%;
|
|
9394
|
+
overflow: visible;
|
|
9395
|
+
}
|
|
9396
|
+
|
|
9397
|
+
.fairmint-equity-ribbon__band {
|
|
9398
|
+
stroke-width: 2px;
|
|
9399
|
+
stroke-linejoin: round;
|
|
9400
|
+
stroke: var(--fairmint-ribbon-gap-color, var(--fairmint-ribbon-surface-black));
|
|
9401
|
+
}
|
|
9402
|
+
|
|
9403
|
+
.fairmint-equity-ribbon--layout-mark .fairmint-equity-ribbon__band {
|
|
9404
|
+
stroke-width: 1.5px;
|
|
9405
|
+
}
|
|
9406
|
+
|
|
9407
|
+
.fairmint-equity-ribbon__label {
|
|
9408
|
+
position: absolute;
|
|
9409
|
+
white-space: nowrap;
|
|
9410
|
+
font-weight: 800;
|
|
9411
|
+
font-size: clamp(17px, 1.5vw, 21px);
|
|
9412
|
+
letter-spacing: -0.03em;
|
|
9413
|
+
pointer-events: none;
|
|
9414
|
+
}
|
|
9415
|
+
|
|
9416
|
+
.fairmint-equity-ribbon__label--start {
|
|
9417
|
+
text-align: left;
|
|
9418
|
+
padding-bottom: 6px;
|
|
9419
|
+
}
|
|
9420
|
+
|
|
9421
|
+
.fairmint-equity-ribbon--hidden-labels .fairmint-equity-ribbon__label {
|
|
9422
|
+
visibility: hidden;
|
|
9423
|
+
}
|
|
9424
|
+
|
|
9425
|
+
@media (max-width: 760px) {
|
|
9426
|
+
.fairmint-equity-ribbon__label {
|
|
9427
|
+
font-size: 15px;
|
|
9428
|
+
letter-spacing: -0.02em;
|
|
9429
|
+
}
|
|
9430
|
+
|
|
9431
|
+
.fairmint-equity-ribbon__label--start {
|
|
9432
|
+
padding-bottom: 5px;
|
|
9433
|
+
}
|
|
9434
|
+
}
|
|
9435
|
+
|
|
9436
|
+
.fairmint-ribbon-mark {
|
|
9437
|
+
flex-shrink: 0;
|
|
9438
|
+
}
|
|
9439
9439
|
/* Copyright 2014 Mozilla Foundation
|
|
9440
9440
|
*
|
|
9441
9441
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
package/package.json
CHANGED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const FairmintRibbonMark = require("../specific/EquityRibbonChart/FairmintRibbonMark.cjs");
|
|
5
|
-
const brandLogoLayout = require("./brandLogoLayout.cjs");
|
|
6
|
-
const FairmintLogoGraphic = require("./FairmintLogoGraphic.cjs");
|
|
7
|
-
const FairmintLogoMark = require("./FairmintLogoMark.cjs");
|
|
8
|
-
function FairmintBrandLogo({
|
|
9
|
-
variant = "black",
|
|
10
|
-
height = 30,
|
|
11
|
-
markSize,
|
|
12
|
-
gap,
|
|
13
|
-
markStyle = "simple",
|
|
14
|
-
markFill,
|
|
15
|
-
markBandCount = 5,
|
|
16
|
-
markBackground = "transparent",
|
|
17
|
-
markGapColor = "transparent",
|
|
18
|
-
className,
|
|
19
|
-
style,
|
|
20
|
-
alt = "Fairmint"
|
|
21
|
-
}) {
|
|
22
|
-
const resolvedMarkSize = markSize ?? brandLogoLayout.defaultBrandLogoMarkSize(height);
|
|
23
|
-
const resolvedGap = gap ?? brandLogoLayout.defaultBrandLogoGap(height);
|
|
24
|
-
const resolvedMarkFill = markFill ?? brandLogoLayout.defaultMarkFillForVariant(variant);
|
|
25
|
-
const wordmarkWidth = brandLogoLayout.wordmarkWidthForHeight(height);
|
|
26
|
-
const hasLabel = alt.length > 0;
|
|
27
|
-
const lockupStyle = {
|
|
28
|
-
display: "inline-flex",
|
|
29
|
-
alignItems: "flex-end",
|
|
30
|
-
gap: resolvedGap,
|
|
31
|
-
lineHeight: 0,
|
|
32
|
-
flexShrink: 0,
|
|
33
|
-
...style
|
|
34
|
-
};
|
|
35
|
-
const lockup = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
-
"span",
|
|
38
|
-
{
|
|
39
|
-
"aria-hidden": true,
|
|
40
|
-
style: {
|
|
41
|
-
display: "inline-flex",
|
|
42
|
-
flexShrink: 0,
|
|
43
|
-
width: resolvedMarkSize,
|
|
44
|
-
height: resolvedMarkSize,
|
|
45
|
-
overflow: markStyle === "ribbon" ? "hidden" : void 0
|
|
46
|
-
},
|
|
47
|
-
children: markStyle === "simple" ? /* @__PURE__ */ jsxRuntime.jsx(FairmintLogoMark.FairmintLogoMark, { size: resolvedMarkSize, fill: resolvedMarkFill }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
-
FairmintRibbonMark.FairmintRibbonMark,
|
|
49
|
-
{
|
|
50
|
-
size: resolvedMarkSize,
|
|
51
|
-
bandCount: markBandCount,
|
|
52
|
-
background: markBackground,
|
|
53
|
-
gapColor: markGapColor
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(FairmintLogoGraphic.FairmintLogoGraphic, { variant, width: wordmarkWidth, height, alt: "" }) })
|
|
59
|
-
] });
|
|
60
|
-
if (hasLabel) {
|
|
61
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { role: "img", "aria-label": alt, className, style: lockupStyle, children: lockup });
|
|
62
|
-
}
|
|
63
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className, style: lockupStyle, children: lockup });
|
|
64
|
-
}
|
|
65
|
-
exports.FairmintBrandLogo = FairmintBrandLogo;
|
|
66
|
-
//# sourceMappingURL=FairmintBrandLogo.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FairmintBrandLogo.cjs","sources":["../../../src/components/FairmintLogo/FairmintBrandLogo.tsx"],"sourcesContent":["import type { CSSProperties } from \"react\";\nimport {\n FairmintRibbonMark,\n type FairmintRibbonMarkProps,\n} from \"../specific/EquityRibbonChart/FairmintRibbonMark\";\nimport type { RibbonBackground } from \"../specific/EquityRibbonChart/ribbonTheme\";\nimport {\n defaultBrandLogoGap,\n defaultBrandLogoMarkSize,\n defaultMarkFillForVariant,\n wordmarkWidthForHeight,\n} from \"./brandLogoLayout\";\nimport { FairmintLogoGraphic, type FairmintLogoVariant } from \"./FairmintLogoGraphic\";\nimport { FairmintLogoMark, type FairmintLogoMarkFill } from \"./FairmintLogoMark\";\n\nexport type { FairmintLogoVariant };\n\nexport type FairmintBrandLogoMarkStyle = \"simple\" | \"ribbon\";\n\nexport interface FairmintBrandLogoProps {\n /**\n * Wordmark color variant.\n * @default \"black\" — monochrome wordmark lets the mark own the color.\n */\n variant?: FairmintLogoVariant;\n /** Wordmark height in pixels. @default 30 */\n height?: number;\n /**\n * Mark size in pixels.\n * @default ~78% of `height` (optical scale vs full wordmark cap height).\n */\n markSize?: number;\n /** Space between mark and wordmark. @default scaled from height (~12px at 30px) */\n gap?: number;\n /**\n * `simple` — flat gradient bars (default, best for nav lockups).\n * `ribbon` — full `FairmintRibbonMark` (better at 64px+).\n */\n markStyle?: FairmintBrandLogoMarkStyle;\n /**\n * Bar fill for the simple mark.\n * @default `gradient` on light backgrounds (`black` / `colored` wordmark), `white` when `variant=\"white\"`.\n */\n markFill?: FairmintLogoMarkFill;\n /** Ribbons in the ribbon mark (1–5). Only when `markStyle=\"ribbon\"`. @default 5 */\n markBandCount?: FairmintRibbonMarkProps[\"bandCount\"];\n /** Mark canvas behind ribbons. Only when `markStyle=\"ribbon\"`. @default \"transparent\" */\n markBackground?: RibbonBackground;\n /** Seam color between ribbons. Only when `markStyle=\"ribbon\"`. @default \"transparent\" */\n markGapColor?: FairmintRibbonMarkProps[\"gapColor\"];\n /** Additional class name on the lockup wrapper. */\n className?: string;\n style?: CSSProperties;\n /** Accessible name for the combined logo. @default \"Fairmint\" */\n alt?: string;\n}\n\nexport function FairmintBrandLogo({\n variant = \"black\",\n height = 30,\n markSize,\n gap,\n markStyle = \"simple\",\n markFill,\n markBandCount = 5,\n markBackground = \"transparent\",\n markGapColor = \"transparent\",\n className,\n style,\n alt = \"Fairmint\",\n}: FairmintBrandLogoProps) {\n const resolvedMarkSize = markSize ?? defaultBrandLogoMarkSize(height);\n const resolvedGap = gap ?? defaultBrandLogoGap(height);\n const resolvedMarkFill = markFill ?? defaultMarkFillForVariant(variant);\n const wordmarkWidth = wordmarkWidthForHeight(height);\n const hasLabel = alt.length > 0;\n const lockupStyle = {\n display: \"inline-flex\",\n alignItems: \"flex-end\",\n gap: resolvedGap,\n lineHeight: 0,\n flexShrink: 0,\n ...style,\n } as const;\n\n const lockup = (\n <>\n <span\n aria-hidden\n style={{\n display: \"inline-flex\",\n flexShrink: 0,\n width: resolvedMarkSize,\n height: resolvedMarkSize,\n overflow: markStyle === \"ribbon\" ? \"hidden\" : undefined,\n }}\n >\n {markStyle === \"simple\" ? (\n <FairmintLogoMark size={resolvedMarkSize} fill={resolvedMarkFill} />\n ) : (\n <FairmintRibbonMark\n size={resolvedMarkSize}\n bandCount={markBandCount}\n background={markBackground}\n gapColor={markGapColor}\n />\n )}\n </span>\n <span aria-hidden>\n <FairmintLogoGraphic variant={variant} width={wordmarkWidth} height={height} alt=\"\" />\n </span>\n </>\n );\n\n if (hasLabel) {\n return (\n <span role=\"img\" aria-label={alt} className={className} style={lockupStyle}>\n {lockup}\n </span>\n );\n }\n\n return (\n <span className={className} style={lockupStyle}>\n {lockup}\n </span>\n );\n}\n"],"names":["defaultBrandLogoMarkSize","defaultBrandLogoGap","defaultMarkFillForVariant","wordmarkWidthForHeight","jsxs","Fragment","jsx","FairmintLogoMark","FairmintRibbonMark","FairmintLogoGraphic"],"mappings":";;;;;;;AAyDO,SAAS,kBAAkB;AAAA,EAChC,UAAU;AAAA,EACV,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,MAAM;AACR,GAA2B;AACzB,QAAM,mBAAmB,YAAYA,gBAAAA,yBAAyB,MAAM;AACpE,QAAM,cAAc,OAAOC,gBAAAA,oBAAoB,MAAM;AACrD,QAAM,mBAAmB,YAAYC,gBAAAA,0BAA0B,OAAO;AACtE,QAAM,gBAAgBC,gBAAAA,uBAAuB,MAAM;AACnD,QAAM,WAAW,IAAI,SAAS;AAC9B,QAAM,cAAc;AAAA,IAClB,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA;AAGL,QAAM,SACJC,2BAAAA,KAAAC,WAAAA,UAAA,EACE,UAAA;AAAA,IAAAC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,eAAW;AAAA,QACX,OAAO;AAAA,UACL,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,UAAU,cAAc,WAAW,WAAW;AAAA,QAAA;AAAA,QAG/C,UAAA,cAAc,WACbA,2BAAAA,IAACC,iBAAAA,kBAAA,EAAiB,MAAM,kBAAkB,MAAM,kBAAkB,IAElED,2BAAAA;AAAAA,UAACE,mBAAAA;AAAAA,UAAA;AAAA,YACC,MAAM;AAAA,YACN,WAAW;AAAA,YACX,YAAY;AAAA,YACZ,UAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA;AAAA,IAGJF,2BAAAA,IAAC,QAAA,EAAK,eAAW,MACf,UAAAA,2BAAAA,IAACG,oBAAAA,qBAAA,EAAoB,SAAkB,OAAO,eAAe,QAAgB,KAAI,GAAA,CAAG,EAAA,CACtF;AAAA,EAAA,GACF;AAGF,MAAI,UAAU;AACZ,WACEH,2BAAAA,IAAC,UAAK,MAAK,OAAM,cAAY,KAAK,WAAsB,OAAO,aAC5D,UAAA,OAAA,CACH;AAAA,EAEJ;AAEA,SACEA,2BAAAA,IAAC,QAAA,EAAK,WAAsB,OAAO,aAChC,UAAA,QACH;AAEJ;;"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { FairmintRibbonMarkProps } from '../specific/EquityRibbonChart/FairmintRibbonMark';
|
|
3
|
-
import { RibbonBackground } from '../specific/EquityRibbonChart/ribbonTheme';
|
|
4
|
-
import { FairmintLogoVariant } from './FairmintLogoGraphic';
|
|
5
|
-
import { FairmintLogoMarkFill } from './FairmintLogoMark';
|
|
6
|
-
export type { FairmintLogoVariant };
|
|
7
|
-
export type FairmintBrandLogoMarkStyle = "simple" | "ribbon";
|
|
8
|
-
export interface FairmintBrandLogoProps {
|
|
9
|
-
/**
|
|
10
|
-
* Wordmark color variant.
|
|
11
|
-
* @default "black" — monochrome wordmark lets the mark own the color.
|
|
12
|
-
*/
|
|
13
|
-
variant?: FairmintLogoVariant;
|
|
14
|
-
/** Wordmark height in pixels. @default 30 */
|
|
15
|
-
height?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Mark size in pixels.
|
|
18
|
-
* @default ~78% of `height` (optical scale vs full wordmark cap height).
|
|
19
|
-
*/
|
|
20
|
-
markSize?: number;
|
|
21
|
-
/** Space between mark and wordmark. @default scaled from height (~12px at 30px) */
|
|
22
|
-
gap?: number;
|
|
23
|
-
/**
|
|
24
|
-
* `simple` — flat gradient bars (default, best for nav lockups).
|
|
25
|
-
* `ribbon` — full `FairmintRibbonMark` (better at 64px+).
|
|
26
|
-
*/
|
|
27
|
-
markStyle?: FairmintBrandLogoMarkStyle;
|
|
28
|
-
/**
|
|
29
|
-
* Bar fill for the simple mark.
|
|
30
|
-
* @default `gradient` on light backgrounds (`black` / `colored` wordmark), `white` when `variant="white"`.
|
|
31
|
-
*/
|
|
32
|
-
markFill?: FairmintLogoMarkFill;
|
|
33
|
-
/** Ribbons in the ribbon mark (1–5). Only when `markStyle="ribbon"`. @default 5 */
|
|
34
|
-
markBandCount?: FairmintRibbonMarkProps["bandCount"];
|
|
35
|
-
/** Mark canvas behind ribbons. Only when `markStyle="ribbon"`. @default "transparent" */
|
|
36
|
-
markBackground?: RibbonBackground;
|
|
37
|
-
/** Seam color between ribbons. Only when `markStyle="ribbon"`. @default "transparent" */
|
|
38
|
-
markGapColor?: FairmintRibbonMarkProps["gapColor"];
|
|
39
|
-
/** Additional class name on the lockup wrapper. */
|
|
40
|
-
className?: string;
|
|
41
|
-
style?: CSSProperties;
|
|
42
|
-
/** Accessible name for the combined logo. @default "Fairmint" */
|
|
43
|
-
alt?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare function FairmintBrandLogo({ variant, height, markSize, gap, markStyle, markFill, markBandCount, markBackground, markGapColor, className, style, alt, }: FairmintBrandLogoProps): import("react").JSX.Element;
|
|
46
|
-
//# sourceMappingURL=FairmintBrandLogo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FairmintBrandLogo.d.ts","sourceRoot":"","sources":["../../../src/components/FairmintLogo/FairmintBrandLogo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAOlF,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAoB,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAEjF,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7D,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mFAAmF;IACnF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,mFAAmF;IACnF,aAAa,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IACrD,yFAAyF;IACzF,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,yFAAyF;IACzF,YAAY,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACnD,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iEAAiE;IACjE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAiB,EACjB,MAAW,EACX,QAAQ,EACR,GAAG,EACH,SAAoB,EACpB,QAAQ,EACR,aAAiB,EACjB,cAA8B,EAC9B,YAA4B,EAC5B,SAAS,EACT,KAAK,EACL,GAAgB,GACjB,EAAE,sBAAsB,+BAyDxB"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { FairmintRibbonMark } from "../specific/EquityRibbonChart/FairmintRibbonMark.js";
|
|
3
|
-
import { defaultBrandLogoGap, defaultBrandLogoMarkSize, defaultMarkFillForVariant, wordmarkWidthForHeight } from "./brandLogoLayout.js";
|
|
4
|
-
import { FairmintLogoGraphic } from "./FairmintLogoGraphic.js";
|
|
5
|
-
import { FairmintLogoMark } from "./FairmintLogoMark.js";
|
|
6
|
-
function FairmintBrandLogo({
|
|
7
|
-
variant = "black",
|
|
8
|
-
height = 30,
|
|
9
|
-
markSize,
|
|
10
|
-
gap,
|
|
11
|
-
markStyle = "simple",
|
|
12
|
-
markFill,
|
|
13
|
-
markBandCount = 5,
|
|
14
|
-
markBackground = "transparent",
|
|
15
|
-
markGapColor = "transparent",
|
|
16
|
-
className,
|
|
17
|
-
style,
|
|
18
|
-
alt = "Fairmint"
|
|
19
|
-
}) {
|
|
20
|
-
const resolvedMarkSize = markSize ?? defaultBrandLogoMarkSize(height);
|
|
21
|
-
const resolvedGap = gap ?? defaultBrandLogoGap(height);
|
|
22
|
-
const resolvedMarkFill = markFill ?? defaultMarkFillForVariant(variant);
|
|
23
|
-
const wordmarkWidth = wordmarkWidthForHeight(height);
|
|
24
|
-
const hasLabel = alt.length > 0;
|
|
25
|
-
const lockupStyle = {
|
|
26
|
-
display: "inline-flex",
|
|
27
|
-
alignItems: "flex-end",
|
|
28
|
-
gap: resolvedGap,
|
|
29
|
-
lineHeight: 0,
|
|
30
|
-
flexShrink: 0,
|
|
31
|
-
...style
|
|
32
|
-
};
|
|
33
|
-
const lockup = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34
|
-
/* @__PURE__ */ jsx(
|
|
35
|
-
"span",
|
|
36
|
-
{
|
|
37
|
-
"aria-hidden": true,
|
|
38
|
-
style: {
|
|
39
|
-
display: "inline-flex",
|
|
40
|
-
flexShrink: 0,
|
|
41
|
-
width: resolvedMarkSize,
|
|
42
|
-
height: resolvedMarkSize,
|
|
43
|
-
overflow: markStyle === "ribbon" ? "hidden" : void 0
|
|
44
|
-
},
|
|
45
|
-
children: markStyle === "simple" ? /* @__PURE__ */ jsx(FairmintLogoMark, { size: resolvedMarkSize, fill: resolvedMarkFill }) : /* @__PURE__ */ jsx(
|
|
46
|
-
FairmintRibbonMark,
|
|
47
|
-
{
|
|
48
|
-
size: resolvedMarkSize,
|
|
49
|
-
bandCount: markBandCount,
|
|
50
|
-
background: markBackground,
|
|
51
|
-
gapColor: markGapColor
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, children: /* @__PURE__ */ jsx(FairmintLogoGraphic, { variant, width: wordmarkWidth, height, alt: "" }) })
|
|
57
|
-
] });
|
|
58
|
-
if (hasLabel) {
|
|
59
|
-
return /* @__PURE__ */ jsx("span", { role: "img", "aria-label": alt, className, style: lockupStyle, children: lockup });
|
|
60
|
-
}
|
|
61
|
-
return /* @__PURE__ */ jsx("span", { className, style: lockupStyle, children: lockup });
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
FairmintBrandLogo
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=FairmintBrandLogo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FairmintBrandLogo.js","sources":["../../../src/components/FairmintLogo/FairmintBrandLogo.tsx"],"sourcesContent":["import type { CSSProperties } from \"react\";\nimport {\n FairmintRibbonMark,\n type FairmintRibbonMarkProps,\n} from \"../specific/EquityRibbonChart/FairmintRibbonMark\";\nimport type { RibbonBackground } from \"../specific/EquityRibbonChart/ribbonTheme\";\nimport {\n defaultBrandLogoGap,\n defaultBrandLogoMarkSize,\n defaultMarkFillForVariant,\n wordmarkWidthForHeight,\n} from \"./brandLogoLayout\";\nimport { FairmintLogoGraphic, type FairmintLogoVariant } from \"./FairmintLogoGraphic\";\nimport { FairmintLogoMark, type FairmintLogoMarkFill } from \"./FairmintLogoMark\";\n\nexport type { FairmintLogoVariant };\n\nexport type FairmintBrandLogoMarkStyle = \"simple\" | \"ribbon\";\n\nexport interface FairmintBrandLogoProps {\n /**\n * Wordmark color variant.\n * @default \"black\" — monochrome wordmark lets the mark own the color.\n */\n variant?: FairmintLogoVariant;\n /** Wordmark height in pixels. @default 30 */\n height?: number;\n /**\n * Mark size in pixels.\n * @default ~78% of `height` (optical scale vs full wordmark cap height).\n */\n markSize?: number;\n /** Space between mark and wordmark. @default scaled from height (~12px at 30px) */\n gap?: number;\n /**\n * `simple` — flat gradient bars (default, best for nav lockups).\n * `ribbon` — full `FairmintRibbonMark` (better at 64px+).\n */\n markStyle?: FairmintBrandLogoMarkStyle;\n /**\n * Bar fill for the simple mark.\n * @default `gradient` on light backgrounds (`black` / `colored` wordmark), `white` when `variant=\"white\"`.\n */\n markFill?: FairmintLogoMarkFill;\n /** Ribbons in the ribbon mark (1–5). Only when `markStyle=\"ribbon\"`. @default 5 */\n markBandCount?: FairmintRibbonMarkProps[\"bandCount\"];\n /** Mark canvas behind ribbons. Only when `markStyle=\"ribbon\"`. @default \"transparent\" */\n markBackground?: RibbonBackground;\n /** Seam color between ribbons. Only when `markStyle=\"ribbon\"`. @default \"transparent\" */\n markGapColor?: FairmintRibbonMarkProps[\"gapColor\"];\n /** Additional class name on the lockup wrapper. */\n className?: string;\n style?: CSSProperties;\n /** Accessible name for the combined logo. @default \"Fairmint\" */\n alt?: string;\n}\n\nexport function FairmintBrandLogo({\n variant = \"black\",\n height = 30,\n markSize,\n gap,\n markStyle = \"simple\",\n markFill,\n markBandCount = 5,\n markBackground = \"transparent\",\n markGapColor = \"transparent\",\n className,\n style,\n alt = \"Fairmint\",\n}: FairmintBrandLogoProps) {\n const resolvedMarkSize = markSize ?? defaultBrandLogoMarkSize(height);\n const resolvedGap = gap ?? defaultBrandLogoGap(height);\n const resolvedMarkFill = markFill ?? defaultMarkFillForVariant(variant);\n const wordmarkWidth = wordmarkWidthForHeight(height);\n const hasLabel = alt.length > 0;\n const lockupStyle = {\n display: \"inline-flex\",\n alignItems: \"flex-end\",\n gap: resolvedGap,\n lineHeight: 0,\n flexShrink: 0,\n ...style,\n } as const;\n\n const lockup = (\n <>\n <span\n aria-hidden\n style={{\n display: \"inline-flex\",\n flexShrink: 0,\n width: resolvedMarkSize,\n height: resolvedMarkSize,\n overflow: markStyle === \"ribbon\" ? \"hidden\" : undefined,\n }}\n >\n {markStyle === \"simple\" ? (\n <FairmintLogoMark size={resolvedMarkSize} fill={resolvedMarkFill} />\n ) : (\n <FairmintRibbonMark\n size={resolvedMarkSize}\n bandCount={markBandCount}\n background={markBackground}\n gapColor={markGapColor}\n />\n )}\n </span>\n <span aria-hidden>\n <FairmintLogoGraphic variant={variant} width={wordmarkWidth} height={height} alt=\"\" />\n </span>\n </>\n );\n\n if (hasLabel) {\n return (\n <span role=\"img\" aria-label={alt} className={className} style={lockupStyle}>\n {lockup}\n </span>\n );\n }\n\n return (\n <span className={className} style={lockupStyle}>\n {lockup}\n </span>\n );\n}\n"],"names":[],"mappings":";;;;;AAyDO,SAAS,kBAAkB;AAAA,EAChC,UAAU;AAAA,EACV,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,MAAM;AACR,GAA2B;AACzB,QAAM,mBAAmB,YAAY,yBAAyB,MAAM;AACpE,QAAM,cAAc,OAAO,oBAAoB,MAAM;AACrD,QAAM,mBAAmB,YAAY,0BAA0B,OAAO;AACtE,QAAM,gBAAgB,uBAAuB,MAAM;AACnD,QAAM,WAAW,IAAI,SAAS;AAC9B,QAAM,cAAc;AAAA,IAClB,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA;AAGL,QAAM,SACJ,qBAAA,UAAA,EACE,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,eAAW;AAAA,QACX,OAAO;AAAA,UACL,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,UAAU,cAAc,WAAW,WAAW;AAAA,QAAA;AAAA,QAG/C,UAAA,cAAc,WACb,oBAAC,kBAAA,EAAiB,MAAM,kBAAkB,MAAM,kBAAkB,IAElE;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAM;AAAA,YACN,WAAW;AAAA,YACX,YAAY;AAAA,YACZ,UAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA;AAAA,IAGJ,oBAAC,QAAA,EAAK,eAAW,MACf,UAAA,oBAAC,qBAAA,EAAoB,SAAkB,OAAO,eAAe,QAAgB,KAAI,GAAA,CAAG,EAAA,CACtF;AAAA,EAAA,GACF;AAGF,MAAI,UAAU;AACZ,WACE,oBAAC,UAAK,MAAK,OAAM,cAAY,KAAK,WAAsB,OAAO,aAC5D,UAAA,OAAA,CACH;AAAA,EAEJ;AAEA,SACE,oBAAC,QAAA,EAAK,WAAsB,OAAO,aAChC,UAAA,QACH;AAEJ;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const logo = require("../../theme/logo.cjs");
|
|
4
|
-
function defaultMarkFillForVariant(variant) {
|
|
5
|
-
if (variant === "white") {
|
|
6
|
-
return "white";
|
|
7
|
-
}
|
|
8
|
-
return "gradient";
|
|
9
|
-
}
|
|
10
|
-
function wordmarkWidthForHeight(height) {
|
|
11
|
-
return Math.round(height * logo.LOGO_VIEWBOX.width / logo.LOGO_VIEWBOX.height);
|
|
12
|
-
}
|
|
13
|
-
const BRAND_LOGO_MARK_SIZE_RATIO = 0.78;
|
|
14
|
-
function defaultBrandLogoMarkSize(height) {
|
|
15
|
-
return Math.max(16, Math.round(height * BRAND_LOGO_MARK_SIZE_RATIO));
|
|
16
|
-
}
|
|
17
|
-
function defaultBrandLogoGap(height) {
|
|
18
|
-
return Math.max(6, Math.round(height * (12 / 30)));
|
|
19
|
-
}
|
|
20
|
-
exports.BRAND_LOGO_MARK_SIZE_RATIO = BRAND_LOGO_MARK_SIZE_RATIO;
|
|
21
|
-
exports.defaultBrandLogoGap = defaultBrandLogoGap;
|
|
22
|
-
exports.defaultBrandLogoMarkSize = defaultBrandLogoMarkSize;
|
|
23
|
-
exports.defaultMarkFillForVariant = defaultMarkFillForVariant;
|
|
24
|
-
exports.wordmarkWidthForHeight = wordmarkWidthForHeight;
|
|
25
|
-
//# sourceMappingURL=brandLogoLayout.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brandLogoLayout.cjs","sources":["../../../src/components/FairmintLogo/brandLogoLayout.ts"],"sourcesContent":["import { LOGO_VIEWBOX } from \"../../theme/logo\";\nimport type { FairmintLogoVariant } from \"./FairmintLogoGraphic\";\nimport type { FairmintLogoMarkFill } from \"./FairmintLogoMark\";\n\n/** Mark fill paired with each wordmark variant when `markFill` is omitted. */\nexport function defaultMarkFillForVariant(variant: FairmintLogoVariant): FairmintLogoMarkFill {\n if (variant === \"white\") {\n return \"white\";\n }\n return \"gradient\";\n}\n\n/** Wordmark width that preserves canonical 215×48 aspect ratio at a given height. */\nexport function wordmarkWidthForHeight(height: number): number {\n return Math.round((height * LOGO_VIEWBOX.width) / LOGO_VIEWBOX.height);\n}\n\n/**\n * Mark scales to ~78% of wordmark height so the symbol supports the name\n * without competing with the ascenders.\n */\nexport const BRAND_LOGO_MARK_SIZE_RATIO = 0.78;\n\n/** Default ribbon mark size for a lockup at the given wordmark height. */\nexport function defaultBrandLogoMarkSize(height: number): number {\n return Math.max(16, Math.round(height * BRAND_LOGO_MARK_SIZE_RATIO));\n}\n\n/**\n * Gap between ribbon mark and wordmark (~12px at 30px wordmark height).\n * Wider than a tight icon+text pair so the lockup reads as mark → name.\n */\nexport function defaultBrandLogoGap(height: number): number {\n return Math.max(6, Math.round(height * (12 / 30)));\n}\n"],"names":["LOGO_VIEWBOX"],"mappings":";;;AAKO,SAAS,0BAA0B,SAAoD;AAC5F,MAAI,YAAY,SAAS;AACvB,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAGO,SAAS,uBAAuB,QAAwB;AAC7D,SAAO,KAAK,MAAO,SAASA,KAAAA,aAAa,QAASA,KAAAA,aAAa,MAAM;AACvE;AAMO,MAAM,6BAA6B;AAGnC,SAAS,yBAAyB,QAAwB;AAC/D,SAAO,KAAK,IAAI,IAAI,KAAK,MAAM,SAAS,0BAA0B,CAAC;AACrE;AAMO,SAAS,oBAAoB,QAAwB;AAC1D,SAAO,KAAK,IAAI,GAAG,KAAK,MAAM,UAAU,KAAK,GAAG,CAAC;AACnD;;;;;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FairmintLogoVariant } from './FairmintLogoGraphic';
|
|
2
|
-
import { FairmintLogoMarkFill } from './FairmintLogoMark';
|
|
3
|
-
/** Mark fill paired with each wordmark variant when `markFill` is omitted. */
|
|
4
|
-
export declare function defaultMarkFillForVariant(variant: FairmintLogoVariant): FairmintLogoMarkFill;
|
|
5
|
-
/** Wordmark width that preserves canonical 215×48 aspect ratio at a given height. */
|
|
6
|
-
export declare function wordmarkWidthForHeight(height: number): number;
|
|
7
|
-
/**
|
|
8
|
-
* Mark scales to ~78% of wordmark height so the symbol supports the name
|
|
9
|
-
* without competing with the ascenders.
|
|
10
|
-
*/
|
|
11
|
-
export declare const BRAND_LOGO_MARK_SIZE_RATIO = 0.78;
|
|
12
|
-
/** Default ribbon mark size for a lockup at the given wordmark height. */
|
|
13
|
-
export declare function defaultBrandLogoMarkSize(height: number): number;
|
|
14
|
-
/**
|
|
15
|
-
* Gap between ribbon mark and wordmark (~12px at 30px wordmark height).
|
|
16
|
-
* Wider than a tight icon+text pair so the lockup reads as mark → name.
|
|
17
|
-
*/
|
|
18
|
-
export declare function defaultBrandLogoGap(height: number): number;
|
|
19
|
-
//# sourceMappingURL=brandLogoLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brandLogoLayout.d.ts","sourceRoot":"","sources":["../../../src/components/FairmintLogo/brandLogoLayout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,mBAAmB,GAAG,oBAAoB,CAK5F;AAED,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C,0EAA0E;AAC1E,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1D"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { LOGO_VIEWBOX } from "../../theme/logo.js";
|
|
2
|
-
function defaultMarkFillForVariant(variant) {
|
|
3
|
-
if (variant === "white") {
|
|
4
|
-
return "white";
|
|
5
|
-
}
|
|
6
|
-
return "gradient";
|
|
7
|
-
}
|
|
8
|
-
function wordmarkWidthForHeight(height) {
|
|
9
|
-
return Math.round(height * LOGO_VIEWBOX.width / LOGO_VIEWBOX.height);
|
|
10
|
-
}
|
|
11
|
-
const BRAND_LOGO_MARK_SIZE_RATIO = 0.78;
|
|
12
|
-
function defaultBrandLogoMarkSize(height) {
|
|
13
|
-
return Math.max(16, Math.round(height * BRAND_LOGO_MARK_SIZE_RATIO));
|
|
14
|
-
}
|
|
15
|
-
function defaultBrandLogoGap(height) {
|
|
16
|
-
return Math.max(6, Math.round(height * (12 / 30)));
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
BRAND_LOGO_MARK_SIZE_RATIO,
|
|
20
|
-
defaultBrandLogoGap,
|
|
21
|
-
defaultBrandLogoMarkSize,
|
|
22
|
-
defaultMarkFillForVariant,
|
|
23
|
-
wordmarkWidthForHeight
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=brandLogoLayout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brandLogoLayout.js","sources":["../../../src/components/FairmintLogo/brandLogoLayout.ts"],"sourcesContent":["import { LOGO_VIEWBOX } from \"../../theme/logo\";\nimport type { FairmintLogoVariant } from \"./FairmintLogoGraphic\";\nimport type { FairmintLogoMarkFill } from \"./FairmintLogoMark\";\n\n/** Mark fill paired with each wordmark variant when `markFill` is omitted. */\nexport function defaultMarkFillForVariant(variant: FairmintLogoVariant): FairmintLogoMarkFill {\n if (variant === \"white\") {\n return \"white\";\n }\n return \"gradient\";\n}\n\n/** Wordmark width that preserves canonical 215×48 aspect ratio at a given height. */\nexport function wordmarkWidthForHeight(height: number): number {\n return Math.round((height * LOGO_VIEWBOX.width) / LOGO_VIEWBOX.height);\n}\n\n/**\n * Mark scales to ~78% of wordmark height so the symbol supports the name\n * without competing with the ascenders.\n */\nexport const BRAND_LOGO_MARK_SIZE_RATIO = 0.78;\n\n/** Default ribbon mark size for a lockup at the given wordmark height. */\nexport function defaultBrandLogoMarkSize(height: number): number {\n return Math.max(16, Math.round(height * BRAND_LOGO_MARK_SIZE_RATIO));\n}\n\n/**\n * Gap between ribbon mark and wordmark (~12px at 30px wordmark height).\n * Wider than a tight icon+text pair so the lockup reads as mark → name.\n */\nexport function defaultBrandLogoGap(height: number): number {\n return Math.max(6, Math.round(height * (12 / 30)));\n}\n"],"names":[],"mappings":";AAKO,SAAS,0BAA0B,SAAoD;AAC5F,MAAI,YAAY,SAAS;AACvB,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAGO,SAAS,uBAAuB,QAAwB;AAC7D,SAAO,KAAK,MAAO,SAAS,aAAa,QAAS,aAAa,MAAM;AACvE;AAMO,MAAM,6BAA6B;AAGnC,SAAS,yBAAyB,QAAwB;AAC/D,SAAO,KAAK,IAAI,IAAI,KAAK,MAAM,SAAS,0BAA0B,CAAC;AACrE;AAMO,SAAS,oBAAoB,QAAwB;AAC1D,SAAO,KAAK,IAAI,GAAG,KAAK,MAAM,UAAU,KAAK,GAAG,CAAC;AACnD;"}
|