mbt-ui-kit 0.1.11 → 0.1.13

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.
@@ -1,4 +1,4 @@
1
- import type { InputHTMLAttributes, ReactNode } from "react";
1
+ import { type InputHTMLAttributes, type ReactNode } from "react";
2
2
  /**
3
3
  * Input component props
4
4
  *
@@ -96,5 +96,5 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
96
96
  * />
97
97
  * ```
98
98
  */
99
- export declare function Input({ label, muted, showSearchIcon, icon, fullWidth, className, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
99
+ export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
100
100
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5D;;;;;GAKG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC3D;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAa,EACb,cAAsB,EACtB,IAAI,EACJ,SAAiB,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,UAAU,2CAkDZ"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7E;;;;;GAKG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CACtC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP;IACC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,KAAK,yGA4DjB,CAAC"}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./tokens-Bcuwagjb.cjs"),t=require("react/jsx-runtime");function p({size:e="md",className:s,...n}){const o=["mbt-loader",`mbt-loader--${e}`,s].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 h({children:e,fullWidth:s,disabled:n,loading:o,variant:a="primary",className:r,...l}){const c=n||o,u=["mbt-button",a&&`mbt-button--${a}`,s&&"mbt-button--full-width",n&&"mbt-button--disabled",o&&"mbt-button--loading",r].filter(Boolean).join(" ");return t.jsxs("button",{type:"button",className:u,disabled:c,...l,children:[t.jsx("span",{className:"mbt-button__content",children:e}),o&&t.jsx(p,{size:"md",className:"mbt-button__loader"})]})}function f({className:e}){return t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[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"})]})}function _({label:e,muted:s=!1,showSearchIcon:n=!1,icon:o,fullWidth:a=!1,className:r,...l}){const c=["mbt-input",a&&"mbt-input--full-width",r].filter(Boolean).join(" "),u=["mbt-input__label",s&&"mbt-input__label--muted"].filter(Boolean).join(" "),m=["mbt-input__wrapper",s&&"mbt-input__wrapper--muted"].filter(Boolean).join(" "),d=["mbt-input__field",s&&"mbt-input__field--muted"].filter(Boolean).join(" "),x=["mbt-input__icon",s&&"mbt-input__icon--muted"].filter(Boolean).join(" "),b=o||n&&t.jsx(f,{});return t.jsx("div",{className:c,children:t.jsxs("div",{className:"mbt-input__container",children:[e&&t.jsx("label",{className:u,children:e}),t.jsxs("div",{className:m,children:[t.jsx("input",{type:"text",className:d,...l}),b&&t.jsx("div",{className:x,children:b})]})]})})}function N({level:e,children:s,className:n,...o}){const a=`h${e}`,r=[`mbt-h${e}`,n].filter(Boolean).join(" ");return t.jsx(a,{className:r,...o,children:s})}function k({children:e,strong:s=!1,small:n=!1,label:o=!1,muted:a=!1,disableFontFeatures:r=!1,as:l="p",className:c,...u}){const m=l,d=["mbt-text",s&&"mbt-text--strong",n&&"mbt-text--small",o&&"mbt-text--label",a&&"mbt-text--muted",r&&"mbt-text--no-features",c].filter(Boolean).join(" ");return t.jsx(m,{className:d,...u,children:e})}function g({children:e,large:s=!1,muted:n=!1,as:o="div",className:a,...r}){const l=o,c=["mbt-metric",s&&"mbt-metric--large",n&&"mbt-metric--muted",a].filter(Boolean).join(" ");return t.jsx(l,{className:c,...r,children:e})}function j({className:e}){return t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[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 w({children:e,icon:s,selected:n=!1,small:o=!1,disabled:a,className:r,...l}){const c=["mbt-menu-button",n&&"mbt-menu-button--selected",o&&"mbt-menu-button--small",r].filter(Boolean).join(" "),u=s??t.jsx(j,{});return t.jsxs("button",{type:"button",className:c,disabled:a,"aria-pressed":n,...l,children:[t.jsx("div",{className:"mbt-menu-button__icon",children:u}),t.jsx("span",{className:"mbt-menu-button__text",children:e})]})}exports.colors=i.colors;exports.fontFeatures=i.fontFeatures;exports.fontSizes=i.fontSizes;exports.fontWeights=i.fontWeights;exports.fonts=i.fonts;exports.radius=i.radius;exports.spacing=i.spacing;exports.tokens=i.tokens;exports.transitions=i.transitions;exports.zIndex=i.zIndex;exports.Button=h;exports.GraduationCapIcon=j;exports.Heading=N;exports.Input=_;exports.Loader=p;exports.MenuButton=w;exports.Metric=g;exports.SearchIcon=f;exports.Text=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./tokens-Bcuwagjb.cjs"),t=require("react/jsx-runtime"),_=require("react");function f({size:e="md",className:s,...n}){const o=["mbt-loader",`mbt-loader--${e}`,s].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 N({children:e,fullWidth:s,disabled:n,loading:o,variant:a="primary",className:r,...l}){const c=n||o,u=["mbt-button",a&&`mbt-button--${a}`,s&&"mbt-button--full-width",n&&"mbt-button--disabled",o&&"mbt-button--loading",r].filter(Boolean).join(" ");return t.jsxs("button",{type:"button",className:u,disabled:c,...l,children:[t.jsx("span",{className:"mbt-button__content",children:e}),o&&t.jsx(f,{size:"md",className:"mbt-button__loader"})]})}function p({className:e}){return t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[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 k=_.forwardRef(({label:e,muted:s=!1,showSearchIcon:n=!1,icon:o,fullWidth:a=!1,className:r,...l},c)=>{const u=["mbt-input",a&&"mbt-input--full-width",r].filter(Boolean).join(" "),m=["mbt-input__label",s&&"mbt-input__label--muted"].filter(Boolean).join(" "),d=["mbt-input__wrapper",s&&"mbt-input__wrapper--muted"].filter(Boolean).join(" "),x=["mbt-input__field",s&&"mbt-input__field--muted"].filter(Boolean).join(" "),h=["mbt-input__icon",s&&"mbt-input__icon--muted"].filter(Boolean).join(" "),b=o||n&&t.jsx(p,{});return t.jsx("div",{className:u,children:t.jsxs("div",{className:"mbt-input__container",children:[e&&t.jsx("label",{className:m,children:e}),t.jsxs("div",{className:d,children:[t.jsx("input",{ref:c,type:"text",className:x,...l}),b&&t.jsx("div",{className:h,children:b})]})]})})});function g({level:e,children:s,className:n,...o}){const a=`h${e}`,r=[`mbt-h${e}`,n].filter(Boolean).join(" ");return t.jsx(a,{className:r,...o,children:s})}function w({children:e,strong:s=!1,small:n=!1,label:o=!1,muted:a=!1,disableFontFeatures:r=!1,as:l="p",className:c,...u}){const m=l,d=["mbt-text",s&&"mbt-text--strong",n&&"mbt-text--small",o&&"mbt-text--label",a&&"mbt-text--muted",r&&"mbt-text--no-features",c].filter(Boolean).join(" ");return t.jsx(m,{className:d,...u,children:e})}function B({children:e,large:s=!1,muted:n=!1,as:o="div",className:a,...r}){const l=o,c=["mbt-metric",s&&"mbt-metric--large",n&&"mbt-metric--muted",a].filter(Boolean).join(" ");return t.jsx(l,{className:c,...r,children:e})}function j({className:e}){return t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[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 L({children:e,icon:s,selected:n=!1,small:o=!1,disabled:a,className:r,...l}){const c=["mbt-menu-button",n&&"mbt-menu-button--selected",o&&"mbt-menu-button--small",r].filter(Boolean).join(" "),u=s??t.jsx(j,{});return t.jsxs("button",{type:"button",className:c,disabled:a,"aria-pressed":n,...l,children:[t.jsx("div",{className:"mbt-menu-button__icon",children:u}),t.jsx("span",{className:"mbt-menu-button__text",children:e})]})}exports.colors=i.colors;exports.fontFeatures=i.fontFeatures;exports.fontSizes=i.fontSizes;exports.fontWeights=i.fontWeights;exports.fonts=i.fonts;exports.radius=i.radius;exports.spacing=i.spacing;exports.tokens=i.tokens;exports.transitions=i.transitions;exports.zIndex=i.zIndex;exports.Button=N;exports.GraduationCapIcon=j;exports.Heading=g;exports.Input=k;exports.Loader=f;exports.MenuButton=L;exports.Metric=B;exports.SearchIcon=p;exports.Text=w;
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
- import { c as C, f as y, a as I, b as W, d as z, r as M, s as T, t as $, e as S, z as D } from "./tokens-Bxhg1IBs.js";
1
+ import { c as W, f as z, a as M, b as T, d as $, r as S, s as D, t as F, e as G, z as H } from "./tokens-Bxhg1IBs.js";
2
2
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
3
- function f({ size: e = "md", className: n, ...s }) {
3
+ import { forwardRef as h } from "react";
4
+ function _({ size: e = "md", className: n, ...s }) {
4
5
  const o = [
5
6
  "mbt-loader",
6
7
  `mbt-loader--${e}`,
@@ -12,7 +13,7 @@ function f({ size: e = "md", className: n, ...s }) {
12
13
  /* @__PURE__ */ t("span", { className: "mbt-loader__dot" })
13
14
  ] });
14
15
  }
15
- function k({
16
+ function w({
16
17
  children: e,
17
18
  fullWidth: n,
18
19
  disabled: s,
@@ -38,12 +39,12 @@ function k({
38
39
  ...i,
39
40
  children: [
40
41
  /* @__PURE__ */ t("span", { className: "mbt-button__content", children: e }),
41
- o && /* @__PURE__ */ t(f, { size: "md", className: "mbt-button__loader" })
42
+ o && /* @__PURE__ */ t(_, { size: "md", className: "mbt-button__loader" })
42
43
  ]
43
44
  }
44
45
  );
45
46
  }
46
- function h({ className: e }) {
47
+ function N({ className: e }) {
47
48
  return /* @__PURE__ */ c(
48
49
  "svg",
49
50
  {
@@ -80,41 +81,40 @@ function h({ className: e }) {
80
81
  }
81
82
  );
82
83
  }
83
- function x({
84
- label: e,
85
- muted: n = !1,
86
- showSearchIcon: s = !1,
87
- icon: o,
88
- fullWidth: a = !1,
89
- className: r,
90
- ...i
91
- }) {
92
- const l = [
93
- "mbt-input",
94
- a && "mbt-input--full-width",
95
- r
96
- ].filter(Boolean).join(" "), m = [
97
- "mbt-input__label",
98
- n && "mbt-input__label--muted"
99
- ].filter(Boolean).join(" "), u = [
100
- "mbt-input__wrapper",
101
- n && "mbt-input__wrapper--muted"
102
- ].filter(Boolean).join(" "), d = [
103
- "mbt-input__field",
104
- n && "mbt-input__field--muted"
105
- ].filter(Boolean).join(" "), p = [
106
- "mbt-input__icon",
107
- n && "mbt-input__icon--muted"
108
- ].filter(Boolean).join(" "), b = o || s && /* @__PURE__ */ t(h, {});
109
- return /* @__PURE__ */ t("div", { className: l, children: /* @__PURE__ */ c("div", { className: "mbt-input__container", children: [
110
- e && /* @__PURE__ */ t("label", { className: m, children: e }),
111
- /* @__PURE__ */ c("div", { className: u, children: [
112
- /* @__PURE__ */ t("input", { type: "text", className: d, ...i }),
113
- b && /* @__PURE__ */ t("div", { className: p, children: b })
114
- ] })
115
- ] }) });
116
- }
117
- function j({
84
+ const g = h(
85
+ ({
86
+ label: e,
87
+ muted: n = !1,
88
+ showSearchIcon: s = !1,
89
+ icon: o,
90
+ fullWidth: a = !1,
91
+ className: r,
92
+ ...i
93
+ }, l) => {
94
+ const m = [
95
+ "mbt-input",
96
+ a && "mbt-input--full-width",
97
+ r
98
+ ].filter(Boolean).join(" "), u = [
99
+ "mbt-input__label",
100
+ n && "mbt-input__label--muted"
101
+ ].filter(Boolean).join(" "), d = [
102
+ "mbt-input__wrapper",
103
+ n && "mbt-input__wrapper--muted"
104
+ ].filter(Boolean).join(" "), p = [
105
+ "mbt-input__field",
106
+ n && "mbt-input__field--muted"
107
+ ].filter(Boolean).join(" "), f = ["mbt-input__icon", n && "mbt-input__icon--muted"].filter(Boolean).join(" "), b = o || s && /* @__PURE__ */ t(N, {});
108
+ return /* @__PURE__ */ t("div", { className: m, children: /* @__PURE__ */ c("div", { className: "mbt-input__container", children: [
109
+ e && /* @__PURE__ */ t("label", { className: u, children: e }),
110
+ /* @__PURE__ */ c("div", { className: d, children: [
111
+ /* @__PURE__ */ t("input", { ref: l, type: "text", className: p, ...i }),
112
+ b && /* @__PURE__ */ t("div", { className: f, children: b })
113
+ ] })
114
+ ] }) });
115
+ }
116
+ );
117
+ function B({
118
118
  level: e,
119
119
  children: n,
120
120
  className: s,
@@ -123,7 +123,7 @@ function j({
123
123
  const a = `h${e}`, r = [`mbt-h${e}`, s].filter(Boolean).join(" ");
124
124
  return /* @__PURE__ */ t(a, { className: r, ...o, children: n });
125
125
  }
126
- function w({
126
+ function L({
127
127
  children: e,
128
128
  strong: n = !1,
129
129
  small: s = !1,
@@ -145,7 +145,7 @@ function w({
145
145
  ].filter(Boolean).join(" ");
146
146
  return /* @__PURE__ */ t(u, { className: d, ...m, children: e });
147
147
  }
148
- function g({
148
+ function v({
149
149
  children: e,
150
150
  large: n = !1,
151
151
  muted: s = !1,
@@ -161,7 +161,7 @@ function g({
161
161
  ].filter(Boolean).join(" ");
162
162
  return /* @__PURE__ */ t(i, { className: l, ...r, children: e });
163
163
  }
164
- function _({ className: e }) {
164
+ function k({ className: e }) {
165
165
  return /* @__PURE__ */ c(
166
166
  "svg",
167
167
  {
@@ -206,7 +206,7 @@ function _({ className: e }) {
206
206
  }
207
207
  );
208
208
  }
209
- function B({
209
+ function C({
210
210
  children: e,
211
211
  icon: n,
212
212
  selected: s = !1,
@@ -230,30 +230,30 @@ function B({
230
230
  "aria-pressed": s,
231
231
  ...i,
232
232
  children: [
233
- /* @__PURE__ */ t("div", { className: "mbt-menu-button__icon", children: n ?? /* @__PURE__ */ t(_, {}) }),
233
+ /* @__PURE__ */ t("div", { className: "mbt-menu-button__icon", children: n ?? /* @__PURE__ */ t(k, {}) }),
234
234
  /* @__PURE__ */ t("span", { className: "mbt-menu-button__text", children: e })
235
235
  ]
236
236
  }
237
237
  );
238
238
  }
239
239
  export {
240
- k as Button,
241
- _ as GraduationCapIcon,
242
- j as Heading,
243
- x as Input,
244
- f as Loader,
245
- B as MenuButton,
246
- g as Metric,
247
- h as SearchIcon,
248
- w as Text,
249
- C as colors,
250
- y as fontFeatures,
251
- I as fontSizes,
252
- W as fontWeights,
253
- z as fonts,
254
- M as radius,
255
- T as spacing,
256
- $ as tokens,
257
- S as transitions,
258
- D as zIndex
240
+ w as Button,
241
+ k as GraduationCapIcon,
242
+ B as Heading,
243
+ g as Input,
244
+ _ as Loader,
245
+ C as MenuButton,
246
+ v as Metric,
247
+ N as SearchIcon,
248
+ L as Text,
249
+ W as colors,
250
+ z as fontFeatures,
251
+ M as fontSizes,
252
+ T as fontWeights,
253
+ $ as fonts,
254
+ S as radius,
255
+ D as spacing,
256
+ F as tokens,
257
+ G as transitions,
258
+ H as zIndex
259
259
  };
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap";@import"https://rsms.me/inter/inter.css";.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:#474953;color:#f2f4fa}.mbt-button__content,.mbt-button__loader{grid-area:1/1}.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:#474953;color:#8b92a6;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-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:#8b92a6}.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:#8b92a6}.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:#8b92a6}.mbt-input__field--muted::placeholder{color:#8b92a6}.mbt-input__icon{flex-shrink:0;width:24px;height:24px;margin-left:8px;color:#f2f4fa}.mbt-input__icon--muted{color:#8b92a6}.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:1;color:#f2f4fa;margin:0;font-feature-settings:"salt" on,"ss01" on,"ss02" on}.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:#8b92a6}.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:#8b92a6}.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:#3d91ff}.mbt-menu-button:hover:not(:disabled):not(.mbt-menu-button--selected) .mbt-menu-button__icon{color:#3d91ff}.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:#8b92a6;cursor:not-allowed;pointer-events:none}.mbt-menu-button:disabled .mbt-menu-button__icon{color:#8b92a6}.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-text-primary: #f2f4fa;--mbt-color-text-muted: #8b92a6;--mbt-color-text-inverse: #0b0e14;--mbt-color-primary: #6663fd;--mbt-color-secondary: #3d91ff;--mbt-color-gray: #474953;--mbt-color-border: #2a3148;--mbt-color-success: #4dba8a;--mbt-color-error: #c9636a;--mbt-color-warning: #d1a64a;--mbt-color-brilliant: #74cee9;--mbt-color-diamond: #e6f3ff;--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-gold: #D1A64A;--mbt-color-silver: #A09EA6;--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}
1
+ @import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap";@import"https://rsms.me/inter/inter.css";.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:#474953;color:#f2f4fa}.mbt-button__content,.mbt-button__loader{grid-area:1/1}.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:#474953;color:#8b92a6;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-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:#8b92a6}.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:#8b92a6}.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:#8b92a6}.mbt-input__field--muted::placeholder{color:#8b92a6}.mbt-input__icon{flex-shrink:0;width:24px;height:24px;margin-left:8px;color:#f2f4fa}.mbt-input__icon--muted{color:#8b92a6}.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--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:#8b92a6}.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:#8b92a6}.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:#3d91ff}.mbt-menu-button:hover:not(:disabled):not(.mbt-menu-button--selected) .mbt-menu-button__icon{color:#3d91ff}.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:#8b92a6;cursor:not-allowed;pointer-events:none}.mbt-menu-button:disabled .mbt-menu-button__icon{color:#8b92a6}.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-text-primary: #f2f4fa;--mbt-color-text-muted: #8b92a6;--mbt-color-text-inverse: #0b0e14;--mbt-color-primary: #6663fd;--mbt-color-secondary: #3d91ff;--mbt-color-gray: #474953;--mbt-color-border: #2a3148;--mbt-color-success: #4dba8a;--mbt-color-error: #c9636a;--mbt-color-warning: #d1a64a;--mbt-color-brilliant: #74cee9;--mbt-color-diamond: #e6f3ff;--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-gold: #D1A64A;--mbt-color-silver: #A09EA6;--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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mbt-ui-kit",
3
3
  "description": "React component library with SCSS",
4
- "version": "0.1.11",
4
+ "version": "0.1.13",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",