@gostudent/shared-ui-library 1.2.0-DT-16585.2 → 1.2.0
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/README.md +2 -0
- package/dist/index.js +38 -32
- package/dist/src/components/Button/Button.d.ts +5 -1
- package/dist/src/components/Button/Button.d.ts.map +1 -1
- package/dist/src/tokens/output/base/border/tokens.d.ts +8 -0
- package/dist/src/tokens/output/base/border/tokens.d.ts.map +1 -0
- package/dist/src/tokens/output/base/font-mobile/tokens.d.ts +1 -1
- package/dist/src/tokens/output/base/global-colours/tokens.d.ts +1 -0
- package/dist/src/tokens/output/base/global-colours/tokens.d.ts.map +1 -1
- package/dist/src/tokens/output/base/semantic-border/tokens.d.ts +4 -3
- package/dist/src/tokens/output/base/semantic-border/tokens.d.ts.map +1 -1
- package/dist/src/tokens/output/base/semantic-texts/tokens.d.ts +1 -0
- package/dist/src/tokens/output/base/semantic-texts/tokens.d.ts.map +1 -1
- package/dist/src/tokens/output/base/tokens.d.ts +6 -1
- package/dist/src/tokens/output/base/tokens.d.ts.map +1 -1
- package/dist/themes/style.css +1 -1
- package/dist/themes/theme-gs.css +17 -5
- package/dist/themes/theme-sk.css +17 -5
- package/package.json +2 -2
- package/src/tokens/output/base/border/tokens.d.ts +9 -0
- package/src/tokens/output/base/border/tokens.js +7 -0
- package/src/tokens/output/base/border/tokens.ts +9 -0
- package/src/tokens/output/base/border/variables.css +10 -0
- package/src/tokens/output/base/font-mobile/tokens.d.ts +1 -1
- package/src/tokens/output/base/font-mobile/tokens.js +1 -1
- package/src/tokens/output/base/font-mobile/tokens.ts +1 -1
- package/src/tokens/output/base/font-mobile/variables.css +1 -1
- package/src/tokens/output/base/global-colours/tokens.d.ts +1 -0
- package/src/tokens/output/base/global-colours/tokens.js +1 -0
- package/src/tokens/output/base/global-colours/tokens.ts +1 -0
- package/src/tokens/output/base/global-colours/variables.css +1 -0
- package/src/tokens/output/base/semantic-border/tokens.d.ts +4 -3
- package/src/tokens/output/base/semantic-border/tokens.js +4 -3
- package/src/tokens/output/base/semantic-border/tokens.ts +4 -3
- package/src/tokens/output/base/semantic-border/variables.css +4 -3
- package/src/tokens/output/base/semantic-texts/tokens.d.ts +1 -0
- package/src/tokens/output/base/semantic-texts/tokens.js +1 -0
- package/src/tokens/output/base/semantic-texts/tokens.ts +1 -0
- package/src/tokens/output/base/semantic-texts/variables.css +1 -0
- package/src/tokens/output/base/tokens.d.ts +7 -2
- package/src/tokens/output/base/tokens.js +7 -2
- package/src/tokens/output/base/tokens.ts +7 -2
- package/src/tokens/output/base/variables.css +6 -1
- package/src/tokens/output/gs/semantic-colors/variables.css +1 -1
- package/src/tokens/output/sk/semantic-colors/variables.css +1 -1
- package/dist/src/components/PlaceholderButton/Button.d.ts +0 -29
- package/dist/src/components/PlaceholderButton/Button.d.ts.map +0 -1
- package/dist/src/components/PlaceholderButton/index.d.ts +0 -3
- package/dist/src/components/PlaceholderButton/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -210,6 +210,8 @@ scripts/
|
|
|
210
210
|
|
|
211
211
|
## Creating New Components
|
|
212
212
|
|
|
213
|
+
> For the full step-by-step guide (token sync, Figma import, Storybook generation), see [docs/contributing-components.md](docs/contributing-components.md) or the [Confluence page](https://gostudent.atlassian.net/wiki/x/BQCPYw).
|
|
214
|
+
|
|
213
215
|
1. Create a folder in `src/components/ComponentName/`
|
|
214
216
|
2. Add the component files:
|
|
215
217
|
- `ComponentName.tsx` — implementation
|
package/dist/index.js
CHANGED
|
@@ -1,55 +1,61 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
const
|
|
3
|
-
root:
|
|
1
|
+
import { jsx as e, jsxs as x, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
const f = "_root_9vmy3_9", b = "_icon_9vmy3_28", M = "_label_9vmy3_34", g = "_primary_9vmy3_40", N = "_secondary_9vmy3_67", k = "_link_9vmy3_99", L = "_sizeXl_9vmy3_128", S = "_sizeLg_9vmy3_135", j = "_sizeMd_9vmy3_142", h = "_sizeSm_9vmy3_149", B = "_sizeXs_9vmy3_156", C = "_sizeXxs_9vmy3_163", F = "_pressed_9vmy3_172", q = "_focused_9vmy3_176", s = {
|
|
3
|
+
root: f,
|
|
4
4
|
icon: b,
|
|
5
|
-
label:
|
|
6
|
-
primary:
|
|
5
|
+
label: M,
|
|
6
|
+
primary: g,
|
|
7
7
|
secondary: N,
|
|
8
8
|
link: k,
|
|
9
9
|
sizeXl: L,
|
|
10
10
|
sizeLg: S,
|
|
11
|
-
sizeMd:
|
|
12
|
-
sizeSm:
|
|
13
|
-
sizeXs:
|
|
14
|
-
sizeXxs:
|
|
15
|
-
|
|
11
|
+
sizeMd: j,
|
|
12
|
+
sizeSm: h,
|
|
13
|
+
sizeXs: B,
|
|
14
|
+
sizeXxs: C,
|
|
15
|
+
pressed: F,
|
|
16
|
+
focused: q
|
|
17
|
+
}, w = {
|
|
16
18
|
xxs: s.sizeXxs,
|
|
17
19
|
xs: s.sizeXs,
|
|
18
20
|
sm: s.sizeSm,
|
|
19
21
|
md: s.sizeMd,
|
|
20
22
|
lg: s.sizeLg,
|
|
21
23
|
xl: s.sizeXl
|
|
22
|
-
},
|
|
24
|
+
}, A = {
|
|
23
25
|
primary: s.primary,
|
|
24
26
|
secondary: s.secondary,
|
|
25
27
|
link: s.link
|
|
26
28
|
};
|
|
27
|
-
function
|
|
28
|
-
variant:
|
|
29
|
-
size:
|
|
30
|
-
children:
|
|
31
|
-
disabled:
|
|
32
|
-
leftIcon:
|
|
29
|
+
function E({
|
|
30
|
+
variant: r = "primary",
|
|
31
|
+
size: m = "md",
|
|
32
|
+
children: n,
|
|
33
|
+
disabled: l = !1,
|
|
34
|
+
leftIcon: i,
|
|
33
35
|
rightIcon: o,
|
|
34
|
-
className:
|
|
35
|
-
onClick:
|
|
36
|
-
type:
|
|
37
|
-
href:
|
|
38
|
-
target:
|
|
39
|
-
rel: p
|
|
36
|
+
className: y,
|
|
37
|
+
onClick: c,
|
|
38
|
+
type: z = "button",
|
|
39
|
+
href: _,
|
|
40
|
+
target: d,
|
|
41
|
+
rel: p,
|
|
42
|
+
forceFocus: v,
|
|
43
|
+
forceActive: X
|
|
40
44
|
}) {
|
|
41
|
-
const
|
|
45
|
+
const a = [
|
|
42
46
|
s.root,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
A[r],
|
|
48
|
+
w[m],
|
|
49
|
+
v && s.focused,
|
|
50
|
+
X && s.pressed,
|
|
51
|
+
y
|
|
52
|
+
].filter(Boolean).join(" "), t = /* @__PURE__ */ x(u, { children: [
|
|
53
|
+
i && /* @__PURE__ */ e("span", { className: s.icon, children: i }),
|
|
54
|
+
n && /* @__PURE__ */ e("span", { className: s.label, children: n }),
|
|
49
55
|
o && /* @__PURE__ */ e("span", { className: s.icon, children: o })
|
|
50
56
|
] });
|
|
51
|
-
return
|
|
57
|
+
return _ ? /* @__PURE__ */ e("a", { href: _, target: d, rel: p, onClick: c, className: a, children: t }) : /* @__PURE__ */ e("button", { type: z, disabled: l, onClick: c, className: a, children: t });
|
|
52
58
|
}
|
|
53
59
|
export {
|
|
54
|
-
|
|
60
|
+
E as Button
|
|
55
61
|
};
|
|
@@ -15,6 +15,10 @@ export interface ButtonProps {
|
|
|
15
15
|
href?: string;
|
|
16
16
|
target?: string;
|
|
17
17
|
rel?: string;
|
|
18
|
+
/** Force the focus-visible appearance. Useful for Storybook and visual tests. */
|
|
19
|
+
forceFocus?: boolean;
|
|
20
|
+
/** Force the active/pressed appearance. Useful for Storybook and visual tests. */
|
|
21
|
+
forceActive?: boolean;
|
|
18
22
|
}
|
|
19
|
-
export declare function Button({ variant, size, children, disabled, leftIcon, rightIcon, className, onClick, type, href, target, rel, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function Button({ variant, size, children, disabled, leftIcon, rightIcon, className, onClick, type, href, target, rel, forceFocus, forceActive, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
20
24
|
//# 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,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACzE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACzE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kFAAkF;IAClF,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiBD,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAW,EACX,QAAQ,EACR,QAAgB,EAChB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAe,EACf,IAAI,EACJ,MAAM,EACN,GAAG,EACH,UAAU,EACV,WAAW,GACZ,EAAE,WAAW,2CAiCb"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const t: {
|
|
2
|
+
readonly borderSm: "var(--border-sm)";
|
|
3
|
+
readonly borderMd: "var(--border-md)";
|
|
4
|
+
readonly borderLg: "var(--border-lg)";
|
|
5
|
+
readonly borderXs: "var(--border-xs)";
|
|
6
|
+
};
|
|
7
|
+
export type TokenKey = keyof typeof t;
|
|
8
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../src/tokens/output/base/border/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC;;;;;CAKJ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare const t: {
|
|
|
11
11
|
readonly fontMobileSizeMd: "var(--font-mobile-size-md)";
|
|
12
12
|
readonly fontMobileSizeLg: "var(--font-mobile-size-lg)";
|
|
13
13
|
readonly fontMobileSizeXl: "var(--font-mobile-size-xl)";
|
|
14
|
-
readonly
|
|
14
|
+
readonly fontMobileSize2xl: "var(--font-mobile-size-2xl)";
|
|
15
15
|
readonly fontMobileSize3xl: "var(--font-mobile-size-3xl)";
|
|
16
16
|
readonly fontMobileSize4xl: "var(--font-mobile-size-4xl)";
|
|
17
17
|
readonly fontMobileLineHeightXxs: "var(--font-mobile-line-height-xxs)";
|
|
@@ -10,6 +10,7 @@ export declare const t: {
|
|
|
10
10
|
readonly warning700: "var(--warning-700)";
|
|
11
11
|
readonly colorBlack: "var(--color-black)";
|
|
12
12
|
readonly colorWhite: "var(--color-white)";
|
|
13
|
+
readonly colorTransparent: "var(--color-transparent)";
|
|
13
14
|
readonly steel50: "var(--steel-50)";
|
|
14
15
|
readonly steel100: "var(--steel-100)";
|
|
15
16
|
readonly steel200: "var(--steel-200)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../src/tokens/output/base/global-colours/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../src/tokens/output/base/global-colours/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCJ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare const t: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
2
|
+
readonly borderDefault: "var(--border-default)";
|
|
3
|
+
readonly borderMedium: "var(--border-medium)";
|
|
4
|
+
readonly borderStrong: "var(--border-strong)";
|
|
5
|
+
readonly borderThin: "var(--border-thin)";
|
|
5
6
|
};
|
|
6
7
|
export type TokenKey = keyof typeof t;
|
|
7
8
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../src/tokens/output/base/semantic-border/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../src/tokens/output/base/semantic-border/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC;;;;;CAKJ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const t: {
|
|
2
|
+
readonly textContentH1: "var(--text-content-h1)";
|
|
2
3
|
readonly textButtonFontSizeXxs: "var(--text-button-font-size-xxs)";
|
|
3
4
|
readonly textButtonFontSizeXs: "var(--text-button-font-size-xs)";
|
|
4
5
|
readonly textButtonFontSizeSm: "var(--text-button-font-size-sm)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../src/tokens/output/base/semantic-texts/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../../src/tokens/output/base/semantic-texts/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;CAcJ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,CAAC"}
|
|
@@ -35,7 +35,7 @@ export declare const t: {
|
|
|
35
35
|
readonly fontMobileSizeMd: "var(--font-mobile-size-md)";
|
|
36
36
|
readonly fontMobileSizeLg: "var(--font-mobile-size-lg)";
|
|
37
37
|
readonly fontMobileSizeXl: "var(--font-mobile-size-xl)";
|
|
38
|
-
readonly
|
|
38
|
+
readonly fontMobileSize2xl: "var(--font-mobile-size-2xl)";
|
|
39
39
|
readonly fontMobileSize3xl: "var(--font-mobile-size-3xl)";
|
|
40
40
|
readonly fontMobileSize4xl: "var(--font-mobile-size-4xl)";
|
|
41
41
|
readonly fontMobileLineHeightXxs: "var(--font-mobile-line-height-xxs)";
|
|
@@ -64,6 +64,7 @@ export declare const t: {
|
|
|
64
64
|
readonly warning700: "var(--warning-700)";
|
|
65
65
|
readonly colorBlack: "var(--color-black)";
|
|
66
66
|
readonly colorWhite: "var(--color-white)";
|
|
67
|
+
readonly colorTransparent: "var(--color-transparent)";
|
|
67
68
|
readonly steel50: "var(--steel-50)";
|
|
68
69
|
readonly steel100: "var(--steel-100)";
|
|
69
70
|
readonly steel200: "var(--steel-200)";
|
|
@@ -102,6 +103,10 @@ export declare const t: {
|
|
|
102
103
|
readonly md: "var(--md)";
|
|
103
104
|
readonly lg: "var(--lg)";
|
|
104
105
|
readonly xs: "var(--xs)";
|
|
106
|
+
readonly borderSm: "var(--border-sm)";
|
|
107
|
+
readonly borderMd: "var(--border-md)";
|
|
108
|
+
readonly borderLg: "var(--border-lg)";
|
|
109
|
+
readonly borderXs: "var(--border-xs)";
|
|
105
110
|
};
|
|
106
111
|
export type TokenKey = keyof typeof t;
|
|
107
112
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/output/base/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/output/base/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GJ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,CAAC"}
|
package/dist/themes/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_9vmy3_9{display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-xxs);border:var(--border-default) solid transparent;border-radius:var(--radius-xs);cursor:pointer;font-family:var(--font-desktop-family-worksans);font-weight:var(--font-desktop-weight-medium);white-space:nowrap;text-decoration:none;transition:background-color .15s ease,color .15s ease,border-color .15s ease}._root_9vmy3_9:disabled{cursor:not-allowed}._icon_9vmy3_28{display:inline-flex;align-items:center;flex-shrink:0}._label_9vmy3_34{display:inline-block}._primary_9vmy3_40{background-color:var(--color-button-primary-background-default);color:var(--color-button-primary-text-default)}._primary_9vmy3_40:hover:not(:disabled){background-color:var(--color-button-primary-background-hover)}._primary_9vmy3_40:active:not(:disabled){background-color:var(--color-button-primary-background-pressed)}._primary_9vmy3_40:focus-visible{background-color:var(--color-button-primary-background-focus);outline:var(--border-default) solid var(--color-button-primary-border-focus-outside);outline-offset:var(--border-default)}._primary_9vmy3_40:disabled{background-color:var(--color-button-primary-background-disabled);color:var(--color-button-primary-text-disabled);border-color:var(--color-button-primary-border-disabled)}._secondary_9vmy3_67{background-color:var(--color-button-secondary-background-default);color:var(--color-button-secondary-text-default-focus);border-color:var(--color-button-secondary-border-default)}._secondary_9vmy3_67:hover:not(:disabled){background-color:var(--color-button-secondary-background-hover);color:var(--color-button-secondary-text-hover-pressed);border-color:var(--color-button-secondary-border-hover)}._secondary_9vmy3_67:active:not(:disabled){background-color:var(--color-button-secondary-background-pressed);color:var(--color-button-secondary-text-hover-pressed);border-color:var(--color-button-secondary-border-pressed)}._secondary_9vmy3_67:focus-visible{background-color:var(--color-button-secondary-background-focus);outline:var(--border-default) solid var(--color-button-secondary-border-focus-outside);outline-offset:var(--border-default)}._secondary_9vmy3_67:disabled{background-color:var(--color-button-secondary-background-disabled);color:var(--color-button-secondary-text-disabled);border-color:var(--color-button-secondary-border-disabled)}._link_9vmy3_99{background-color:var(--color-button-link-background-default);color:var(--color-button-link-text-default)}._link_9vmy3_99:hover:not(:disabled){background-color:var(--color-button-link-background-hover);color:var(--color-button-link-text-hover)}._link_9vmy3_99:active:not(:disabled){background-color:var(--color-button-link-background-pressed);color:var(--color-button-link-text-pressed)}._link_9vmy3_99:focus-visible{background-color:var(--color-button-link-background-focus);color:var(--color-button-link-text-focus);outline:var(--border-default) solid var(--color-button-link-border-focus);outline-offset:var(--border-default)}._link_9vmy3_99:disabled{background-color:var(--color-button-link-background-disabled);color:var(--color-button-link-text-disabled)}._sizeXl_9vmy3_128{height:var(--spacing-3xl);padding:0 var(--spacing-md);font-size:var(--text-button-font-size-xl);line-height:var(--text-button-line-height-xl)}._sizeLg_9vmy3_135{height:var(--spacing-2xl);padding:0 var(--spacing-sm);font-size:var(--text-button-font-size-lg);line-height:var(--text-button-line-height-lg)}._sizeMd_9vmy3_142{height:var(--spacing-xl);padding:0 var(--spacing-sm);font-size:var(--text-button-font-size-md);line-height:var(--text-button-line-height-md)}._sizeSm_9vmy3_149{height:2.75rem;padding:0 var(--spacing-xs);font-size:var(--text-button-font-size-sm);line-height:var(--text-button-line-height-sm)}._sizeXs_9vmy3_156{height:var(--spacing-md);padding:0 var(--spacing-xs);font-size:var(--text-button-font-size-xs);line-height:var(--text-button-line-height-xs)}._sizeXxs_9vmy3_163{height:var(--spacing-sm);padding:0 var(--spacing-xxs);font-size:var(--text-button-font-size-xxs);line-height:var(--text-button-line-height-xxs)}._primary_9vmy3_40._pressed_9vmy3_172:not(:disabled){background-color:var(--color-button-primary-background-pressed)}._primary_9vmy3_40._focused_9vmy3_176:not(:disabled){background-color:var(--color-button-primary-background-focus);outline:var(--border-default) solid var(--color-button-primary-border-focus-outside);outline-offset:var(--border-default)}._secondary_9vmy3_67._pressed_9vmy3_172:not(:disabled){background-color:var(--color-button-secondary-background-pressed);color:var(--color-button-secondary-text-hover-pressed);border-color:var(--color-button-secondary-border-pressed)}._secondary_9vmy3_67._focused_9vmy3_176:not(:disabled){background-color:var(--color-button-secondary-background-focus);outline:var(--border-default) solid var(--color-button-secondary-border-focus-outside);outline-offset:var(--border-default)}._link_9vmy3_99._pressed_9vmy3_172:not(:disabled){background-color:var(--color-button-link-background-pressed);color:var(--color-button-link-text-pressed)}._link_9vmy3_99._focused_9vmy3_176:not(:disabled){background-color:var(--color-button-link-background-focus);color:var(--color-button-link-text-focus);outline:var(--border-default) solid var(--color-button-link-border-focus);outline-offset:var(--border-default)}
|
package/dist/themes/theme-gs.css
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
--font-mobile-size-md: 1rem;
|
|
41
41
|
--font-mobile-size-lg: 1.125rem;
|
|
42
42
|
--font-mobile-size-xl: 1.25rem;
|
|
43
|
-
--font-mobile-size-
|
|
43
|
+
--font-mobile-size-2xl: 1.5rem;
|
|
44
44
|
--font-mobile-size-3xl: 1.75rem;
|
|
45
45
|
--font-mobile-size-4xl: 2rem;
|
|
46
46
|
--font-mobile-line-height-xxs: 1rem;
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
--warning-700: #976c00;
|
|
70
70
|
--color-black: #000000;
|
|
71
71
|
--color-white: #ffffff;
|
|
72
|
+
--color-transparent: rgba(255, 255, 255, 0);
|
|
72
73
|
--steel-50: #f8f8fa;
|
|
73
74
|
--steel-100: #f0f1f4;
|
|
74
75
|
--steel-200: #e9e9ef;
|
|
@@ -107,6 +108,10 @@
|
|
|
107
108
|
--md: 0.1875rem;
|
|
108
109
|
--lg: 0.25rem;
|
|
109
110
|
--xs: 0.0625rem;
|
|
111
|
+
--border-sm: 0.125rem;
|
|
112
|
+
--border-md: 0.1875rem;
|
|
113
|
+
--border-lg: 0.25rem;
|
|
114
|
+
--border-xs: 0.0625rem;
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
/**
|
|
@@ -216,7 +221,7 @@
|
|
|
216
221
|
--color-button-link-text-disabled: #caced4;
|
|
217
222
|
--color-button-link-text-focus: #0b2fac;
|
|
218
223
|
--color-button-link-border-focus: #0b2fac;
|
|
219
|
-
--color-overlay-50:
|
|
224
|
+
--color-overlay-50: rgba(85, 89, 120, 0.3);
|
|
220
225
|
--color-feedback-positive-background: #f2faf6;
|
|
221
226
|
--color-feedback-positive-icon: #4a9a6f;
|
|
222
227
|
--color-feedback-positive-border: #224632;
|
|
@@ -233,6 +238,7 @@
|
|
|
233
238
|
*/
|
|
234
239
|
|
|
235
240
|
:root {
|
|
241
|
+
--text-content-h1: String value;
|
|
236
242
|
--text-button-font-size-xxs: 0.625rem;
|
|
237
243
|
--text-button-font-size-xs: 0.75rem;
|
|
238
244
|
--text-button-font-size-sm: 1rem;
|
|
@@ -252,8 +258,14 @@
|
|
|
252
258
|
*/
|
|
253
259
|
|
|
254
260
|
:root {
|
|
255
|
-
--
|
|
256
|
-
--
|
|
257
|
-
--
|
|
261
|
+
--border-default: 0.125rem;
|
|
262
|
+
--border-medium: 0.1875rem;
|
|
263
|
+
--border-strong: 0.25rem;
|
|
264
|
+
--border-thin: 0.0625rem;
|
|
258
265
|
}
|
|
259
266
|
|
|
267
|
+
|
|
268
|
+
* {
|
|
269
|
+
-webkit-font-smoothing: antialiased;
|
|
270
|
+
-moz-osx-font-smoothing: grayscale;
|
|
271
|
+
}
|
package/dist/themes/theme-sk.css
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
--font-mobile-size-md: 1rem;
|
|
41
41
|
--font-mobile-size-lg: 1.125rem;
|
|
42
42
|
--font-mobile-size-xl: 1.25rem;
|
|
43
|
-
--font-mobile-size-
|
|
43
|
+
--font-mobile-size-2xl: 1.5rem;
|
|
44
44
|
--font-mobile-size-3xl: 1.75rem;
|
|
45
45
|
--font-mobile-size-4xl: 2rem;
|
|
46
46
|
--font-mobile-line-height-xxs: 1rem;
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
--warning-700: #976c00;
|
|
70
70
|
--color-black: #000000;
|
|
71
71
|
--color-white: #ffffff;
|
|
72
|
+
--color-transparent: rgba(255, 255, 255, 0);
|
|
72
73
|
--steel-50: #f8f8fa;
|
|
73
74
|
--steel-100: #f0f1f4;
|
|
74
75
|
--steel-200: #e9e9ef;
|
|
@@ -107,6 +108,10 @@
|
|
|
107
108
|
--md: 0.1875rem;
|
|
108
109
|
--lg: 0.25rem;
|
|
109
110
|
--xs: 0.0625rem;
|
|
111
|
+
--border-sm: 0.125rem;
|
|
112
|
+
--border-md: 0.1875rem;
|
|
113
|
+
--border-lg: 0.25rem;
|
|
114
|
+
--border-xs: 0.0625rem;
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
/**
|
|
@@ -226,7 +231,7 @@
|
|
|
226
231
|
--color-button-link-text-disabled: #c2c6ce;
|
|
227
232
|
--color-button-link-text-focus: #131e29;
|
|
228
233
|
--color-button-link-border-focus: #131e29;
|
|
229
|
-
--color-overlay-50:
|
|
234
|
+
--color-overlay-50: rgba(85, 89, 120, 0.3);
|
|
230
235
|
--color-feedback-positive-background: #f2faf6;
|
|
231
236
|
--color-feedback-positive-icon: #4a9a6f;
|
|
232
237
|
--color-feedback-positive-border: #224632;
|
|
@@ -243,6 +248,7 @@
|
|
|
243
248
|
*/
|
|
244
249
|
|
|
245
250
|
:root {
|
|
251
|
+
--text-content-h1: String value;
|
|
246
252
|
--text-button-font-size-xxs: 0.625rem;
|
|
247
253
|
--text-button-font-size-xs: 0.75rem;
|
|
248
254
|
--text-button-font-size-sm: 1rem;
|
|
@@ -262,8 +268,14 @@
|
|
|
262
268
|
*/
|
|
263
269
|
|
|
264
270
|
:root {
|
|
265
|
-
--
|
|
266
|
-
--
|
|
267
|
-
--
|
|
271
|
+
--border-default: 0.125rem;
|
|
272
|
+
--border-medium: 0.1875rem;
|
|
273
|
+
--border-strong: 0.25rem;
|
|
274
|
+
--border-thin: 0.0625rem;
|
|
268
275
|
}
|
|
269
276
|
|
|
277
|
+
|
|
278
|
+
* {
|
|
279
|
+
-webkit-font-smoothing: antialiased;
|
|
280
|
+
-moz-osx-font-smoothing: grayscale;
|
|
281
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gostudent/shared-ui-library",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"lint": "eslint . --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
|
|
75
75
|
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
|
76
76
|
"test": "vitest",
|
|
77
|
-
"test:ci": "vitest run --coverage
|
|
77
|
+
"test:ci": "vitest run --coverage",
|
|
78
78
|
"test:coverage": "vitest run --coverage",
|
|
79
79
|
"check": "node ./scripts/checkVersions.js package-lock node",
|
|
80
80
|
"build:tokens": "node scripts/build-tokens.mjs",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Auto-generated by scripts/build-tokens.mjs — do not edit manually
|
|
2
|
+
export const t = {
|
|
3
|
+
borderSm: 'var(--border-sm)',
|
|
4
|
+
borderMd: 'var(--border-md)',
|
|
5
|
+
borderLg: 'var(--border-lg)',
|
|
6
|
+
borderXs: 'var(--border-xs)'
|
|
7
|
+
} as const;
|
|
8
|
+
|
|
9
|
+
export type TokenKey = keyof typeof t;
|
|
@@ -12,7 +12,7 @@ export declare const t: {
|
|
|
12
12
|
readonly fontMobileSizeMd: string;
|
|
13
13
|
readonly fontMobileSizeLg: string;
|
|
14
14
|
readonly fontMobileSizeXl: string;
|
|
15
|
-
readonly
|
|
15
|
+
readonly fontMobileSize2xl: string;
|
|
16
16
|
readonly fontMobileSize3xl: string;
|
|
17
17
|
readonly fontMobileSize4xl: string;
|
|
18
18
|
readonly fontMobileLineHeightXxs: string;
|
|
@@ -12,7 +12,7 @@ export const t = {
|
|
|
12
12
|
fontMobileSizeMd: 'var(--font-mobile-size-md)',
|
|
13
13
|
fontMobileSizeLg: 'var(--font-mobile-size-lg)',
|
|
14
14
|
fontMobileSizeXl: 'var(--font-mobile-size-xl)',
|
|
15
|
-
|
|
15
|
+
fontMobileSize2xl: 'var(--font-mobile-size-2xl)',
|
|
16
16
|
fontMobileSize3xl: 'var(--font-mobile-size-3xl)',
|
|
17
17
|
fontMobileSize4xl: 'var(--font-mobile-size-4xl)',
|
|
18
18
|
fontMobileLineHeightXxs: 'var(--font-mobile-line-height-xxs)',
|
|
@@ -12,7 +12,7 @@ export const t = {
|
|
|
12
12
|
fontMobileSizeMd: 'var(--font-mobile-size-md)',
|
|
13
13
|
fontMobileSizeLg: 'var(--font-mobile-size-lg)',
|
|
14
14
|
fontMobileSizeXl: 'var(--font-mobile-size-xl)',
|
|
15
|
-
|
|
15
|
+
fontMobileSize2xl: 'var(--font-mobile-size-2xl)',
|
|
16
16
|
fontMobileSize3xl: 'var(--font-mobile-size-3xl)',
|
|
17
17
|
fontMobileSize4xl: 'var(--font-mobile-size-4xl)',
|
|
18
18
|
fontMobileLineHeightXxs: 'var(--font-mobile-line-height-xxs)',
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--font-mobile-size-md: 1rem;
|
|
16
16
|
--font-mobile-size-lg: 1.125rem;
|
|
17
17
|
--font-mobile-size-xl: 1.25rem;
|
|
18
|
-
--font-mobile-size-
|
|
18
|
+
--font-mobile-size-2xl: 1.5rem;
|
|
19
19
|
--font-mobile-size-3xl: 1.75rem;
|
|
20
20
|
--font-mobile-size-4xl: 2rem;
|
|
21
21
|
--font-mobile-line-height-xxs: 1rem;
|
|
@@ -11,6 +11,7 @@ export const t = {
|
|
|
11
11
|
warning700: 'var(--warning-700)',
|
|
12
12
|
colorBlack: 'var(--color-black)',
|
|
13
13
|
colorWhite: 'var(--color-white)',
|
|
14
|
+
colorTransparent: 'var(--color-transparent)',
|
|
14
15
|
steel50: 'var(--steel-50)',
|
|
15
16
|
steel100: 'var(--steel-100)',
|
|
16
17
|
steel200: 'var(--steel-200)',
|
|
@@ -11,6 +11,7 @@ export const t = {
|
|
|
11
11
|
warning700: 'var(--warning-700)',
|
|
12
12
|
colorBlack: 'var(--color-black)',
|
|
13
13
|
colorWhite: 'var(--color-white)',
|
|
14
|
+
colorTransparent: 'var(--color-transparent)',
|
|
14
15
|
steel50: 'var(--steel-50)',
|
|
15
16
|
steel100: 'var(--steel-100)',
|
|
16
17
|
steel200: 'var(--steel-200)',
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// Auto-generated by scripts/build-tokens.mjs — do not edit manually
|
|
2
2
|
export declare const t: {
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
3
|
+
readonly borderDefault: string;
|
|
4
|
+
readonly borderMedium: string;
|
|
5
|
+
readonly borderStrong: string;
|
|
6
|
+
readonly borderThin: string
|
|
6
7
|
};
|
|
7
8
|
|
|
8
9
|
export type TokenKey = keyof typeof t;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Auto-generated by scripts/build-tokens.mjs — do not edit manually
|
|
2
2
|
export const t = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
borderDefault: 'var(--border-default)',
|
|
4
|
+
borderMedium: 'var(--border-medium)',
|
|
5
|
+
borderStrong: 'var(--border-strong)',
|
|
6
|
+
borderThin: 'var(--border-thin)'
|
|
6
7
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// Auto-generated by scripts/build-tokens.mjs — do not edit manually
|
|
2
2
|
export const t = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
borderDefault: 'var(--border-default)',
|
|
4
|
+
borderMedium: 'var(--border-medium)',
|
|
5
|
+
borderStrong: 'var(--border-strong)',
|
|
6
|
+
borderThin: 'var(--border-thin)'
|
|
6
7
|
} as const;
|
|
7
8
|
|
|
8
9
|
export type TokenKey = keyof typeof t;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Auto-generated by scripts/build-tokens.mjs — do not edit manually
|
|
2
2
|
export const t = {
|
|
3
|
+
textContentH1: 'var(--text-content-h1)',
|
|
3
4
|
textButtonFontSizeXxs: 'var(--text-button-font-size-xxs)',
|
|
4
5
|
textButtonFontSizeXs: 'var(--text-button-font-size-xs)',
|
|
5
6
|
textButtonFontSizeSm: 'var(--text-button-font-size-sm)',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Auto-generated by scripts/build-tokens.mjs — do not edit manually
|
|
2
2
|
export const t = {
|
|
3
|
+
textContentH1: 'var(--text-content-h1)',
|
|
3
4
|
textButtonFontSizeXxs: 'var(--text-button-font-size-xxs)',
|
|
4
5
|
textButtonFontSizeXs: 'var(--text-button-font-size-xs)',
|
|
5
6
|
textButtonFontSizeSm: 'var(--text-button-font-size-sm)',
|
|
@@ -36,7 +36,7 @@ export declare const t: {
|
|
|
36
36
|
readonly fontMobileSizeMd: string;
|
|
37
37
|
readonly fontMobileSizeLg: string;
|
|
38
38
|
readonly fontMobileSizeXl: string;
|
|
39
|
-
readonly
|
|
39
|
+
readonly fontMobileSize2xl: string;
|
|
40
40
|
readonly fontMobileSize3xl: string;
|
|
41
41
|
readonly fontMobileSize4xl: string;
|
|
42
42
|
readonly fontMobileLineHeightXxs: string;
|
|
@@ -65,6 +65,7 @@ export declare const t: {
|
|
|
65
65
|
readonly warning700: string;
|
|
66
66
|
readonly colorBlack: string;
|
|
67
67
|
readonly colorWhite: string;
|
|
68
|
+
readonly colorTransparent: string;
|
|
68
69
|
readonly steel50: string;
|
|
69
70
|
readonly steel100: string;
|
|
70
71
|
readonly steel200: string;
|
|
@@ -102,7 +103,11 @@ export declare const t: {
|
|
|
102
103
|
readonly sm: string;
|
|
103
104
|
readonly md: string;
|
|
104
105
|
readonly lg: string;
|
|
105
|
-
readonly xs: string
|
|
106
|
+
readonly xs: string;
|
|
107
|
+
readonly borderSm: string;
|
|
108
|
+
readonly borderMd: string;
|
|
109
|
+
readonly borderLg: string;
|
|
110
|
+
readonly borderXs: string
|
|
106
111
|
};
|
|
107
112
|
|
|
108
113
|
export type TokenKey = keyof typeof t;
|
|
@@ -36,7 +36,7 @@ export const t = {
|
|
|
36
36
|
fontMobileSizeMd: 'var(--font-mobile-size-md)',
|
|
37
37
|
fontMobileSizeLg: 'var(--font-mobile-size-lg)',
|
|
38
38
|
fontMobileSizeXl: 'var(--font-mobile-size-xl)',
|
|
39
|
-
|
|
39
|
+
fontMobileSize2xl: 'var(--font-mobile-size-2xl)',
|
|
40
40
|
fontMobileSize3xl: 'var(--font-mobile-size-3xl)',
|
|
41
41
|
fontMobileSize4xl: 'var(--font-mobile-size-4xl)',
|
|
42
42
|
fontMobileLineHeightXxs: 'var(--font-mobile-line-height-xxs)',
|
|
@@ -65,6 +65,7 @@ export const t = {
|
|
|
65
65
|
warning700: 'var(--warning-700)',
|
|
66
66
|
colorBlack: 'var(--color-black)',
|
|
67
67
|
colorWhite: 'var(--color-white)',
|
|
68
|
+
colorTransparent: 'var(--color-transparent)',
|
|
68
69
|
steel50: 'var(--steel-50)',
|
|
69
70
|
steel100: 'var(--steel-100)',
|
|
70
71
|
steel200: 'var(--steel-200)',
|
|
@@ -102,5 +103,9 @@ export const t = {
|
|
|
102
103
|
sm: 'var(--sm)',
|
|
103
104
|
md: 'var(--md)',
|
|
104
105
|
lg: 'var(--lg)',
|
|
105
|
-
xs: 'var(--xs)'
|
|
106
|
+
xs: 'var(--xs)',
|
|
107
|
+
borderSm: 'var(--border-sm)',
|
|
108
|
+
borderMd: 'var(--border-md)',
|
|
109
|
+
borderLg: 'var(--border-lg)',
|
|
110
|
+
borderXs: 'var(--border-xs)'
|
|
106
111
|
};
|
|
@@ -36,7 +36,7 @@ export const t = {
|
|
|
36
36
|
fontMobileSizeMd: 'var(--font-mobile-size-md)',
|
|
37
37
|
fontMobileSizeLg: 'var(--font-mobile-size-lg)',
|
|
38
38
|
fontMobileSizeXl: 'var(--font-mobile-size-xl)',
|
|
39
|
-
|
|
39
|
+
fontMobileSize2xl: 'var(--font-mobile-size-2xl)',
|
|
40
40
|
fontMobileSize3xl: 'var(--font-mobile-size-3xl)',
|
|
41
41
|
fontMobileSize4xl: 'var(--font-mobile-size-4xl)',
|
|
42
42
|
fontMobileLineHeightXxs: 'var(--font-mobile-line-height-xxs)',
|
|
@@ -65,6 +65,7 @@ export const t = {
|
|
|
65
65
|
warning700: 'var(--warning-700)',
|
|
66
66
|
colorBlack: 'var(--color-black)',
|
|
67
67
|
colorWhite: 'var(--color-white)',
|
|
68
|
+
colorTransparent: 'var(--color-transparent)',
|
|
68
69
|
steel50: 'var(--steel-50)',
|
|
69
70
|
steel100: 'var(--steel-100)',
|
|
70
71
|
steel200: 'var(--steel-200)',
|
|
@@ -102,7 +103,11 @@ export const t = {
|
|
|
102
103
|
sm: 'var(--sm)',
|
|
103
104
|
md: 'var(--md)',
|
|
104
105
|
lg: 'var(--lg)',
|
|
105
|
-
xs: 'var(--xs)'
|
|
106
|
+
xs: 'var(--xs)',
|
|
107
|
+
borderSm: 'var(--border-sm)',
|
|
108
|
+
borderMd: 'var(--border-md)',
|
|
109
|
+
borderLg: 'var(--border-lg)',
|
|
110
|
+
borderXs: 'var(--border-xs)'
|
|
106
111
|
} as const;
|
|
107
112
|
|
|
108
113
|
export type TokenKey = keyof typeof t;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
--font-mobile-size-md: 1rem;
|
|
40
40
|
--font-mobile-size-lg: 1.125rem;
|
|
41
41
|
--font-mobile-size-xl: 1.25rem;
|
|
42
|
-
--font-mobile-size-
|
|
42
|
+
--font-mobile-size-2xl: 1.5rem;
|
|
43
43
|
--font-mobile-size-3xl: 1.75rem;
|
|
44
44
|
--font-mobile-size-4xl: 2rem;
|
|
45
45
|
--font-mobile-line-height-xxs: 1rem;
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
--warning-700: #976c00;
|
|
69
69
|
--color-black: #000000;
|
|
70
70
|
--color-white: #ffffff;
|
|
71
|
+
--color-transparent: rgba(255, 255, 255, 0);
|
|
71
72
|
--steel-50: #f8f8fa;
|
|
72
73
|
--steel-100: #f0f1f4;
|
|
73
74
|
--steel-200: #e9e9ef;
|
|
@@ -106,4 +107,8 @@
|
|
|
106
107
|
--md: 0.1875rem;
|
|
107
108
|
--lg: 0.25rem;
|
|
108
109
|
--xs: 0.0625rem;
|
|
110
|
+
--border-sm: 0.125rem;
|
|
111
|
+
--border-md: 0.1875rem;
|
|
112
|
+
--border-lg: 0.25rem;
|
|
113
|
+
--border-xs: 0.0625rem;
|
|
109
114
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
--color-button-link-text-disabled: #caced4;
|
|
39
39
|
--color-button-link-text-focus: #0b2fac;
|
|
40
40
|
--color-button-link-border-focus: #0b2fac;
|
|
41
|
-
--color-overlay-50:
|
|
41
|
+
--color-overlay-50: rgba(85, 89, 120, 0.3);
|
|
42
42
|
--color-feedback-positive-background: #f2faf6;
|
|
43
43
|
--color-feedback-positive-icon: #4a9a6f;
|
|
44
44
|
--color-feedback-positive-border: #224632;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
--color-button-link-text-disabled: #c2c6ce;
|
|
39
39
|
--color-button-link-text-focus: #131e29;
|
|
40
40
|
--color-button-link-border-focus: #131e29;
|
|
41
|
-
--color-overlay-50:
|
|
41
|
+
--color-overlay-50: rgba(85, 89, 120, 0.3);
|
|
42
42
|
--color-feedback-positive-background: #f2faf6;
|
|
43
43
|
--color-feedback-positive-icon: #4a9a6f;
|
|
44
44
|
--color-feedback-positive-border: #224632;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface ButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* PlaceholderButton label text
|
|
6
|
-
*/
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* PlaceholderButton variant
|
|
10
|
-
*/
|
|
11
|
-
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
12
|
-
/**
|
|
13
|
-
* PlaceholderButton size
|
|
14
|
-
*/
|
|
15
|
-
size?: 'small' | 'medium' | 'large';
|
|
16
|
-
/**
|
|
17
|
-
* Disabled state
|
|
18
|
-
*/
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Click handler
|
|
22
|
-
*/
|
|
23
|
-
onClick?: () => void;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Primary UI component for user interaction
|
|
27
|
-
*/
|
|
28
|
-
export declare const Button: React.FC<ButtonProps>;
|
|
29
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/PlaceholderButton/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACpE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgBxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/PlaceholderButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|