mbt-ui-kit 0.1.19 → 0.1.21
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/.ai/agent-examples/README.md +23 -0
- package/.ai/agent-reference/README.md +1 -0
- package/.ai/agent-rules/README.md +1 -0
- package/dist/components/badge/badge.d.ts +9 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/boost-icon.d.ts +2 -0
- package/dist/components/badge/boost-icon.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/purchasable-icon.d.ts +2 -0
- package/dist/components/badge/purchasable-icon.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +1 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +197 -112
- package/dist/styles/mbt-ui-kit.css +1 -1
- package/dist/styles/tokens.css +1 -1
- package/dist/styles/tokens.d.ts +2 -2
- package/dist/{tokens-jzw6MWKU.js → tokens-C9wefV-c.js} +1 -1
- package/dist/{tokens-Bg607ibr.cjs → tokens-DbQnrzz6.cjs} +1 -1
- package/dist/tokens-only.cjs +1 -1
- package/dist/tokens-only.mjs +1 -1
- package/package.json +1 -1
- package/src/styles/_tokens.scss +1 -1
|
@@ -57,6 +57,26 @@ const preloadFonts = [plexSansRegularUrl, plexSansMediumUrl, interVariableUrl];
|
|
|
57
57
|
<Button type="button" onClick={handleOpenSettings}>
|
|
58
58
|
<SettingsIcon /> Settings
|
|
59
59
|
</Button>
|
|
60
|
+
|
|
61
|
+
<Button>
|
|
62
|
+
Some text <SearchIcon /> Search
|
|
63
|
+
</Button>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Badges
|
|
67
|
+
|
|
68
|
+
```tsx
|
|
69
|
+
<Badge>1200</Badge>
|
|
70
|
+
|
|
71
|
+
<Badge icon={<CrystalIcon />}>1200</Badge>
|
|
72
|
+
|
|
73
|
+
<Badge icon={<CrystalIcon />} purchasable>
|
|
74
|
+
1200
|
|
75
|
+
</Badge>
|
|
76
|
+
|
|
77
|
+
<Badge icon={<CrystalIcon />} boost>
|
|
78
|
+
1200
|
|
79
|
+
</Badge>
|
|
60
80
|
```
|
|
61
81
|
|
|
62
82
|
## Inputs
|
|
@@ -81,6 +101,9 @@ const preloadFonts = [plexSansRegularUrl, plexSansMediumUrl, interVariableUrl];
|
|
|
81
101
|
<Text strong>Highlighted text.</Text>
|
|
82
102
|
<Text small muted>Secondary caption.</Text>
|
|
83
103
|
<Text label>Role</Text>
|
|
104
|
+
<Text>
|
|
105
|
+
Some text <SearchIcon /> more text
|
|
106
|
+
</Text>
|
|
84
107
|
|
|
85
108
|
<Metric>1,234</Metric>
|
|
86
109
|
<Metric large>42,500</Metric>
|
|
@@ -26,6 +26,7 @@ These files are the canonical package-owned rules for `mbt-ui-kit`.
|
|
|
26
26
|
## Component Guidance
|
|
27
27
|
|
|
28
28
|
- Use `Button` for shared button behavior instead of recreating button primitives.
|
|
29
|
+
- Use `Badge` for compact pill-style value labels with optional left media and package-owned purchasable or boost affordances.
|
|
29
30
|
- Use `Input` for labeled text inputs and search-style input affordances.
|
|
30
31
|
- Use `Heading`, `Text`, and `Metric` for typography when the consumer wants the package typography primitives.
|
|
31
32
|
- Use `MenuButton` for sidebar or navigation-style button treatments, not as a generic replacement for every button.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface BadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
purchasable?: boolean;
|
|
6
|
+
boost?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function Badge({ children, icon, purchasable, boost, className, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,IAAI,EACJ,WAAmB,EACnB,KAAa,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,UAAU,2CAoCZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boost-icon.d.ts","sourceRoot":"","sources":["../../../src/components/badge/boost-icon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,4CAoBxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchasable-icon.d.ts","sourceRoot":"","sources":["../../../src/components/badge/purchasable-icon.tsx"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,4CAwB9B"}
|
|
@@ -4,7 +4,6 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
4
4
|
fullWidth?: boolean;
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
variant?: 'primary' | 'secondary';
|
|
7
|
-
rounded?: boolean;
|
|
8
7
|
}
|
|
9
|
-
export declare function Button({ children, fullWidth,
|
|
8
|
+
export declare function Button({ children, fullWidth, disabled, loading, variant, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACnC;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,OAAO,EACP,OAAmB,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,2CAyBb"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./tokens-DbQnrzz6.cjs"),t=require("react/jsx-runtime"),h=require("react");function p({size:s="md",className:e,...n}){const o=["mbt-loader",`mbt-loader--${s}`,e].filter(Boolean).join(" ");return t.jsxs("span",{className:o,...n,children:[t.jsx("span",{className:"mbt-loader__dot"}),t.jsx("span",{className:"mbt-loader__dot"}),t.jsx("span",{className:"mbt-loader__dot"})]})}function L({children:s,fullWidth:e,disabled:n,loading:o,variant:a="primary",className:i,...r}){const l=n||o,d=["mbt-button",a&&`mbt-button--${a}`,e&&"mbt-button--full-width",n&&"mbt-button--disabled",o&&"mbt-button--loading",i].filter(Boolean).join(" ");return t.jsxs("button",{type:"button",className:d,disabled:l,...r,children:[t.jsx("span",{className:"mbt-button__content",children:s}),o&&t.jsx(p,{size:"md",className:"mbt-button__loader"})]})}function B({level:s,children:e,className:n,...o}){const a=`h${s}`,i=[`mbt-h${s}`,n].filter(Boolean).join(" ");return t.jsx(a,{className:i,...o,children:e})}function v({children:s,large:e=!1,muted:n=!1,as:o="div",className:a,...i}){const r=o,l=["mbt-metric",e&&"mbt-metric--large",n&&"mbt-metric--muted",a].filter(Boolean).join(" ");return t.jsx(r,{className:l,...i,children:s})}function x({children:s,strong:e=!1,small:n=!1,label:o=!1,muted:a=!1,disableFontFeatures:i=!1,as:r="p",className:l,...d}){const u=r,m=["mbt-text",e&&"mbt-text--strong",n&&"mbt-text--small",o&&"mbt-text--label",a&&"mbt-text--muted",i&&"mbt-text--no-features",l].filter(Boolean).join(" ");return t.jsx(u,{className:m,...d,children:s})}function I(){return t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("path",{d:"M12 4L19 10.5L16.5 12.5L12 8.5L7.5 12.5L5 10.5L12 4Z",fill:"currentColor"}),t.jsx("path",{d:"M12 9L19 15.5L16.5 17.5L12 13.5L7.5 17.5L5 15.5L12 9Z",fill:"currentColor"})]})}function C(){return t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("path",{d:"M8 3V13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),t.jsx("path",{d:"M3 8H13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function M({children:s,icon:e,purchasable:n=!1,boost:o=!1,className:a,...i}){const r=!!e,l=r&&n,d=["mbt-badge",r&&"mbt-badge--with-icon",n&&"mbt-badge--purchasable",o&&"mbt-badge--boost",a].filter(Boolean).join(" ");return t.jsxs("div",{className:d,...i,children:[r&&t.jsxs("span",{className:"mbt-badge__media",children:[t.jsx("span",{className:"mbt-badge__icon",children:e}),l&&t.jsx("span",{className:"mbt-badge__purchasable","aria-hidden":"true",children:t.jsx(C,{})})]}),t.jsx(x,{as:"span",disableFontFeatures:!0,strong:!0,className:"mbt-badge__content",children:s}),o&&t.jsx("span",{className:"mbt-badge__boost","aria-hidden":"true",children:t.jsx(I,{})})]})}function j({className:s,title:e="Search"}){return t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,role:"img","aria-label":e,children:[t.jsx("title",{children:e}),t.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"m21 21-4.34-4.34",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}const f=h.forwardRef(({label:s,muted:e=!1,showSearchIcon:n=!1,icon:o,fullWidth:a=!1,className:i,...r},l)=>{const d=h.useId(),u=r.id??d,m=["mbt-input",a&&"mbt-input--full-width",i].filter(Boolean).join(" "),_=["mbt-input__label",e&&"mbt-input__label--muted"].filter(Boolean).join(" "),N=["mbt-input__wrapper",e&&"mbt-input__wrapper--muted"].filter(Boolean).join(" "),w=["mbt-input__field",e&&"mbt-input__field--muted"].filter(Boolean).join(" "),k=["mbt-input__icon",e&&"mbt-input__icon--muted"].filter(Boolean).join(" "),b=o||n&&t.jsx(j,{});return t.jsx("div",{className:m,children:t.jsxs("div",{className:"mbt-input__container",children:[s&&t.jsx("label",{htmlFor:u,className:_,children:s}),t.jsxs("div",{className:N,children:[t.jsx("input",{ref:l,id:u,type:"text",className:w,...r}),b&&t.jsx("div",{className:k,children:b})]})]})})});f.displayName="Input";function g({className:s,title:e="Graduation cap"}){return t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,role:"img","aria-label":e,children:[t.jsx("title",{children:e}),t.jsx("path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M22 10v6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function y({children:s,icon:e,selected:n=!1,small:o=!1,disabled:a,className:i,...r}){const l=["mbt-menu-button",n&&"mbt-menu-button--selected",o&&"mbt-menu-button--small",i].filter(Boolean).join(" "),d=e??t.jsx(g,{});return t.jsxs("button",{type:"button",className:l,disabled:a,"aria-pressed":n,...r,children:[t.jsx("div",{className:"mbt-menu-button__icon",children:d}),t.jsx("span",{className:"mbt-menu-button__text",children:s})]})}exports.colors=c.colors;exports.fontFeatures=c.fontFeatures;exports.fontSizes=c.fontSizes;exports.fontWeights=c.fontWeights;exports.fonts=c.fonts;exports.radius=c.radius;exports.spacing=c.spacing;exports.tokens=c.tokens;exports.transitions=c.transitions;exports.zIndex=c.zIndex;exports.Badge=M;exports.Button=L;exports.GraduationCapIcon=g;exports.Heading=B;exports.Input=f;exports.Loader=p;exports.MenuButton=y;exports.Metric=v;exports.SearchIcon=j;exports.Text=x;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import './styles/index.scss';
|
|
2
2
|
export type { ButtonProps } from './components/button';
|
|
3
3
|
export { Button } from './components/button';
|
|
4
|
+
export type { BadgeProps } from './components/badge';
|
|
5
|
+
export { Badge } from './components/badge';
|
|
4
6
|
export type { InputProps } from './components/input';
|
|
5
7
|
export { Input, SearchIcon } from './components/input';
|
|
6
8
|
export type { LoaderProps } from './components/loader';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EACV,YAAY,EACZ,WAAW,EACX,SAAS,GACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EACV,KAAK,EACL,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,EACN,OAAO,EACP,UAAU,EACV,MAAM,GACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,MAAM,GACP,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EACV,YAAY,EACZ,WAAW,EACX,SAAS,GACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EACV,KAAK,EACL,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,EACN,OAAO,EACP,UAAU,EACV,MAAM,GACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,MAAM,GACP,MAAM,iBAAiB,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,48 +1,179 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as S, f as G, a as H, b as P, d as V, r as Z, s as D, t as R, e as q, z as A } from "./tokens-C9wefV-c.js";
|
|
2
2
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */ c("span", { className:
|
|
3
|
+
import { forwardRef as g, useId as N } from "react";
|
|
4
|
+
function w({ size: n = "md", className: e, ...s }) {
|
|
5
|
+
const o = ["mbt-loader", `mbt-loader--${n}`, e].filter(Boolean).join(" ");
|
|
6
|
+
return /* @__PURE__ */ c("span", { className: o, ...s, children: [
|
|
7
7
|
/* @__PURE__ */ t("span", { className: "mbt-loader__dot" }),
|
|
8
8
|
/* @__PURE__ */ t("span", { className: "mbt-loader__dot" }),
|
|
9
9
|
/* @__PURE__ */ t("span", { className: "mbt-loader__dot" })
|
|
10
10
|
] });
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function y({
|
|
13
13
|
children: n,
|
|
14
14
|
fullWidth: e,
|
|
15
|
-
rounded: o = !0,
|
|
16
15
|
disabled: s,
|
|
17
|
-
loading:
|
|
18
|
-
variant:
|
|
16
|
+
loading: o,
|
|
17
|
+
variant: a = "primary",
|
|
19
18
|
className: i,
|
|
20
|
-
...
|
|
19
|
+
...r
|
|
21
20
|
}) {
|
|
22
|
-
const
|
|
21
|
+
const l = s || o, d = [
|
|
23
22
|
"mbt-button",
|
|
24
|
-
|
|
23
|
+
a && `mbt-button--${a}`,
|
|
25
24
|
e && "mbt-button--full-width",
|
|
26
|
-
!o && "mbt-button--diagonal",
|
|
27
25
|
s && "mbt-button--disabled",
|
|
28
|
-
|
|
26
|
+
o && "mbt-button--loading",
|
|
29
27
|
i
|
|
30
28
|
].filter(Boolean).join(" ");
|
|
31
29
|
return /* @__PURE__ */ c(
|
|
32
30
|
"button",
|
|
33
31
|
{
|
|
34
32
|
type: "button",
|
|
35
|
-
className:
|
|
36
|
-
disabled:
|
|
37
|
-
...
|
|
33
|
+
className: d,
|
|
34
|
+
disabled: l,
|
|
35
|
+
...r,
|
|
38
36
|
children: [
|
|
39
37
|
/* @__PURE__ */ t("span", { className: "mbt-button__content", children: n }),
|
|
40
|
-
|
|
38
|
+
o && /* @__PURE__ */ t(w, { size: "md", className: "mbt-button__loader" })
|
|
41
39
|
]
|
|
42
40
|
}
|
|
43
41
|
);
|
|
44
42
|
}
|
|
45
|
-
function
|
|
43
|
+
function M({
|
|
44
|
+
level: n,
|
|
45
|
+
children: e,
|
|
46
|
+
className: s,
|
|
47
|
+
...o
|
|
48
|
+
}) {
|
|
49
|
+
const a = `h${n}`, i = [`mbt-h${n}`, s].filter(Boolean).join(" ");
|
|
50
|
+
return /* @__PURE__ */ t(a, { className: i, ...o, children: e });
|
|
51
|
+
}
|
|
52
|
+
function W({
|
|
53
|
+
children: n,
|
|
54
|
+
large: e = !1,
|
|
55
|
+
muted: s = !1,
|
|
56
|
+
as: o = "div",
|
|
57
|
+
className: a,
|
|
58
|
+
...i
|
|
59
|
+
}) {
|
|
60
|
+
const r = o, l = [
|
|
61
|
+
"mbt-metric",
|
|
62
|
+
e && "mbt-metric--large",
|
|
63
|
+
s && "mbt-metric--muted",
|
|
64
|
+
a
|
|
65
|
+
].filter(Boolean).join(" ");
|
|
66
|
+
return /* @__PURE__ */ t(r, { className: l, ...i, children: n });
|
|
67
|
+
}
|
|
68
|
+
function k({
|
|
69
|
+
children: n,
|
|
70
|
+
strong: e = !1,
|
|
71
|
+
small: s = !1,
|
|
72
|
+
label: o = !1,
|
|
73
|
+
muted: a = !1,
|
|
74
|
+
disableFontFeatures: i = !1,
|
|
75
|
+
as: r = "p",
|
|
76
|
+
className: l,
|
|
77
|
+
...d
|
|
78
|
+
}) {
|
|
79
|
+
const m = r, u = [
|
|
80
|
+
"mbt-text",
|
|
81
|
+
e && "mbt-text--strong",
|
|
82
|
+
s && "mbt-text--small",
|
|
83
|
+
o && "mbt-text--label",
|
|
84
|
+
a && "mbt-text--muted",
|
|
85
|
+
i && "mbt-text--no-features",
|
|
86
|
+
l
|
|
87
|
+
].filter(Boolean).join(" ");
|
|
88
|
+
return /* @__PURE__ */ t(m, { className: u, ...d, children: n });
|
|
89
|
+
}
|
|
90
|
+
function L() {
|
|
91
|
+
return /* @__PURE__ */ c(
|
|
92
|
+
"svg",
|
|
93
|
+
{
|
|
94
|
+
width: "24",
|
|
95
|
+
height: "24",
|
|
96
|
+
viewBox: "0 0 24 24",
|
|
97
|
+
fill: "none",
|
|
98
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
+
"aria-hidden": "true",
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ t(
|
|
102
|
+
"path",
|
|
103
|
+
{
|
|
104
|
+
d: "M12 4L19 10.5L16.5 12.5L12 8.5L7.5 12.5L5 10.5L12 4Z",
|
|
105
|
+
fill: "currentColor"
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ t(
|
|
109
|
+
"path",
|
|
110
|
+
{
|
|
111
|
+
d: "M12 9L19 15.5L16.5 17.5L12 13.5L7.5 17.5L5 15.5L12 9Z",
|
|
112
|
+
fill: "currentColor"
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function x() {
|
|
120
|
+
return /* @__PURE__ */ c(
|
|
121
|
+
"svg",
|
|
122
|
+
{
|
|
123
|
+
width: "16",
|
|
124
|
+
height: "16",
|
|
125
|
+
viewBox: "0 0 16 16",
|
|
126
|
+
fill: "none",
|
|
127
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
128
|
+
"aria-hidden": "true",
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ t(
|
|
131
|
+
"path",
|
|
132
|
+
{
|
|
133
|
+
d: "M8 3V13",
|
|
134
|
+
stroke: "currentColor",
|
|
135
|
+
strokeWidth: "2",
|
|
136
|
+
strokeLinecap: "round"
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ t(
|
|
140
|
+
"path",
|
|
141
|
+
{
|
|
142
|
+
d: "M3 8H13",
|
|
143
|
+
stroke: "currentColor",
|
|
144
|
+
strokeWidth: "2",
|
|
145
|
+
strokeLinecap: "round"
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function z({
|
|
153
|
+
children: n,
|
|
154
|
+
icon: e,
|
|
155
|
+
purchasable: s = !1,
|
|
156
|
+
boost: o = !1,
|
|
157
|
+
className: a,
|
|
158
|
+
...i
|
|
159
|
+
}) {
|
|
160
|
+
const r = !!e, l = r && s, d = [
|
|
161
|
+
"mbt-badge",
|
|
162
|
+
r && "mbt-badge--with-icon",
|
|
163
|
+
s && "mbt-badge--purchasable",
|
|
164
|
+
o && "mbt-badge--boost",
|
|
165
|
+
a
|
|
166
|
+
].filter(Boolean).join(" ");
|
|
167
|
+
return /* @__PURE__ */ c("div", { className: d, ...i, children: [
|
|
168
|
+
r && /* @__PURE__ */ c("span", { className: "mbt-badge__media", children: [
|
|
169
|
+
/* @__PURE__ */ t("span", { className: "mbt-badge__icon", children: e }),
|
|
170
|
+
l && /* @__PURE__ */ t("span", { className: "mbt-badge__purchasable", "aria-hidden": "true", children: /* @__PURE__ */ t(x, {}) })
|
|
171
|
+
] }),
|
|
172
|
+
/* @__PURE__ */ t(k, { as: "span", disableFontFeatures: !0, strong: !0, className: "mbt-badge__content", children: n }),
|
|
173
|
+
o && /* @__PURE__ */ t("span", { className: "mbt-badge__boost", "aria-hidden": "true", children: /* @__PURE__ */ t(L, {}) })
|
|
174
|
+
] });
|
|
175
|
+
}
|
|
176
|
+
function B({ className: n, title: e = "Search" }) {
|
|
46
177
|
return /* @__PURE__ */ c(
|
|
47
178
|
"svg",
|
|
48
179
|
{
|
|
@@ -82,41 +213,41 @@ function x({ className: n, title: e = "Search" }) {
|
|
|
82
213
|
}
|
|
83
214
|
);
|
|
84
215
|
}
|
|
85
|
-
const j =
|
|
216
|
+
const j = g(
|
|
86
217
|
({
|
|
87
218
|
label: n,
|
|
88
219
|
muted: e = !1,
|
|
89
|
-
showSearchIcon:
|
|
90
|
-
icon:
|
|
220
|
+
showSearchIcon: s = !1,
|
|
221
|
+
icon: o,
|
|
91
222
|
fullWidth: a = !1,
|
|
92
|
-
className:
|
|
93
|
-
...
|
|
223
|
+
className: i,
|
|
224
|
+
...r
|
|
94
225
|
}, l) => {
|
|
95
|
-
const
|
|
226
|
+
const d = N(), m = r.id ?? d, u = [
|
|
96
227
|
"mbt-input",
|
|
97
228
|
a && "mbt-input--full-width",
|
|
98
|
-
|
|
99
|
-
].filter(Boolean).join(" "),
|
|
229
|
+
i
|
|
230
|
+
].filter(Boolean).join(" "), h = [
|
|
100
231
|
"mbt-input__label",
|
|
101
232
|
e && "mbt-input__label--muted"
|
|
102
|
-
].filter(Boolean).join(" "),
|
|
233
|
+
].filter(Boolean).join(" "), p = [
|
|
103
234
|
"mbt-input__wrapper",
|
|
104
235
|
e && "mbt-input__wrapper--muted"
|
|
105
|
-
].filter(Boolean).join(" "),
|
|
236
|
+
].filter(Boolean).join(" "), f = [
|
|
106
237
|
"mbt-input__field",
|
|
107
238
|
e && "mbt-input__field--muted"
|
|
108
|
-
].filter(Boolean).join(" "), _ = ["mbt-input__icon", e && "mbt-input__icon--muted"].filter(Boolean).join(" "), b =
|
|
109
|
-
return /* @__PURE__ */ t("div", { className:
|
|
110
|
-
n && /* @__PURE__ */ t("label", { htmlFor:
|
|
111
|
-
/* @__PURE__ */ c("div", { className:
|
|
239
|
+
].filter(Boolean).join(" "), _ = ["mbt-input__icon", e && "mbt-input__icon--muted"].filter(Boolean).join(" "), b = o || s && /* @__PURE__ */ t(B, {});
|
|
240
|
+
return /* @__PURE__ */ t("div", { className: u, children: /* @__PURE__ */ c("div", { className: "mbt-input__container", children: [
|
|
241
|
+
n && /* @__PURE__ */ t("label", { htmlFor: m, className: h, children: n }),
|
|
242
|
+
/* @__PURE__ */ c("div", { className: p, children: [
|
|
112
243
|
/* @__PURE__ */ t(
|
|
113
244
|
"input",
|
|
114
245
|
{
|
|
115
246
|
ref: l,
|
|
116
|
-
id:
|
|
247
|
+
id: m,
|
|
117
248
|
type: "text",
|
|
118
|
-
className:
|
|
119
|
-
...
|
|
249
|
+
className: f,
|
|
250
|
+
...r
|
|
120
251
|
}
|
|
121
252
|
),
|
|
122
253
|
b && /* @__PURE__ */ t("div", { className: _, children: b })
|
|
@@ -125,7 +256,7 @@ const j = N(
|
|
|
125
256
|
}
|
|
126
257
|
);
|
|
127
258
|
j.displayName = "Input";
|
|
128
|
-
function
|
|
259
|
+
function v({
|
|
129
260
|
className: n,
|
|
130
261
|
title: e = "Graduation cap"
|
|
131
262
|
}) {
|
|
@@ -176,20 +307,20 @@ function w({
|
|
|
176
307
|
}
|
|
177
308
|
);
|
|
178
309
|
}
|
|
179
|
-
function
|
|
310
|
+
function F({
|
|
180
311
|
children: n,
|
|
181
312
|
icon: e,
|
|
182
|
-
selected:
|
|
183
|
-
small:
|
|
313
|
+
selected: s = !1,
|
|
314
|
+
small: o = !1,
|
|
184
315
|
disabled: a,
|
|
185
|
-
className:
|
|
186
|
-
...
|
|
316
|
+
className: i,
|
|
317
|
+
...r
|
|
187
318
|
}) {
|
|
188
319
|
const l = [
|
|
189
320
|
"mbt-menu-button",
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
321
|
+
s && "mbt-menu-button--selected",
|
|
322
|
+
o && "mbt-menu-button--small",
|
|
323
|
+
i
|
|
193
324
|
].filter(Boolean).join(" ");
|
|
194
325
|
return /* @__PURE__ */ c(
|
|
195
326
|
"button",
|
|
@@ -197,80 +328,34 @@ function C({
|
|
|
197
328
|
type: "button",
|
|
198
329
|
className: l,
|
|
199
330
|
disabled: a,
|
|
200
|
-
"aria-pressed":
|
|
201
|
-
...
|
|
331
|
+
"aria-pressed": s,
|
|
332
|
+
...r,
|
|
202
333
|
children: [
|
|
203
|
-
/* @__PURE__ */ t("div", { className: "mbt-menu-button__icon", children: e ?? /* @__PURE__ */ t(
|
|
334
|
+
/* @__PURE__ */ t("div", { className: "mbt-menu-button__icon", children: e ?? /* @__PURE__ */ t(v, {}) }),
|
|
204
335
|
/* @__PURE__ */ t("span", { className: "mbt-menu-button__text", children: n })
|
|
205
336
|
]
|
|
206
337
|
}
|
|
207
338
|
);
|
|
208
339
|
}
|
|
209
|
-
function I({
|
|
210
|
-
level: n,
|
|
211
|
-
children: e,
|
|
212
|
-
className: o,
|
|
213
|
-
...s
|
|
214
|
-
}) {
|
|
215
|
-
const a = `h${n}`, r = [`mbt-h${n}`, o].filter(Boolean).join(" ");
|
|
216
|
-
return /* @__PURE__ */ t(a, { className: r, ...s, children: e });
|
|
217
|
-
}
|
|
218
|
-
function y({
|
|
219
|
-
children: n,
|
|
220
|
-
large: e = !1,
|
|
221
|
-
muted: o = !1,
|
|
222
|
-
as: s = "div",
|
|
223
|
-
className: a,
|
|
224
|
-
...r
|
|
225
|
-
}) {
|
|
226
|
-
const i = s, l = [
|
|
227
|
-
"mbt-metric",
|
|
228
|
-
e && "mbt-metric--large",
|
|
229
|
-
o && "mbt-metric--muted",
|
|
230
|
-
a
|
|
231
|
-
].filter(Boolean).join(" ");
|
|
232
|
-
return /* @__PURE__ */ t(i, { className: l, ...r, children: n });
|
|
233
|
-
}
|
|
234
|
-
function W({
|
|
235
|
-
children: n,
|
|
236
|
-
strong: e = !1,
|
|
237
|
-
small: o = !1,
|
|
238
|
-
label: s = !1,
|
|
239
|
-
muted: a = !1,
|
|
240
|
-
disableFontFeatures: r = !1,
|
|
241
|
-
as: i = "p",
|
|
242
|
-
className: l,
|
|
243
|
-
...m
|
|
244
|
-
}) {
|
|
245
|
-
const u = i, d = [
|
|
246
|
-
"mbt-text",
|
|
247
|
-
e && "mbt-text--strong",
|
|
248
|
-
o && "mbt-text--small",
|
|
249
|
-
s && "mbt-text--label",
|
|
250
|
-
a && "mbt-text--muted",
|
|
251
|
-
r && "mbt-text--no-features",
|
|
252
|
-
l
|
|
253
|
-
].filter(Boolean).join(" ");
|
|
254
|
-
return /* @__PURE__ */ t(u, { className: d, ...m, children: n });
|
|
255
|
-
}
|
|
256
340
|
export {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
341
|
+
z as Badge,
|
|
342
|
+
y as Button,
|
|
343
|
+
v as GraduationCapIcon,
|
|
344
|
+
M as Heading,
|
|
260
345
|
j as Input,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
346
|
+
w as Loader,
|
|
347
|
+
F as MenuButton,
|
|
348
|
+
W as Metric,
|
|
349
|
+
B as SearchIcon,
|
|
350
|
+
k as Text,
|
|
351
|
+
S as colors,
|
|
352
|
+
G as fontFeatures,
|
|
353
|
+
H as fontSizes,
|
|
354
|
+
P as fontWeights,
|
|
355
|
+
V as fonts,
|
|
356
|
+
Z as radius,
|
|
357
|
+
D as spacing,
|
|
273
358
|
R as tokens,
|
|
274
|
-
|
|
275
|
-
|
|
359
|
+
q as transitions,
|
|
360
|
+
A as zIndex
|
|
276
361
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-sans-v23-latin-regular.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-sans-v23-latin-500.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/ibm-plex-sans-v23-latin-600.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/Inter-VariableFont_opsz,wght.ttf) format("truetype")}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(../fonts/Inter-Italic-VariableFont_opsz,wght.ttf) format("truetype")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-mono-v20-latin-regular.woff2) format("woff2")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-mono-v20-latin-500.woff2) format("woff2")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/ibm-plex-mono-v20-latin-600.woff2) format("woff2")}.mbt-button{appearance:none;border:none;background:none;cursor:pointer;outline:none;padding:8px 16px;display:grid;place-items:center;border-radius:8px
|
|
1
|
+
@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-sans-v23-latin-regular.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-sans-v23-latin-500.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/ibm-plex-sans-v23-latin-600.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/Inter-VariableFont_opsz,wght.ttf) format("truetype")}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(../fonts/Inter-Italic-VariableFont_opsz,wght.ttf) format("truetype")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-mono-v20-latin-regular.woff2) format("woff2")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-mono-v20-latin-500.woff2) format("woff2")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/ibm-plex-mono-v20-latin-600.woff2) format("woff2")}.mbt-button{appearance:none;border:none;background:none;cursor:pointer;outline:none;padding:8px 16px;display:grid;place-items:center;border-radius:8px;font-family:IBM Plex Sans,sans-serif;font-size:16px;font-weight:500;line-height:normal;text-transform:uppercase;text-align:center;white-space:nowrap;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,color .15s ease}.mbt-button--primary{background-color:#f2f4fa;color:#0b0e14}.mbt-button--secondary{background-color:#475569;color:#f2f4fa}.mbt-button__content,.mbt-button__loader{grid-area:1/1}.mbt-button__content{display:inline-flex;align-items:center;justify-content:center;gap:8px}.mbt-button__content svg{display:block;flex-shrink:0}.mbt-button:hover{color:#6663fd}.mbt-button:active{opacity:.9}.mbt-button:focus-visible{box-shadow:0 0 0 2px #0b0e14,0 0 0 4px #6663fd}.mbt-button--disabled{background-color:#475569;color:#8d92a9;cursor:not-allowed;pointer-events:none}.mbt-button--loading{cursor:not-allowed;pointer-events:none}.mbt-button--loading .mbt-button__content{visibility:hidden}.mbt-button--full-width{width:100%}.mbt-badge{position:relative;display:inline-flex;align-items:center;gap:12px;height:24px;max-height:24px;padding:4px 12px;border-radius:999px;background:#1d2335;color:#f2f4fa;overflow:visible;-webkit-user-select:none;user-select:none}.mbt-badge--with-icon{padding-left:12px}.mbt-badge--purchasable{cursor:pointer}.mbt-badge--boost{padding-right:20px}.mbt-badge__media{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;margin-left:-20px}.mbt-badge__icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}.mbt-badge__icon svg{display:block;max-width:100%;max-height:100%}.mbt-badge__purchasable{position:absolute;right:-8px;bottom:-7px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:#f2f4fa}.mbt-badge__content{display:inline-flex;align-items:center;min-width:0;line-height:1;color:inherit;white-space:nowrap}.mbt-badge__boost{position:absolute;top:-8px;right:-8px;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:#0078fd}.mbt-input__container{display:flex;flex-direction:column;gap:10px;width:100%;max-width:296px}.mbt-input__label{font-family:Inter,sans-serif;font-size:16px;font-weight:400;line-height:1;color:#f2f4fa;margin:0;font-feature-settings:"ss01" 1,"salt" 1,"ss02" 1}.mbt-input__label--muted{color:#8d92a9}.mbt-input__wrapper{position:relative;display:flex;align-items:center;width:100%;border:1px solid #f2f4fa;border-radius:8px;padding:8px 16px;background-color:transparent;transition:border-color .15s ease}.mbt-input__wrapper--muted{border-color:#8d92a9}.mbt-input__wrapper:focus-within{border-color:#6663fd}.mbt-input__field{flex:1;appearance:none;border:none;background:none;outline:none;font-family:Inter,sans-serif;font-size:16px;font-weight:400;line-height:1;color:#f2f4fa;font-feature-settings:"ss01" 1,"salt" 1,"ss02" 1}.mbt-input__field::placeholder{color:#f2f4fa}.mbt-input__field--muted{color:#8d92a9}.mbt-input__field--muted::placeholder{color:#8d92a9}.mbt-input__icon{flex-shrink:0;width:24px;height:24px;margin-left:8px;color:#f2f4fa}.mbt-input__icon--muted{color:#8d92a9}.mbt-input--full-width .mbt-input__container{max-width:none}.mbt-h1{font-family:IBM Plex Sans,sans-serif;font-size:72px;font-weight:600;line-height:80px;color:#f2f4fa;margin:0}.mbt-h2{font-family:IBM Plex Sans,sans-serif;font-size:40px;font-weight:600;line-height:48px;color:#f2f4fa;margin:0}.mbt-h3{font-family:IBM Plex Sans,sans-serif;font-size:28px;font-weight:500;line-height:36px;color:#f2f4fa;margin:0}.mbt-h4{font-family:IBM Plex Sans,sans-serif;font-size:20px;font-weight:500;line-height:28px;color:#f2f4fa;margin:0}.mbt-h5{font-family:IBM Plex Sans,sans-serif;font-size:16px;font-weight:500;line-height:24px;color:#f2f4fa;margin:0}.mbt-text{font-family:Inter,sans-serif;font-size:16px;font-weight:400;line-height:normal;color:#f2f4fa;margin:0;font-feature-settings:"salt" on,"ss01" on,"ss02" on}.mbt-text svg{display:inline-block;vertical-align:middle}.mbt-text--strong{font-weight:500}.mbt-text--small{font-size:12px;line-height:18px}.mbt-text--label{font-size:12px;text-transform:uppercase}.mbt-text--muted{color:#8d92a9}.mbt-text--no-features{font-feature-settings:normal}.mbt-metric{font-family:IBM Plex Mono,monospace;font-size:16px;font-weight:400;line-height:1;color:#f2f4fa;margin:0}.mbt-metric--large{font-size:24px;font-weight:500;line-height:32px}.mbt-metric--muted{color:#8d92a9}.mbt-menu-button{appearance:none;border:none;background:none;cursor:pointer;outline:none;display:flex;align-items:center;width:248px;height:44px;padding:4px 12px;gap:8px;font-family:IBM Plex Sans,sans-serif;font-size:16px;font-weight:500;line-height:24px;color:#f2f4fa;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:8px;transition:background-color .15s ease,color .15s ease}.mbt-menu-button__icon{flex-shrink:0;width:24px;height:24px;color:#f2f4fa;transition:color .15s ease}.mbt-menu-button__text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.mbt-menu-button:hover:not(:disabled):not(.mbt-menu-button--selected){background-color:#2a3148;color:#0078fd}.mbt-menu-button:hover:not(:disabled):not(.mbt-menu-button--selected) .mbt-menu-button__icon{color:#0078fd}.mbt-menu-button--selected{background-color:#1d2335;color:#6663fd}.mbt-menu-button--selected .mbt-menu-button__icon{color:#6663fd}.mbt-menu-button--small{padding:4px 8px;height:32px;gap:8px;font-family:Inter,sans-serif;font-size:12px;font-weight:400;line-height:18px}.mbt-menu-button--small .mbt-menu-button__icon{width:20px;height:20px}.mbt-menu-button:disabled{color:#8d92a9;cursor:not-allowed;pointer-events:none}.mbt-menu-button:disabled .mbt-menu-button__icon{color:#8d92a9}.mbt-loader{display:inline-flex;align-items:center;gap:4px}.mbt-loader__dot{display:inline-block;background-color:currentColor;border-radius:999px;animation:mbt-loader-bounce 1.4s infinite ease-in-out both}.mbt-loader__dot:nth-child(1){animation-delay:-.32s}.mbt-loader__dot:nth-child(2){animation-delay:-.16s}.mbt-loader--sm .mbt-loader__dot{width:6px;height:6px}.mbt-loader--md .mbt-loader__dot{width:9px;height:9px}.mbt-loader--lg .mbt-loader__dot{width:12px;height:12px}@keyframes mbt-loader-bounce{0%,80%,to{opacity:0;transform:scale(0)}40%{opacity:1;transform:scale(1)}}*,*:before,*:after{box-sizing:border-box}:root{--mbt-color-bg-0: #0b0e14;--mbt-color-bg-1: #111520;--mbt-color-surface: #171c2a;--mbt-color-surface-raised: #1d2335;--mbt-color-border: #2a3148;--mbt-color-gray: #475569;--mbt-color-text-primary: #f2f4fa;--mbt-color-text-muted: #8d92a9;--mbt-color-text-inverse: #0b0e14;--mbt-color-primary: #6663fd;--mbt-color-secondary: #0078fd;--mbt-color-success: #00b279;--mbt-color-error: #f2766a;--mbt-color-warning: #e6c352;--mbt-color-diamond: #e6f3ff;--mbt-color-primary-stop-0: #65d5f4;--mbt-color-primary-stop-1: #0096fa;--mbt-color-primary-stop-2: #1c3dc2;--mbt-color-primary-gradient: linear-gradient( 45deg, #65d5f4 0%, #0096fa 40%, #1c3dc2 100% );--mbt-color-diamond-stop-0: #beacd3;--mbt-color-diamond-stop-1: #bee3f7;--mbt-color-diamond-stop-2: #efece7;--mbt-color-diamond-stop-3: #f8ddde;--mbt-color-diamond-stop-4: #cfe6f1;--mbt-color-diamond-gradient: linear-gradient( 45deg, #beacd3 0%, #bee3f7 25%, #efece7 50%, #f8ddde 75%, #cfe6f1 100% );--mbt-color-gold: #d1a64a;--mbt-color-silver: #969fa6;--mbt-color-bronze: #956c68;--mbt-font-primary: "IBM Plex Sans", sans-serif;--mbt-font-secondary: "Inter", sans-serif;--mbt-font-mono: "IBM Plex Mono", monospace;--mbt-font-size-1: 12px;--mbt-font-size-2: 14px;--mbt-font-size-3: 16px;--mbt-font-size-4: 20px;--mbt-font-size-5: 24px;--mbt-font-size-6: 28px;--mbt-font-size-7: 40px;--mbt-font-size-8: 48px;--mbt-font-size-9: 72px;--mbt-font-weight-regular: 400;--mbt-font-weight-medium: 500;--mbt-font-weight-semibold: 600;--mbt-font-feature-inter-stylistic: "salt" on, "ss01" on, "ss02" on;--mbt-space-0: 0;--mbt-space-1: 4px;--mbt-space-2: 8px;--mbt-space-3: 12px;--mbt-space-4: 16px;--mbt-space-5: 24px;--mbt-space-6: 32px;--mbt-space-7: 48px;--mbt-space-8: 64px;--mbt-space-9: 96px;--mbt-space-10: 128px;--mbt-radius-0: 0;--mbt-radius-xs: 4px;--mbt-radius-sm: 8px;--mbt-radius-md: 12px;--mbt-radius-lg: 16px;--mbt-radius-xl: 24px;--mbt-radius-full: 999px;--mbt-z-index-0: 0;--mbt-z-index-1: 100;--mbt-z-index-2: 200;--mbt-z-index-3: 300;--mbt-z-index-4: 400;--mbt-z-index-5: 500;--mbt-transition-fast: .15s ease;--mbt-transition-normal: .25s ease;--mbt-transition-slow: .4s ease}
|
package/dist/styles/tokens.css
CHANGED
package/dist/styles/tokens.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const colors: {
|
|
|
15
15
|
readonly primary: "#6663FD";
|
|
16
16
|
readonly secondary: "#0078FD";
|
|
17
17
|
readonly gray: "#475569";
|
|
18
|
-
readonly border: "#
|
|
18
|
+
readonly border: "#2A3148";
|
|
19
19
|
readonly success: "#00B279";
|
|
20
20
|
readonly error: "#F2766A";
|
|
21
21
|
readonly warning: "#E6C352";
|
|
@@ -105,7 +105,7 @@ export declare const tokens: {
|
|
|
105
105
|
readonly primary: "#6663FD";
|
|
106
106
|
readonly secondary: "#0078FD";
|
|
107
107
|
readonly gray: "#475569";
|
|
108
|
-
readonly border: "#
|
|
108
|
+
readonly border: "#2A3148";
|
|
109
109
|
readonly success: "#00B279";
|
|
110
110
|
readonly error: "#F2766A";
|
|
111
111
|
readonly warning: "#E6C352";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s={bg0:"#0B0E14",bg1:"#111520",surface:"#171C2A",surfaceRaised:"#1D2335",textPrimary:"#F2F4FA",textMuted:"#8D92A9",textInverse:"#0B0E14",primary:"#6663FD",secondary:"#0078FD",gray:"#475569",border:"#
|
|
1
|
+
"use strict";const s={bg0:"#0B0E14",bg1:"#111520",surface:"#171C2A",surfaceRaised:"#1D2335",textPrimary:"#F2F4FA",textMuted:"#8D92A9",textInverse:"#0B0E14",primary:"#6663FD",secondary:"#0078FD",gray:"#475569",border:"#2A3148",success:"#00B279",error:"#F2766A",warning:"#E6C352",diamond:"#E6F3FF",primaryStop0:"#65D5F4",primaryStop1:"#0096FA",primaryStop2:"#1C3DC2",primaryGradient:"linear-gradient(45deg, #65D5F4 0%, #0096FA 40%, #1C3DC2 100%)",diamondStop0:"#BEACD3",diamondStop1:"#BEE3F7",diamondStop2:"#EFECE7",diamondStop3:"#F8DDDE",diamondStop4:"#CFE6F1",diamondGradient:"linear-gradient(45deg, #BEACD3 0%, #BEE3F7 25%, #EFECE7 50%, #F8DDDE 75%, #CFE6F1 100%)",gold:"#D1A64A",silver:"#969FA6",bronze:"#956C68"},n={primary:'"IBM Plex Sans", sans-serif',secondary:'"Inter", sans-serif',mono:'"IBM Plex Mono", monospace'},o={1:"12px",2:"14px",3:"16px",4:"20px",5:"24px",6:"28px",7:"40px",8:"48px",9:"72px"},t={regular:400,medium:500,semibold:600},e={interStylistic:"'salt' on, 'ss01' on, 'ss02' on"},r={0:"0",1:"4px",2:"8px",3:"12px",4:"16px",5:"24px",6:"32px",7:"48px",8:"64px",9:"96px",10:"128px"},a={0:"0",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px",full:"999px"},i={0:0,1:100,2:200,3:300,4:400,5:500},p={fast:"150ms ease",normal:"250ms ease",slow:"400ms ease"},x={colors:s,fonts:n,fontSizes:o,fontWeights:t,fontFeatures:e,spacing:r,radius:a,zIndex:i,transitions:p};exports.colors=s;exports.fontFeatures=e;exports.fontSizes=o;exports.fontWeights=t;exports.fonts=n;exports.radius=a;exports.spacing=r;exports.tokens=x;exports.transitions=p;exports.zIndex=i;
|
package/dist/tokens-only.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./tokens-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./tokens-DbQnrzz6.cjs");exports.colors=t.colors;exports.fontFeatures=t.fontFeatures;exports.fontSizes=t.fontSizes;exports.fontWeights=t.fontWeights;exports.fonts=t.fonts;exports.radius=t.radius;exports.spacing=t.spacing;exports.tokens=t.tokens;exports.transitions=t.transitions;exports.zIndex=t.zIndex;
|
package/dist/tokens-only.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as t, f as o, a as n, b as e, d as r, r as f, s as i, t as c, e as d, z } from "./tokens-
|
|
1
|
+
import { c as t, f as o, a as n, b as e, d as r, r as f, s as i, t as c, e as d, z } from "./tokens-C9wefV-c.js";
|
|
2
2
|
export {
|
|
3
3
|
t as colors,
|
|
4
4
|
o as fontFeatures,
|
package/package.json
CHANGED