mbt-ui-kit 0.1.7 → 0.1.8
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/components/button/button.d.ts +1 -15
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -16
- package/dist/styles/mbt-ui-kit.css +1 -1
- package/dist/styles/tokens.css +7 -1
- package/dist/styles/tokens.d.ts +10 -2
- package/dist/styles/tokens.d.ts.map +1 -1
- package/dist/tokens-Bcuwagjb.cjs +1 -0
- package/dist/{tokens-BIevcwmF.js → tokens-DRT06tcO.js} +25 -20
- package/dist/tokens-only.cjs +1 -1
- package/dist/tokens-only.js +1 -1
- package/package.json +2 -2
- package/src/styles/_tokens.scss +7 -1
- package/dist/tokens-Buhra6sa.cjs +0 -1
|
@@ -26,20 +26,6 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
fullWidth?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Скругление всех углов кнопки
|
|
31
|
-
*
|
|
32
|
-
* По умолчанию true - все углы скруглены.
|
|
33
|
-
* При false - диагональное скругление (только top-right и bottom-left).
|
|
34
|
-
*
|
|
35
|
-
* @default true
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* <Button rounded={false}>Diagonal Corners</Button>
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
rounded?: boolean;
|
|
43
29
|
}
|
|
44
30
|
/**
|
|
45
31
|
* Button — компонент кнопки с тремя состояниями (default, hover, disabled)
|
|
@@ -64,5 +50,5 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
64
50
|
* <Button onClick={() => console.log('Clicked!')}>Click Me</Button>
|
|
65
51
|
* ```
|
|
66
52
|
*/
|
|
67
|
-
export declare function Button({ children, fullWidth,
|
|
53
|
+
export declare function Button({ children, fullWidth, disabled, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
68
54
|
//# 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;AAE7D;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,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;AAE7D;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,2CAeb"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./tokens-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./tokens-Bcuwagjb.cjs"),t=require("react/jsx-runtime");function j({children:e,fullWidth:n,disabled:s,className:o,...i}){const r=["mbt-button",n&&"mbt-button--full-width",s&&"mbt-button--disabled",o].filter(Boolean).join(" ");return t.jsx("button",{type:"button",className:r,disabled:s,...i,children:e})}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 h({label:e,muted:n=!1,showSearchIcon:s=!1,icon:o,fullWidth:i=!1,className:r,...l}){const c=["mbt-input",i&&"mbt-input--full-width",r].filter(Boolean).join(" "),u=["mbt-input__label",n&&"mbt-input__label--muted"].filter(Boolean).join(" "),m=["mbt-input__wrapper",n&&"mbt-input__wrapper--muted"].filter(Boolean).join(" "),d=["mbt-input__field",n&&"mbt-input__field--muted"].filter(Boolean).join(" "),x=["mbt-input__icon",n&&"mbt-input__icon--muted"].filter(Boolean).join(" "),b=o||s&&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 k({level:e,children:n,className:s,...o}){const i=`h${e}`,r=[`mbt-h${e}`,s].filter(Boolean).join(" ");return t.jsx(i,{className:r,...o,children:n})}function _({children:e,strong:n=!1,small:s=!1,label:o=!1,muted:i=!1,disableFontFeatures:r=!1,as:l="p",className:c,...u}){const m=l,d=["mbt-text",n&&"mbt-text--strong",s&&"mbt-text--small",o&&"mbt-text--label",i&&"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:n=!1,muted:s=!1,as:o="div",className:i,...r}){const l=o,c=["mbt-metric",n&&"mbt-metric--large",s&&"mbt-metric--muted",i].filter(Boolean).join(" ");return t.jsx(l,{className:c,...r,children:e})}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("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 N({children:e,icon:n,selected:s=!1,small:o=!1,disabled:i,className:r,...l}){const c=["mbt-menu-button",s&&"mbt-menu-button--selected",o&&"mbt-menu-button--small",r].filter(Boolean).join(" "),u=n??t.jsx(p,{});return t.jsxs("button",{type:"button",className:c,disabled:i,"aria-pressed":s,...l,children:[t.jsx("div",{className:"mbt-menu-button__icon",children:u}),t.jsx("span",{className:"mbt-menu-button__text",children:e})]})}exports.colors=a.colors;exports.fontFeatures=a.fontFeatures;exports.fontSizes=a.fontSizes;exports.fontWeights=a.fontWeights;exports.fonts=a.fonts;exports.radius=a.radius;exports.spacing=a.spacing;exports.tokens=a.tokens;exports.transitions=a.transitions;exports.zIndex=a.zIndex;exports.Button=j;exports.GraduationCapIcon=p;exports.Heading=k;exports.Input=h;exports.MenuButton=N;exports.Metric=g;exports.SearchIcon=f;exports.Text=_;
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { c as L, d as C, a as y, b as I, f as W, r as M, s as z, t as T, e as S, z as $ } from "./tokens-
|
|
1
|
+
import { c as L, d as C, a as y, b as I, f as W, r as M, s as z, t as T, e as S, z as $ } from "./tokens-DRT06tcO.js";
|
|
2
2
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
function k({
|
|
4
4
|
children: t,
|
|
5
5
|
fullWidth: n,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
...r
|
|
6
|
+
disabled: o,
|
|
7
|
+
className: s,
|
|
8
|
+
...a
|
|
10
9
|
}) {
|
|
11
|
-
const
|
|
10
|
+
const r = [
|
|
12
11
|
"mbt-button",
|
|
13
12
|
n && "mbt-button--full-width",
|
|
14
|
-
|
|
15
|
-
s
|
|
16
|
-
a
|
|
13
|
+
o && "mbt-button--disabled",
|
|
14
|
+
s
|
|
17
15
|
].filter(Boolean).join(" ");
|
|
18
|
-
return /* @__PURE__ */ e("button", { type: "button", className:
|
|
16
|
+
return /* @__PURE__ */ e("button", { type: "button", className: r, disabled: o, ...a, children: t });
|
|
19
17
|
}
|
|
20
18
|
function p({ className: t }) {
|
|
21
19
|
return /* @__PURE__ */ c(
|
|
@@ -97,7 +95,7 @@ function N({
|
|
|
97
95
|
const a = `h${t}`, r = [`mbt-h${t}`, o].filter(Boolean).join(" ");
|
|
98
96
|
return /* @__PURE__ */ e(a, { className: r, ...s, children: n });
|
|
99
97
|
}
|
|
100
|
-
function
|
|
98
|
+
function j({
|
|
101
99
|
children: t,
|
|
102
100
|
strong: n = !1,
|
|
103
101
|
small: o = !1,
|
|
@@ -119,7 +117,7 @@ function g({
|
|
|
119
117
|
].filter(Boolean).join(" ");
|
|
120
118
|
return /* @__PURE__ */ e(m, { className: d, ...u, children: t });
|
|
121
119
|
}
|
|
122
|
-
function
|
|
120
|
+
function w({
|
|
123
121
|
children: t,
|
|
124
122
|
large: n = !1,
|
|
125
123
|
muted: o = !1,
|
|
@@ -180,7 +178,7 @@ function h({ className: t }) {
|
|
|
180
178
|
}
|
|
181
179
|
);
|
|
182
180
|
}
|
|
183
|
-
function
|
|
181
|
+
function g({
|
|
184
182
|
children: t,
|
|
185
183
|
icon: n,
|
|
186
184
|
selected: o = !1,
|
|
@@ -215,10 +213,10 @@ export {
|
|
|
215
213
|
h as GraduationCapIcon,
|
|
216
214
|
N as Heading,
|
|
217
215
|
x as Input,
|
|
218
|
-
|
|
219
|
-
|
|
216
|
+
g as MenuButton,
|
|
217
|
+
w as Metric,
|
|
220
218
|
p as SearchIcon,
|
|
221
|
-
|
|
219
|
+
j as Text,
|
|
222
220
|
L as colors,
|
|
223
221
|
C as fontFeatures,
|
|
224
222
|
y as fontSizes,
|
|
@@ -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;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border-radius:
|
|
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;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border-radius:0 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;background-color:#f2f4fa;color:#0b0e14}.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,.mbt-button--disabled{background-color:#474953;color:#8b92a6;cursor:not-allowed;pointer-events:none}.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}*,*: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/dist/styles/tokens.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
/* Brand */
|
|
25
25
|
--mbt-color-primary: #6663fd;
|
|
26
|
-
--mbt-color-secondary: #
|
|
26
|
+
--mbt-color-secondary: #3d91ff;
|
|
27
27
|
|
|
28
28
|
/* State */
|
|
29
29
|
--mbt-color-gray: #474953;
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--mbt-color-warning: #d1a64a;
|
|
34
34
|
|
|
35
35
|
/* Diamond gradient */
|
|
36
|
+
--mbt-color-brilliant: #74cee9;
|
|
36
37
|
--mbt-color-diamond: #e6f3ff;
|
|
37
38
|
--mbt-color-diamond-stop-0: #beacd3;
|
|
38
39
|
--mbt-color-diamond-stop-1: #bee3f7;
|
|
@@ -40,6 +41,11 @@
|
|
|
40
41
|
--mbt-color-diamond-stop-3: #f8ddde;
|
|
41
42
|
--mbt-color-diamond-stop-4: #cfe6f1;
|
|
42
43
|
|
|
44
|
+
/* Metals */
|
|
45
|
+
--mbt-color-gold: #D1A64A;
|
|
46
|
+
--mbt-color-silver: #A09EA6;
|
|
47
|
+
--mbt-color-bronze: #956C68;
|
|
48
|
+
|
|
43
49
|
/* ========================================================================= */
|
|
44
50
|
/* Typography */
|
|
45
51
|
/* ========================================================================= */
|
package/dist/styles/tokens.d.ts
CHANGED
|
@@ -13,18 +13,22 @@ export declare const colors: {
|
|
|
13
13
|
readonly textMuted: "#8B92A6";
|
|
14
14
|
readonly textInverse: "#0B0E14";
|
|
15
15
|
readonly primary: "#6663FD";
|
|
16
|
-
readonly secondary: "#
|
|
16
|
+
readonly secondary: "#3d91ff";
|
|
17
17
|
readonly gray: "#474953";
|
|
18
18
|
readonly border: "#2A3148";
|
|
19
19
|
readonly success: "#4DBA8A";
|
|
20
20
|
readonly error: "#C9636A";
|
|
21
21
|
readonly warning: "#D1A64A";
|
|
22
|
+
readonly brilliant: "#74cee9";
|
|
22
23
|
readonly diamond: "#E6F3FF";
|
|
23
24
|
readonly diamondStop0: "#BEACD3";
|
|
24
25
|
readonly diamondStop1: "#BEE3F7";
|
|
25
26
|
readonly diamondStop2: "#EFECE7";
|
|
26
27
|
readonly diamondStop3: "#F8DDDE";
|
|
27
28
|
readonly diamondStop4: "#CFE6F1";
|
|
29
|
+
readonly gold: "#D1A64A";
|
|
30
|
+
readonly silver: "#A09EA6";
|
|
31
|
+
readonly bronze: "#956C68";
|
|
28
32
|
};
|
|
29
33
|
export declare const fonts: {
|
|
30
34
|
readonly primary: "\"IBM Plex Sans\", sans-serif";
|
|
@@ -95,18 +99,22 @@ export declare const tokens: {
|
|
|
95
99
|
readonly textMuted: "#8B92A6";
|
|
96
100
|
readonly textInverse: "#0B0E14";
|
|
97
101
|
readonly primary: "#6663FD";
|
|
98
|
-
readonly secondary: "#
|
|
102
|
+
readonly secondary: "#3d91ff";
|
|
99
103
|
readonly gray: "#474953";
|
|
100
104
|
readonly border: "#2A3148";
|
|
101
105
|
readonly success: "#4DBA8A";
|
|
102
106
|
readonly error: "#C9636A";
|
|
103
107
|
readonly warning: "#D1A64A";
|
|
108
|
+
readonly brilliant: "#74cee9";
|
|
104
109
|
readonly diamond: "#E6F3FF";
|
|
105
110
|
readonly diamondStop0: "#BEACD3";
|
|
106
111
|
readonly diamondStop1: "#BEE3F7";
|
|
107
112
|
readonly diamondStop2: "#EFECE7";
|
|
108
113
|
readonly diamondStop3: "#F8DDDE";
|
|
109
114
|
readonly diamondStop4: "#CFE6F1";
|
|
115
|
+
readonly gold: "#D1A64A";
|
|
116
|
+
readonly silver: "#A09EA6";
|
|
117
|
+
readonly bronze: "#956C68";
|
|
110
118
|
};
|
|
111
119
|
readonly fonts: {
|
|
112
120
|
readonly primary: "\"IBM Plex Sans\", sans-serif";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/styles/tokens.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/styles/tokens.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAoCT,CAAC;AAMX,eAAO,MAAM,KAAK;;;;CAIR,CAAC;AAEX,eAAO,MAAM,SAAS;;;;;;;;;;CAUZ,CAAC;AAEX,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX,eAAO,MAAM,YAAY;;CAEf,CAAC;AAMX,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAC;AAMX,eAAO,MAAM,MAAM;;;;;;;;CAQT,CAAC;AAMX,eAAO,MAAM,MAAM;;;;;;;CAOT,CAAC;AAMX,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAMX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUT,CAAC;AAEX,eAAe,MAAM,CAAC;AAMtB,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,MAAM,CAAC;AACxC,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,KAAK,CAAC;AACtC,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAClD,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,YAAY,CAAC;AACpD,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,OAAO,CAAC;AAC3C,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,MAAM,CAAC;AACzC,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,MAAM,CAAC;AACzC,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s={bg0:"#0B0E14",bg1:"#111520",surface:"#171C2A",surfaceRaised:"#1D2335",textPrimary:"#F2F4FA",textMuted:"#8B92A6",textInverse:"#0B0E14",primary:"#6663FD",secondary:"#3d91ff",gray:"#474953",border:"#2A3148",success:"#4DBA8A",error:"#C9636A",warning:"#D1A64A",brilliant:"#74cee9",diamond:"#E6F3FF",diamondStop0:"#BEACD3",diamondStop1:"#BEE3F7",diamondStop2:"#EFECE7",diamondStop3:"#F8DDDE",diamondStop4:"#CFE6F1",gold:"#D1A64A",silver:"#A09EA6",bronze:"#956C68"},o={primary:'"IBM Plex Sans", sans-serif',secondary:'"Inter", sans-serif',mono:'"IBM Plex Mono", monospace'},n={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"},p={0:0,1:100,2:200,3:300,4:400,5:500},i={fast:"150ms ease",normal:"250ms ease",slow:"400ms ease"},x={colors:s,fonts:o,fontSizes:n,fontWeights:t,fontFeatures:e,spacing:r,radius:a,zIndex:p,transitions:i};exports.colors=s;exports.fontFeatures=e;exports.fontSizes=n;exports.fontWeights=t;exports.fonts=o;exports.radius=a;exports.spacing=r;exports.tokens=x;exports.transitions=i;exports.zIndex=p;
|
|
@@ -10,7 +10,7 @@ const s = {
|
|
|
10
10
|
textInverse: "#0B0E14",
|
|
11
11
|
// Brand
|
|
12
12
|
primary: "#6663FD",
|
|
13
|
-
secondary: "#
|
|
13
|
+
secondary: "#3d91ff",
|
|
14
14
|
// State
|
|
15
15
|
gray: "#474953",
|
|
16
16
|
border: "#2A3148",
|
|
@@ -18,17 +18,22 @@ const s = {
|
|
|
18
18
|
error: "#C9636A",
|
|
19
19
|
warning: "#D1A64A",
|
|
20
20
|
// Diamond gradient stops
|
|
21
|
+
brilliant: "#74cee9",
|
|
21
22
|
diamond: "#E6F3FF",
|
|
22
23
|
diamondStop0: "#BEACD3",
|
|
23
24
|
diamondStop1: "#BEE3F7",
|
|
24
25
|
diamondStop2: "#EFECE7",
|
|
25
26
|
diamondStop3: "#F8DDDE",
|
|
26
|
-
diamondStop4: "#CFE6F1"
|
|
27
|
+
diamondStop4: "#CFE6F1",
|
|
28
|
+
// Metals
|
|
29
|
+
gold: "#D1A64A",
|
|
30
|
+
silver: "#A09EA6",
|
|
31
|
+
bronze: "#956C68"
|
|
27
32
|
}, o = {
|
|
28
33
|
primary: '"IBM Plex Sans", sans-serif',
|
|
29
34
|
secondary: '"Inter", sans-serif',
|
|
30
35
|
mono: '"IBM Plex Mono", monospace'
|
|
31
|
-
},
|
|
36
|
+
}, n = {
|
|
32
37
|
1: "12px",
|
|
33
38
|
2: "14px",
|
|
34
39
|
3: "16px",
|
|
@@ -38,13 +43,13 @@ const s = {
|
|
|
38
43
|
7: "40px",
|
|
39
44
|
8: "48px",
|
|
40
45
|
9: "72px"
|
|
41
|
-
},
|
|
46
|
+
}, a = {
|
|
42
47
|
regular: 400,
|
|
43
48
|
medium: 500,
|
|
44
49
|
semibold: 600
|
|
45
|
-
}, t = {
|
|
46
|
-
interStylistic: "'salt' on, 'ss01' on, 'ss02' on"
|
|
47
50
|
}, e = {
|
|
51
|
+
interStylistic: "'salt' on, 'ss01' on, 'ss02' on"
|
|
52
|
+
}, t = {
|
|
48
53
|
0: "0",
|
|
49
54
|
1: "4px",
|
|
50
55
|
2: "8px",
|
|
@@ -64,37 +69,37 @@ const s = {
|
|
|
64
69
|
lg: "16px",
|
|
65
70
|
xl: "24px",
|
|
66
71
|
full: "999px"
|
|
67
|
-
},
|
|
72
|
+
}, r = {
|
|
68
73
|
0: 0,
|
|
69
74
|
1: 100,
|
|
70
75
|
2: 200,
|
|
71
76
|
3: 300,
|
|
72
77
|
4: 400,
|
|
73
78
|
5: 500
|
|
74
|
-
},
|
|
79
|
+
}, x = {
|
|
75
80
|
fast: "150ms ease",
|
|
76
81
|
normal: "250ms ease",
|
|
77
82
|
slow: "400ms ease"
|
|
78
83
|
}, i = {
|
|
79
84
|
colors: s,
|
|
80
85
|
fonts: o,
|
|
81
|
-
fontSizes:
|
|
82
|
-
fontWeights:
|
|
83
|
-
fontFeatures:
|
|
84
|
-
spacing:
|
|
86
|
+
fontSizes: n,
|
|
87
|
+
fontWeights: a,
|
|
88
|
+
fontFeatures: e,
|
|
89
|
+
spacing: t,
|
|
85
90
|
radius: p,
|
|
86
|
-
zIndex:
|
|
87
|
-
transitions:
|
|
91
|
+
zIndex: r,
|
|
92
|
+
transitions: x
|
|
88
93
|
};
|
|
89
94
|
export {
|
|
90
|
-
a,
|
|
91
|
-
|
|
95
|
+
n as a,
|
|
96
|
+
a as b,
|
|
92
97
|
s as c,
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
e as d,
|
|
99
|
+
x as e,
|
|
95
100
|
o as f,
|
|
96
101
|
p as r,
|
|
97
|
-
|
|
102
|
+
t as s,
|
|
98
103
|
i as t,
|
|
99
|
-
|
|
104
|
+
r as z
|
|
100
105
|
};
|
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-Bcuwagjb.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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as t, d as o, a as n, b as e, f as r, r as f, s as i, t as c, e as d, z } from "./tokens-
|
|
1
|
+
import { c as t, d as o, a as n, b as e, f as r, r as f, s as i, t as c, e as d, z } from "./tokens-DRT06tcO.js";
|
|
2
2
|
export {
|
|
3
3
|
t as colors,
|
|
4
4
|
o as fontFeatures,
|
package/package.json
CHANGED
package/src/styles/_tokens.scss
CHANGED
|
@@ -19,7 +19,7 @@ $text-inverse: #0B0E14;
|
|
|
19
19
|
|
|
20
20
|
// Brand
|
|
21
21
|
$primary: #6663FD;
|
|
22
|
-
$secondary: #
|
|
22
|
+
$secondary: #3d91ff;
|
|
23
23
|
|
|
24
24
|
// State
|
|
25
25
|
$gray: #474953;
|
|
@@ -29,6 +29,7 @@ $error: #C9636A;
|
|
|
29
29
|
$warning: #D1A64A;
|
|
30
30
|
|
|
31
31
|
// Diamond gradient stops
|
|
32
|
+
$brilliant: #74cee9;
|
|
32
33
|
$diamond: #E6F3FF;
|
|
33
34
|
$diamond-stop-0: #BEACD3;
|
|
34
35
|
$diamond-stop-1: #BEE3F7;
|
|
@@ -36,6 +37,11 @@ $diamond-stop-2: #EFECE7;
|
|
|
36
37
|
$diamond-stop-3: #F8DDDE;
|
|
37
38
|
$diamond-stop-4: #CFE6F1;
|
|
38
39
|
|
|
40
|
+
// Metals
|
|
41
|
+
$gold: #D1A64A;
|
|
42
|
+
$silver: #A09EA6;
|
|
43
|
+
$bronze: #956C68;
|
|
44
|
+
|
|
39
45
|
// -----------------------------------------------------------------------------
|
|
40
46
|
// Typography
|
|
41
47
|
// -----------------------------------------------------------------------------
|
package/dist/tokens-Buhra6sa.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s={bg0:"#0B0E14",bg1:"#111520",surface:"#171C2A",surfaceRaised:"#1D2335",textPrimary:"#F2F4FA",textMuted:"#8B92A6",textInverse:"#0B0E14",primary:"#6663FD",secondary:"#4FA3B3",gray:"#474953",border:"#2A3148",success:"#4DBA8A",error:"#C9636A",warning:"#D1A64A",diamond:"#E6F3FF",diamondStop0:"#BEACD3",diamondStop1:"#BEE3F7",diamondStop2:"#EFECE7",diamondStop3:"#F8DDDE",diamondStop4:"#CFE6F1"},o={primary:'"IBM Plex Sans", sans-serif',secondary:'"Inter", sans-serif',mono:'"IBM Plex Mono", monospace'},n={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"},a={0:"0",1:"4px",2:"8px",3:"12px",4:"16px",5:"24px",6:"32px",7:"48px",8:"64px",9:"96px",10:"128px"},p={0:"0",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px",full:"999px"},r={0:0,1:100,2:200,3:300,4:400,5:500},x={fast:"150ms ease",normal:"250ms ease",slow:"400ms ease"},i={colors:s,fonts:o,fontSizes:n,fontWeights:t,fontFeatures:e,spacing:a,radius:p,zIndex:r,transitions:x};exports.colors=s;exports.fontFeatures=e;exports.fontSizes=n;exports.fontWeights=t;exports.fonts=o;exports.radius=p;exports.spacing=a;exports.tokens=i;exports.transitions=x;exports.zIndex=r;
|