@situaction/traq-ui-ste 1.0.10 → 1.0.12
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 +6 -3
- package/dist/components/button/Button.js +50 -38
- package/dist/components/icon-button/IconButton.d.ts +14 -0
- package/dist/components/icon-button/IconButton.js +52 -0
- package/dist/components/input/Input.d.ts +16 -2
- package/dist/components/input/Input.js +130 -8
- package/dist/components/interface.d.ts +1 -0
- package/dist/components/interface.js +1 -0
- package/dist/components/tabs/Tabs.d.ts +8 -0
- package/dist/components/tabs/Tabs.js +43 -0
- package/dist/components/tag/Tag.d.ts +13 -0
- package/dist/components/tag/Tag.js +48 -0
- package/dist/components/theme/ThemeContext.d.ts +19 -5
- package/dist/components/theme/ThemeContext.js +28 -12
- package/dist/components/theme/createTheme.d.ts +4 -1
- package/dist/components/theme/createTheme.js +13 -1
- package/dist/main.d.ts +3 -0
- package/dist/main.js +15 -8
- package/dist/styles/Button.css +1 -1
- package/dist/styles/IconButton.css +1 -0
- package/dist/styles/Input.css +1 -1
- package/dist/styles/Tabs.css +1 -0
- package/dist/styles/Tag.css +1 -0
- package/dist/styles/index.css +1 -0
- package/dist/styles/main.css +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Color } from '../interface';
|
|
2
3
|
|
|
3
4
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
mode?:
|
|
5
|
-
color?:
|
|
5
|
+
mode?: 'primary' | 'secondary' | 'tertiary' | 'ghost'; /** Is this the principal call to action on the page? */
|
|
6
|
+
color?: Color; /** What background color to use (blue, red, ...)*/
|
|
7
|
+
colorMode?: 'light' | 'dark'; /** what mode do you use for light or dark color **/
|
|
6
8
|
size?: 's' | 'm' | 'l' | 'xl'; /** How large should the button be? */
|
|
7
9
|
label: string; /** button contents */
|
|
10
|
+
error?: boolean;
|
|
8
11
|
children?: ReactNode; /** Additional content inside the button */
|
|
9
12
|
childrenPosition?: 'left' | 'right' | 'both'; /** Position of the children relative to the label */
|
|
10
13
|
onClick?: () => void; /** Optional click handler */
|
|
@@ -12,5 +15,5 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
12
15
|
/**
|
|
13
16
|
* Primary UI component for user interaction
|
|
14
17
|
*/
|
|
15
|
-
export declare const Button: ({ mode, size, color, label, children, childrenPosition, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Button: ({ mode, size, color, colorMode, label, error, children, childrenPosition, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -1,52 +1,64 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import '../../styles/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"button-
|
|
7
|
-
"button-
|
|
8
|
-
"button-
|
|
9
|
-
"button-
|
|
10
|
-
"button-
|
|
11
|
-
"button-
|
|
12
|
-
"button-
|
|
13
|
-
"button-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsxs as y, jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import '../../styles/index.css';import '../../styles/Button.css';/* empty css */
|
|
3
|
+
import { useEffect as z } from "react";
|
|
4
|
+
const c = "_button_tplzh_196", a = {
|
|
5
|
+
button: c,
|
|
6
|
+
"button-primary": "_button-primary_tplzh_211",
|
|
7
|
+
"button-secondary": "_button-secondary_tplzh_226",
|
|
8
|
+
"button-tertiary": "_button-tertiary_tplzh_245",
|
|
9
|
+
"button-ghost": "_button-ghost_tplzh_264",
|
|
10
|
+
"button-error": "_button-error_tplzh_279",
|
|
11
|
+
"button-size-xl": "_button-size-xl_tplzh_294",
|
|
12
|
+
"button-size-l": "_button-size-l_tplzh_299",
|
|
13
|
+
"button-size-m": "_button-size-m_tplzh_304",
|
|
14
|
+
"button-size-s": "_button-size-s_tplzh_309",
|
|
15
|
+
"button-gap-xl": "_button-gap-xl_tplzh_314",
|
|
16
|
+
"button-gap-l": "_button-gap-l_tplzh_317",
|
|
17
|
+
"button-gap-m": "_button-gap-m_tplzh_320",
|
|
18
|
+
"button-gap-s": "_button-gap-s_tplzh_320"
|
|
19
|
+
}, d = ({
|
|
20
|
+
mode: s = "primary",
|
|
21
|
+
size: u = "m",
|
|
22
|
+
color: t,
|
|
23
|
+
colorMode: r,
|
|
24
|
+
label: _,
|
|
25
|
+
error: p,
|
|
19
26
|
children: o,
|
|
20
|
-
childrenPosition:
|
|
21
|
-
...
|
|
27
|
+
childrenPosition: n,
|
|
28
|
+
...e
|
|
22
29
|
}) => {
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
const l = () => p ? "error" : s;
|
|
31
|
+
z(() => {
|
|
32
|
+
r && !t && console.warn("`colorMode` is defined but `color` is missing. `colorMode` will be ignored.");
|
|
33
|
+
}, [t]);
|
|
34
|
+
const i = [
|
|
35
|
+
a.button,
|
|
36
|
+
a[`button-${l()}`],
|
|
37
|
+
a[`button-size-${u}`],
|
|
38
|
+
a[`button-gap-${u}`],
|
|
28
39
|
"flexHorizontalCenter"
|
|
29
|
-
].join(" "),
|
|
30
|
-
"--dynamic-color":
|
|
31
|
-
"--dynamic-
|
|
32
|
-
"--dynamic-
|
|
33
|
-
"--dynamic-
|
|
40
|
+
].join(" "), m = {
|
|
41
|
+
"--dynamic-color-text": t ? r === "dark" ? "var(--primary-color-900)" : "var(--color-light-100)" : "var(--btn-primary-color-text)",
|
|
42
|
+
"--dynamic-color": t ? `var(--color-${t}-${r === "dark" ? "200" : "900"})` : "var(--btn-primary-color)",
|
|
43
|
+
"--dynamic-color-hover": t ? `var(--color-${t}-${r === "dark" ? "100" : "800"})` : "var(--btn-primary-color-hover)",
|
|
44
|
+
"--dynamic-color-activated": t ? `var(--color-${t}-${r === "dark" ? "50" : "700"})` : "var(--btn-primary-color-activated)",
|
|
45
|
+
"--dynamic-color-disabled": t ? r === "dark" ? "var(--color-dark-10)" : `var(--color-${t}-50)` : "var(--btn-primary-color-disabled)"
|
|
34
46
|
};
|
|
35
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ y(
|
|
36
48
|
"button",
|
|
37
49
|
{
|
|
38
50
|
type: "button",
|
|
39
|
-
className:
|
|
40
|
-
style:
|
|
41
|
-
...
|
|
51
|
+
className: i,
|
|
52
|
+
style: s === "primary" ? m : void 0,
|
|
53
|
+
...e,
|
|
42
54
|
children: [
|
|
43
|
-
(
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
(
|
|
55
|
+
(n === "left" || n === "both") && o && /* @__PURE__ */ b("span", { children: o }),
|
|
56
|
+
/* @__PURE__ */ b("span", { children: _ }),
|
|
57
|
+
(n === "right" || n === "both") && o && /* @__PURE__ */ b("span", { children: o })
|
|
46
58
|
]
|
|
47
59
|
}
|
|
48
60
|
);
|
|
49
61
|
};
|
|
50
62
|
export {
|
|
51
|
-
|
|
63
|
+
d as Button
|
|
52
64
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { Color } from '../interface';
|
|
3
|
+
|
|
4
|
+
interface IconButtonProps {
|
|
5
|
+
mode?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
6
|
+
color?: Color; /** What background color to use (blue, red, ...)*/
|
|
7
|
+
colorMode?: 'light' | 'dark'; /** what mode do you use for light or dark color **/
|
|
8
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl'; /** How large should the button be? */
|
|
9
|
+
error?: boolean;
|
|
10
|
+
children: ReactElement; /** Only icons (React elements) allowed inside the button */
|
|
11
|
+
onClick?: () => void; /** Optional click handler */
|
|
12
|
+
}
|
|
13
|
+
export declare const IconButton: FC<IconButtonProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as c } from "react";
|
|
3
|
+
import '../../styles/IconButton.css';const l = "_button_1qaum_196", o = {
|
|
4
|
+
button: l,
|
|
5
|
+
"button-primary": "_button-primary_1qaum_216",
|
|
6
|
+
"button-secondary": "_button-secondary_1qaum_231",
|
|
7
|
+
"button-tertiary": "_button-tertiary_1qaum_250",
|
|
8
|
+
"button-ghost": "_button-ghost_1qaum_269",
|
|
9
|
+
"button-error": "_button-error_1qaum_284",
|
|
10
|
+
"button-size-xl": "_button-size-xl_1qaum_299",
|
|
11
|
+
"button-size-l": "_button-size-l_1qaum_304",
|
|
12
|
+
"button-size-m": "_button-size-m_1qaum_309",
|
|
13
|
+
"button-size-s": "_button-size-s_1qaum_314",
|
|
14
|
+
"button-size-xs": "_button-size-xs_1qaum_319"
|
|
15
|
+
}, v = ({
|
|
16
|
+
mode: a = "primary",
|
|
17
|
+
color: t,
|
|
18
|
+
colorMode: r,
|
|
19
|
+
size: n = "m",
|
|
20
|
+
error: i,
|
|
21
|
+
children: u,
|
|
22
|
+
onClick: e
|
|
23
|
+
}) => {
|
|
24
|
+
const s = () => i ? "error" : a;
|
|
25
|
+
c(() => {
|
|
26
|
+
r && !t && console.warn("`colorMode` is defined but `color` is missing. `colorMode` will be ignored.");
|
|
27
|
+
}, [t]);
|
|
28
|
+
const b = [
|
|
29
|
+
o.button,
|
|
30
|
+
o[`button-${s()}`],
|
|
31
|
+
o[`button-size-${n}`],
|
|
32
|
+
"flexHorizontalCenter"
|
|
33
|
+
].join(" "), m = {
|
|
34
|
+
"--dynamic-color-text": t ? r === "dark" ? "var(--primary-color-900)" : "var(--color-light-100)" : "var(--btn-primary-color-text)",
|
|
35
|
+
"--dynamic-color": t ? `var(--color-${t}-${r === "dark" ? "200" : "900"})` : "var(--btn-primary-color)",
|
|
36
|
+
"--dynamic-color-hover": t ? `var(--color-${t}-${r === "dark" ? "100" : "800"})` : "var(--btn-primary-color-hover)",
|
|
37
|
+
"--dynamic-color-activated": t ? `var(--color-${t}-${r === "dark" ? "50" : "700"})` : "var(--btn-primary-color-activated)",
|
|
38
|
+
"--dynamic-color-disabled": t ? r === "dark" ? "var(--color-dark-10)" : `var(--color-${t}-50)` : "var(--btn-primary-color-disabled)"
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ _(
|
|
41
|
+
"button",
|
|
42
|
+
{
|
|
43
|
+
className: b,
|
|
44
|
+
style: a === "primary" ? m : void 0,
|
|
45
|
+
onClick: e,
|
|
46
|
+
children: u
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
v as IconButton
|
|
52
|
+
};
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
sizeStyle?: 's' | 'm' | 'l' | 'xl'; /** How large should the input be? */
|
|
5
|
+
label: string; /** input contents **/
|
|
6
|
+
labelUnit?: string;
|
|
7
|
+
color?: string; /** red, green, blue, pink **/
|
|
8
|
+
status?: 'default' | 'error' | 'success' | 'ternary'; /** input status style **/
|
|
9
|
+
ghost?: boolean;
|
|
10
|
+
children?: ReactNode; /** Additional content inside the input */
|
|
11
|
+
childrenPosition?: 'left' | 'right' | 'both'; /** Position of the children relative to the label */
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const Input: ({ sizeStyle, label, labelUnit, color, status, ghost, children, childrenPosition, disabled, defaultValue, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,11 +1,133 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { jsxs as f, jsx as t, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useRef as y, useEffect as q } from "react";
|
|
3
|
+
import '../../styles/Input.css';const A = "_hideBorder_1in9x_466", e = {
|
|
4
|
+
"input-style": "_input-style_1in9x_333",
|
|
5
|
+
"input-style-ghost": "_input-style-ghost_1in9x_341",
|
|
6
|
+
"input-style-disabled": "_input-style-disabled_1in9x_346",
|
|
7
|
+
"input-style-focused": "_input-style-focused_1in9x_355",
|
|
8
|
+
"input-container": "_input-container_1in9x_360",
|
|
9
|
+
"floating-input": "_floating-input_1in9x_360",
|
|
10
|
+
"floating-label": "_floating-label_1in9x_360",
|
|
11
|
+
"input-style-error": "_input-style-error_1in9x_363",
|
|
12
|
+
"input-style-error-focused": "_input-style-error-focused_1in9x_370",
|
|
13
|
+
"input-style-error-disabled": "_input-style-error-disabled_1in9x_373",
|
|
14
|
+
"input-style-success": "_input-style-success_1in9x_381",
|
|
15
|
+
"input-style-success-focused": "_input-style-success-focused_1in9x_388",
|
|
16
|
+
"input-style-success-disabled": "_input-style-success-disabled_1in9x_391",
|
|
17
|
+
"floating-label-size-xl": "_floating-label-size-xl_1in9x_416",
|
|
18
|
+
"floating-label-size-l": "_floating-label-size-l_1in9x_419",
|
|
19
|
+
"floating-label-size-m": "_floating-label-size-m_1in9x_422",
|
|
20
|
+
"floating-label-size-s": "_floating-label-size-s_1in9x_425",
|
|
21
|
+
"floating-input-size-xl": "_floating-input-size-xl_1in9x_434",
|
|
22
|
+
"floating-input-size-l": "_floating-input-size-l_1in9x_438",
|
|
23
|
+
"floating-input-size-m": "_floating-input-size-m_1in9x_442",
|
|
24
|
+
"floating-input-size-s": "_floating-input-size-s_1in9x_446",
|
|
25
|
+
hideBorder: A,
|
|
26
|
+
"hideBorder-error": "_hideBorder-error_1in9x_476",
|
|
27
|
+
"hideBorder-success": "_hideBorder-success_1in9x_479",
|
|
28
|
+
"input-style-size-xl": "_input-style-size-xl_1in9x_482",
|
|
29
|
+
"input-style-size-l": "_input-style-size-l_1in9x_488",
|
|
30
|
+
"input-style-size-m": "_input-style-size-m_1in9x_494",
|
|
31
|
+
"input-style-size-s": "_input-style-size-s_1in9x_500"
|
|
32
|
+
}, K = ({
|
|
33
|
+
sizeStyle: c = "m",
|
|
34
|
+
label: b,
|
|
35
|
+
labelUnit: m,
|
|
36
|
+
color: n,
|
|
37
|
+
status: i = "default",
|
|
38
|
+
ghost: h = !1,
|
|
39
|
+
children: l,
|
|
40
|
+
childrenPosition: o = "left",
|
|
41
|
+
disabled: _,
|
|
42
|
+
defaultValue: z,
|
|
43
|
+
...B
|
|
44
|
+
}) => {
|
|
45
|
+
const [d, g] = x(!1), [r, $] = x(z || ""), s = y(null), u = y(null), a = y(null), C = () => g(!0), N = () => g(!1), j = (p) => {
|
|
46
|
+
$(p.target.value);
|
|
47
|
+
}, R = [
|
|
48
|
+
e["input-style"],
|
|
49
|
+
e[`input-style-size-${c}`],
|
|
50
|
+
e[`input-style-gap-${i}`],
|
|
51
|
+
"flexHorizontalCenter gap4",
|
|
52
|
+
h && e["input-style-ghost"]
|
|
53
|
+
].filter(Boolean).join(" "), v = [
|
|
54
|
+
d && e["input-style-focused"],
|
|
55
|
+
_ && e["input-style-disabled"]
|
|
56
|
+
].filter(Boolean).join(" "), S = [
|
|
57
|
+
e["input-style-error"],
|
|
58
|
+
_ && e["input-style-error-disabled"],
|
|
59
|
+
d && e["input-style-error-focused"]
|
|
60
|
+
].filter(Boolean).join(" "), F = [
|
|
61
|
+
e["input-style-success"],
|
|
62
|
+
_ && e["input-style-success-disabled"],
|
|
63
|
+
d && e["input-style-success-focused"]
|
|
64
|
+
].filter(Boolean).join(" "), H = () => {
|
|
65
|
+
switch (i) {
|
|
66
|
+
case "error":
|
|
67
|
+
return S;
|
|
68
|
+
case "success":
|
|
69
|
+
return F;
|
|
70
|
+
default:
|
|
71
|
+
return v;
|
|
72
|
+
}
|
|
73
|
+
}, I = [
|
|
74
|
+
e["floating-label"],
|
|
75
|
+
e[`floating-label-size-${c}`]
|
|
76
|
+
].join(" "), k = [
|
|
77
|
+
e["floating-input"],
|
|
78
|
+
e[`floating-input-size-${c}`]
|
|
79
|
+
].join(" "), w = {
|
|
80
|
+
"--dynamic-color": `${n}`,
|
|
81
|
+
"--dynamic-color-border": `$color-${n}-300`,
|
|
82
|
+
"--dynamic-background-color": `$color-${n}-50`
|
|
83
|
+
}, V = {
|
|
84
|
+
"--dynamic-color": "var(--primary-color-blue)",
|
|
85
|
+
"--dynamic-color-border": "$color-blue-grey-300",
|
|
86
|
+
"--dynamic-background-color": "$color-blue-situaction-50"
|
|
87
|
+
}, W = [
|
|
88
|
+
e.hideBorder,
|
|
89
|
+
i === "success" && e["hideBorder-success"],
|
|
90
|
+
i === "error" && e["hideBorder-error"]
|
|
91
|
+
].filter(Boolean).join(" ");
|
|
92
|
+
return q(() => {
|
|
93
|
+
if (r && s.current && u.current && a.current) {
|
|
94
|
+
const p = s.current.offsetWidth + 6;
|
|
95
|
+
u.current.style.width = `${p}px`;
|
|
96
|
+
const D = s.current.getBoundingClientRect(), E = a.current.getBoundingClientRect(), L = D.left - E.left;
|
|
97
|
+
u.current.style.left = `${L - 3}px`;
|
|
98
|
+
}
|
|
99
|
+
}, [s, r, a]), /* @__PURE__ */ f(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
ref: a,
|
|
103
|
+
className: `input-style ${R} ${H()}`,
|
|
104
|
+
onFocus: C,
|
|
105
|
+
onBlur: N,
|
|
106
|
+
style: n ? w : V,
|
|
107
|
+
children: [
|
|
108
|
+
r && /* @__PURE__ */ t("div", { className: W, ref: u }),
|
|
109
|
+
l && (o === "left" || o === "both") && /* @__PURE__ */ t("span", { className: "flexHorizontal", children: l }),
|
|
110
|
+
/* @__PURE__ */ f("div", { className: e["input-container"], children: [
|
|
111
|
+
/* @__PURE__ */ t(
|
|
112
|
+
"input",
|
|
113
|
+
{
|
|
114
|
+
className: k,
|
|
115
|
+
placeholder: " ",
|
|
116
|
+
value: r,
|
|
117
|
+
onChange: j,
|
|
118
|
+
...B
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ t("label", { className: I, ref: s, children: b })
|
|
122
|
+
] }),
|
|
123
|
+
l && (o === "right" || o === "both") && /* @__PURE__ */ f(O, { children: [
|
|
124
|
+
/* @__PURE__ */ t("div", { children: m }),
|
|
125
|
+
/* @__PURE__ */ t("span", { className: "flexHorizontal", children: l })
|
|
126
|
+
] })
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
);
|
|
4
130
|
};
|
|
5
|
-
function i(t) {
|
|
6
|
-
const { className: n, ...s } = t;
|
|
7
|
-
return /* @__PURE__ */ p("input", { className: `${n} ${o.input}`, ...s });
|
|
8
|
-
}
|
|
9
131
|
export {
|
|
10
|
-
|
|
132
|
+
K as Input
|
|
11
133
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Color = 'light' | 'dark' | 'grey' | 'blue-grey' | 'blue' | 'blue-situaction' | 'purple' | 'pink' | 'gold' | 'brown' | 'emerald';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useRef as o, useLayoutEffect as j } from "react";
|
|
3
|
+
import '../../styles/index.css';import '../../styles/Tabs.css';/* empty css */
|
|
4
|
+
const R = "_underline_1jf6b_26", n = {
|
|
5
|
+
"tab-container": "_tab-container_1jf6b_6",
|
|
6
|
+
"tab-items": "_tab-items_1jf6b_13",
|
|
7
|
+
"tab-item": "_tab-item_1jf6b_13",
|
|
8
|
+
"tab-item-active": "_tab-item-active_1jf6b_22",
|
|
9
|
+
underline: R
|
|
10
|
+
}, T = ({ listItems: c, onTabSelect: b }) => {
|
|
11
|
+
const [r, u] = l(0), [f, d] = l({}), i = o(null), s = o(null), m = (t) => {
|
|
12
|
+
u(t), b(c[t]);
|
|
13
|
+
}, _ = (t) => {
|
|
14
|
+
if (i.current && t) {
|
|
15
|
+
const e = t.getBoundingClientRect(), v = i.current.getBoundingClientRect();
|
|
16
|
+
e.width > 0 && d({
|
|
17
|
+
left: e.left - v.left,
|
|
18
|
+
width: e.width
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return j(() => {
|
|
23
|
+
var e;
|
|
24
|
+
const t = (e = i.current) == null ? void 0 : e.querySelector(`.${n["tab-item-active"]}`);
|
|
25
|
+
t && s.current && setTimeout(() => {
|
|
26
|
+
_(t);
|
|
27
|
+
}, 150);
|
|
28
|
+
}, [r]), /* @__PURE__ */ h("div", { className: `tab ${n["tab-container"]}`, ref: i, children: [
|
|
29
|
+
/* @__PURE__ */ a("div", { className: `flexHorizontal ${n["tab-items"]}`, children: c.map((t, e) => /* @__PURE__ */ a(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: n[e === r ? "tab-item-active" : "tab-item"],
|
|
33
|
+
onClick: () => m(e),
|
|
34
|
+
children: t
|
|
35
|
+
},
|
|
36
|
+
e
|
|
37
|
+
)) }),
|
|
38
|
+
/* @__PURE__ */ a("div", { ref: s, className: n.underline, style: f })
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
T as Tabs
|
|
43
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { Color } from '../interface';
|
|
3
|
+
|
|
4
|
+
interface TagProps {
|
|
5
|
+
label: string;
|
|
6
|
+
color?: Color;
|
|
7
|
+
deletable?: boolean;
|
|
8
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Tag: FC<TagProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as m } from "react";
|
|
3
|
+
import { IconButton as _ } from "../icon-button/IconButton.js";
|
|
4
|
+
import '../../styles/Tag.css';const f = "_tag_1rbf7_6", s = {
|
|
5
|
+
tag: f,
|
|
6
|
+
"tag-children": "_tag-children_1rbf7_16",
|
|
7
|
+
"tag-size-xl": "_tag-size-xl_1rbf7_24",
|
|
8
|
+
"tag-size-l": "_tag-size-l_1rbf7_28",
|
|
9
|
+
"tag-size-m": "_tag-size-m_1rbf7_32",
|
|
10
|
+
"tag-size-s": "_tag-size-s_1rbf7_36"
|
|
11
|
+
}, a = ["light", "dark", "grey", "blue-grey", "blue", "blue-situaction", "purple", "pink", "gold", "brown", "emerald"], z = ({
|
|
12
|
+
label: n,
|
|
13
|
+
color: t,
|
|
14
|
+
deletable: r = !1,
|
|
15
|
+
size: o = "m",
|
|
16
|
+
children: i,
|
|
17
|
+
onClick: l
|
|
18
|
+
}) => {
|
|
19
|
+
m(() => {
|
|
20
|
+
t && !a.includes(t) && console.warn(`Warning: The color "${t}" is not a valid option. Expected one of: ${a.join(", ")}.`);
|
|
21
|
+
}, [t]);
|
|
22
|
+
const c = [
|
|
23
|
+
s.tag,
|
|
24
|
+
s[`tag-size-${o}`],
|
|
25
|
+
"flexHorizontalCenter"
|
|
26
|
+
].join(" "), g = {
|
|
27
|
+
"--dynamic-background": t && a.includes(t) ? `var(--color-${t}-200)` : "var(--color-blue-situaction-200)",
|
|
28
|
+
"--dynamic-color-text": t && a.includes(t) ? `var(--color-${t}-950)` : "var(--color-blue-situaction-950)"
|
|
29
|
+
}, d = {
|
|
30
|
+
color: t ? `var(--color${t}-950)` : "var(--color-blue-situaction-950)"
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ u(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: c,
|
|
36
|
+
style: g,
|
|
37
|
+
onClick: l,
|
|
38
|
+
children: [
|
|
39
|
+
i && /* @__PURE__ */ e("div", { className: `flexHorizontalCenter ${s["tag-children"]}`, children: i }),
|
|
40
|
+
/* @__PURE__ */ e("label", { className: "flexHorizontal", children: n }),
|
|
41
|
+
r && /* @__PURE__ */ e(_, { mode: "ghost", size: "xs", onClick: () => l, children: /* @__PURE__ */ e("svg", { style: d, xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", fill: "currentColor", viewBox: "0 0 256 256", children: /* @__PURE__ */ e("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }) }) })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
z as Tag
|
|
48
|
+
};
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, FC } from 'react';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type Mode = 'light' | 'dark';
|
|
4
|
+
interface Theme {
|
|
5
|
+
typography?: {
|
|
6
|
+
fontFamily: string;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
fontFamilySecondary: string;
|
|
9
|
+
};
|
|
10
|
+
color?: {
|
|
11
|
+
primary: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
4
14
|
interface ThemeContextType {
|
|
5
15
|
theme: Theme;
|
|
6
|
-
|
|
16
|
+
mode: Mode;
|
|
17
|
+
toggleMode: () => void;
|
|
7
18
|
}
|
|
8
|
-
|
|
19
|
+
interface ThemeProviderProps {
|
|
9
20
|
children: ReactNode;
|
|
10
|
-
|
|
21
|
+
theme?: Theme;
|
|
22
|
+
mode?: Mode;
|
|
23
|
+
}
|
|
24
|
+
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
11
25
|
export declare const useTheme: () => ThemeContextType;
|
|
12
26
|
export {};
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as S, useState as f, useContext as k } from "react";
|
|
3
|
+
import { baseTheme as r } from "./createTheme.js";
|
|
4
|
+
const h = S(void 0), j = ({ children: a, theme: i, mode: $ }) => {
|
|
5
|
+
var y, s, c, d, e, p, m;
|
|
6
|
+
const [o] = f(i ?? r), [t, x] = f($ ?? "light"), b = () => {
|
|
7
|
+
x((l) => l === "light" ? "dark" : "light");
|
|
8
|
+
}, C = (l) => [950, 900, 800, 700, 600, 500, 400, 300, 200, 100, 50].reduce((n, v) => (n[`--primary-color-${v}`] = `var(--color-${l}-${v})`, n), {}), F = {
|
|
9
|
+
"--font-family": ((y = o == null ? void 0 : o.typography) == null ? void 0 : y.fontFamily) ?? r.typography.fontFamily,
|
|
10
|
+
"--font-family-secondary": ((s = o == null ? void 0 : o.typography) == null ? void 0 : s.fontFamilySecondary) ?? r.typography.fontFamilySecondary,
|
|
11
|
+
...C(((c = o == null ? void 0 : o.color) == null ? void 0 : c.primary) ?? r.color.primary),
|
|
12
|
+
"--primary-dark-color-disabled": i === void 0 ? "var(--color-blue-grey-800)" : "var(--color-dark-10)",
|
|
13
|
+
"--primary-color": t === "light" ? `var(--color-${((d = o == null ? void 0 : o.color) == null ? void 0 : d.primary) ?? r.color.primary}-900)` : `var(--color-${((e = o == null ? void 0 : o.color) == null ? void 0 : e.primary) ?? r.color.primary}-200)`,
|
|
14
|
+
"--secondary-color": t === "light" ? `var(--color-${((p = o == null ? void 0 : o.color) == null ? void 0 : p.primary) ?? r.color.primary}-200)` : `var(--color-${((m = o == null ? void 0 : o.color) == null ? void 0 : m.primary) ?? r.color.primary}-900)`
|
|
6
15
|
};
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
return /* @__PURE__ */ g(h.Provider, { value: { theme: o, mode: t, toggleMode: b }, children: /* @__PURE__ */ g(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
"data-theme": t,
|
|
20
|
+
style: F,
|
|
21
|
+
children: a
|
|
22
|
+
}
|
|
23
|
+
) });
|
|
24
|
+
}, E = () => {
|
|
25
|
+
const a = k(h);
|
|
26
|
+
if (a === void 0)
|
|
11
27
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
12
|
-
return
|
|
28
|
+
return a;
|
|
13
29
|
};
|
|
14
30
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
31
|
+
j as ThemeProvider,
|
|
32
|
+
E as useTheme
|
|
17
33
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/** Export components **/
|
|
2
2
|
export { Button } from './components/button/Button';
|
|
3
3
|
export { Input } from './components/input/Input';
|
|
4
|
+
export { Tabs } from './components/tabs/Tabs';
|
|
5
|
+
export { IconButton } from './components/icon-button/IconButton';
|
|
6
|
+
export { Tag } from './components/tag/Tag';
|
|
4
7
|
export { ThemeProvider, useTheme } from './components/theme/ThemeContext';
|
package/dist/main.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Input as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Button as t } from "./components/button/Button.js";
|
|
2
|
+
import { Input as p } from "./components/input/Input.js";
|
|
3
|
+
import { Tabs as x } from "./components/tabs/Tabs.js";
|
|
4
|
+
import { IconButton as u } from "./components/icon-button/IconButton.js";
|
|
5
|
+
import { Tag as a } from "./components/tag/Tag.js";
|
|
6
|
+
import { ThemeProvider as i, useTheme as s } from "./components/theme/ThemeContext.js";
|
|
7
|
+
import './styles/index.css';import './styles/main.css';/* empty css */
|
|
8
|
+
export {
|
|
9
|
+
t as Button,
|
|
10
|
+
u as IconButton,
|
|
11
|
+
p as Input,
|
|
12
|
+
x as Tabs,
|
|
13
|
+
a as Tag,
|
|
14
|
+
i as ThemeProvider,
|
|
15
|
+
s as useTheme
|
|
9
16
|
};
|
package/dist/styles/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
:root{--color-light-05: rgba(255, 255, 255, .05);--color-light-10: rgba(255, 255, 255, .1);--color-light-20: rgba(255, 255, 255, .2);--color-light-30: rgba(255, 255, 255, .3);--color-light-40: rgba(255, 255, 255, .4);--color-light-50: rgba(255, 255, 255, .5);--color-light-60: rgba(255, 255, 255, .6);--color-light-70: rgba(255, 255, 255, .7);--color-light-80: rgba(255, 255, 255, .8);--color-light-90: rgba(255, 255, 255, .9);--color-light-100: #FFF;--color-dark-05: rgba(15, 15, 15, .05);--color-dark-10: rgba(15, 15, 15, .1);--color-dark-20: rgba(15, 15, 15, .2);--color-dark-30: rgba(15, 15, 15, .3);--color-dark-40: rgba(15, 15, 15, .4);--color-dark-50: rgba(15, 15, 15, .5);--color-dark-60: rgba(15, 15, 15, .6);--color-dark-70: rgba(15, 15, 15, .7);--color-dark-80: rgba(15, 15, 15, .8);--color-dark-90: rgba(15, 15, 15, .9);--color-dark-100: #09090B;--color-grey-50: #FAFAFA;--color-grey-100: #E7E7E7;--color-grey-200: #D1D1D1;--color-grey-300: #B0B0B0;--color-grey-400: #888888;--color-grey-500: #6D6D6D;--color-grey-600: #5D5D5D;--color-grey-700: #4F4F4F;--color-grey-800: #454545;--color-grey-900: #3D3D3D;--color-grey-950: #0F0F0F;--color-blue-grey-50: #F4F6F7;--color-blue-grey-100: #E3E8EA;--color-blue-grey-200: #CAD3D7;--color-blue-grey-300: #A5B4BB;--color-blue-grey-400: #788D98;--color-blue-grey-500: #55626C;--color-blue-grey-600: #49565F;--color-blue-grey-700: #445058;--color-blue-grey-800: #3A4047;--color-blue-grey-900: #2B3137;--color-blue-grey-950: #24292E;--color-blue-50: #F5F8FE;--color-blue-100: #EFF4FD;--color-blue-200: #EAF0FC;--color-blue-300: #E0E9FA;--color-blue-400: #D5E1F8;--color-blue-500: #CBDAF7;--color-blue-600: #C0D2F5;--color-blue-700: #B6CBF4;--color-blue-800: #ABC3F1;--color-blue-900: #A1BCF0;--color-blue-950: #24292E;--color-blue-situaction-50: #EFF8FF;--color-blue-situaction-100: #DFF1FF;--color-blue-situaction-200: #C3E9FD;--color-blue-situaction-300: #7ED3FB;--color-blue-situaction-400: #31B7FF;--color-blue-situaction-500: #069DEF;--color-blue-situaction-600: #007DCE;--color-blue-situaction-700: #02548A;--color-blue-situaction-800: #1F416D;--color-blue-situaction-900: #1D3557;--color-blue-situaction-950: #14243D;--color-purple-50: #F1F2FC;--color-purple-100: #E6E7F9;--color-purple-200: #D1D3F4;--color-purple-300: #B5B6EC;--color-purple-400: #9A96E3;--color-purple-500: #887DD7;--color-purple-600: #6E59C5;--color-purple-700: #6652B0;--color-purple-800: #53458E;--color-purple-900: #463D72;--color-purple-950: #2A2442;--color-pink-50: #FBF4F8;--color-pink-100: #F8EBF3;--color-pink-200: #F2D8E9;--color-pink-300: #E9B8D6;--color-pink-400: #DB8BBB;--color-pink-500: #CC68A0;--color-pink-600: #B84A83;--color-pink-700: #9D3869;--color-pink-800: #833158;--color-pink-900: #6E2D4C;--color-pink-950: #42152A;--color-gold-50: #FDFAE9;--color-gold-100: #FAF0B9;--color-gold-200: #F8E490;--color-gold-300: #F4CF50;--color-gold-400: #EEB721;--color-gold-500: #DE9F14;--color-gold-600: #C07A0E;--color-gold-700: #99570F;--color-gold-800: #7F4614;--color-gold-900: #6C3917;--color-gold-950: #3F1C09;--color-brown-50: #FDF9ED;--color-brown-100: #F6E4B6;--color-brown-200: #F2D897;--color-brown-300: #ECBD5F;--color-brown-400: #E6A637;--color-brown-500: #DF8620;--color-brown-600: #C7681A;--color-brown-700: #A44919;--color-brown-800: #853A19;--color-brown-900: #6C3019;--color-brown-950: #3E1709;--color-emerald-50: #F2F7F3;--color-emerald-100: #DFECE0;--color-emerald-200: #C1D9C5;--color-emerald-300: #98BDA0;--color-emerald-400: #71A07D;--color-emerald-500: #4A7F59;--color-emerald-600: #376445;--color-emerald-700: #2C5038;--color-emerald-800: #25402F;--color-emerald-900: #1F3527;--color-emerald-950: #111D15}:root,[data-theme=light]{--btn-primary-color: var(--primary-color-900);--btn-primary-color-hover: var(--primary-color-800);--btn-primary-color-activated: var(--primary-color-700);--btn-primary-color-disabled: var(--primary-color-50);--btn-primary-color-text: var(--color-light-100);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-dark-20);--btn-secondary-color-text: var(--color-blue-situaction-900);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-dark-05);--btn-tertiary-color-activated: var(--color-dark-10);--btn-tertiary-color-disabled: var(--color-dark-05);--btn-tertiary-color-border-disabled: var(--color-dark-20);--btn-tertiary-color-text: var(--color-grey-950);--btn-tertiary-color-border: var(--color-dark-20);--btn-ghost-color-hover: var(--color-dark-05);--btn-ghost-color-activated: var(--color-dark-10);--btn-ghost-color-text: var(--color-grey-950);--btn-ghost-color-text-disabled: var(--color-dark-40)}[data-theme=dark]{--btn-primary-color: var(--primary-color-200);--btn-primary-color-hover: var(--primary-color-100);--btn-primary-color-activated: var(--primary-color-50);--btn-primary-color-disabled: var(--primary-dark-color-disabled);--btn-primary-color-text: var(--primary-color-900);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-light-20);--btn-secondary-color-text: var(--color-light-100);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(---color-light-05);--btn-tertiary-color-activated: var(--color-light-10);--btn-tertiary-color-disabled: var(--color-light-05);--btn-tertiary-color-border-disabled: var(--color-light-40);--btn-tertiary-color-text: var(--color-light-100);--btn-tertiary-color-border: var(--color-light-20);--btn-ghost-color-hover: var(--color-light-05);--btn-ghost-color-activated: var(--color-light-10);--btn-ghost-color-text: var(--color-light-100);--btn-ghost-color-text-disabled: var(--color-light-40)}._button_tplzh_196{font-family:var(--font-family);font-weight:500;border:0;border-radius:8px;cursor:pointer;line-height:1;box-shadow:0 4px 10px #00000008;width:fit-content}._button_tplzh_196:focus{outline:2px solid var(--dynamic-color);outline-offset:2px}._button-primary_tplzh_211{color:var(--dynamic-color-text);background-color:var(--dynamic-color)}._button-primary_tplzh_211:hover{background-color:var(--dynamic-color-hover)}._button-primary_tplzh_211:active{background-color:var(--dynamic-color-activated)}._button-primary_tplzh_211:disabled{background-color:var(--dynamic-color-disabled);color:var(--color-grey-400);cursor:initial}._button-secondary_tplzh_226{color:var(--btn-secondary-color-text);background-color:var(--btn-secondary-color);border:1px solid var(--btn-secondary-color-border)}._button-secondary_tplzh_226:hover{background-color:var(--btn-secondary-color-hover);border:1px solid var(--btn-secondary-color-border)}._button-secondary_tplzh_226:active{background-color:var(--btn-secondary-color-activated);border:1px solid var(--btn-secondary-color-border)}._button-secondary_tplzh_226:disabled{background-color:var(--btn-secondary-color-border-disabled);color:var(color-blue-grey-400);border:1px solid var(--btn-secondary-color-border);cursor:initial}._button-tertiary_tplzh_245{color:var(--btn-tertiary-color);background-color:transparent;border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_tplzh_245:hover{background-color:var(--btn-tertiary-color-hover);border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_tplzh_245:active{background-color:var(--btn-tertiary-color-activated);border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_tplzh_245:disabled{background-color:var(--btn-tertiary-color-disabled);color:var(--btn-tertiary-color);border:1px solid var(--btn-tertiary-color-border);cursor:initial}._button-ghost_tplzh_264{color:var(--btn-ghost-color-text);background-color:transparent}._button-ghost_tplzh_264:hover{background-color:var(--btn-ghost-color-hover)}._button-ghost_tplzh_264:active{background-color:var(--btn-ghost-color-activated)}._button-ghost_tplzh_264:disabled{background-color:transparent;color:var(--btn-ghost-color-text-disabled);cursor:initial}._button-error_tplzh_279{color:var(color-light-100);background-color:#ff4747}._button-error_tplzh_279:hover{background-color:#ed1515}._button-error_tplzh_279:active{background-color:#c80d0d}._button-error_tplzh_279:disabled{background-color:var(color-blue-grey-200);color:var(color-blue-grey-500);cursor:initial}._button-size-xl_tplzh_294{padding:16px 32px;font-size:1.125em;line-height:28px}._button-size-l_tplzh_299{padding:12px 24px;font-size:1em;line-height:24px}._button-size-m_tplzh_304{padding:8px 16px;font-size:.875em;line-height:22px}._button-size-s_tplzh_309{padding:6px 12px;font-size:.75em;line-height:16px}._button-gap-xl_tplzh_314{gap:12px}._button-gap-l_tplzh_317{gap:8px}._button-gap-m_tplzh_320,._button-gap-s_tplzh_320{gap:4px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--color-light-05: rgba(255, 255, 255, .05);--color-light-10: rgba(255, 255, 255, .1);--color-light-20: rgba(255, 255, 255, .2);--color-light-30: rgba(255, 255, 255, .3);--color-light-40: rgba(255, 255, 255, .4);--color-light-50: rgba(255, 255, 255, .5);--color-light-60: rgba(255, 255, 255, .6);--color-light-70: rgba(255, 255, 255, .7);--color-light-80: rgba(255, 255, 255, .8);--color-light-90: rgba(255, 255, 255, .9);--color-light-100: #FFF;--color-dark-05: rgba(15, 15, 15, .05);--color-dark-10: rgba(15, 15, 15, .1);--color-dark-20: rgba(15, 15, 15, .2);--color-dark-30: rgba(15, 15, 15, .3);--color-dark-40: rgba(15, 15, 15, .4);--color-dark-50: rgba(15, 15, 15, .5);--color-dark-60: rgba(15, 15, 15, .6);--color-dark-70: rgba(15, 15, 15, .7);--color-dark-80: rgba(15, 15, 15, .8);--color-dark-90: rgba(15, 15, 15, .9);--color-dark-100: #09090B;--color-grey-50: #FAFAFA;--color-grey-100: #E7E7E7;--color-grey-200: #D1D1D1;--color-grey-300: #B0B0B0;--color-grey-400: #888888;--color-grey-500: #6D6D6D;--color-grey-600: #5D5D5D;--color-grey-700: #4F4F4F;--color-grey-800: #454545;--color-grey-900: #3D3D3D;--color-grey-950: #0F0F0F;--color-blue-grey-50: #F4F6F7;--color-blue-grey-100: #E3E8EA;--color-blue-grey-200: #CAD3D7;--color-blue-grey-300: #A5B4BB;--color-blue-grey-400: #788D98;--color-blue-grey-500: #55626C;--color-blue-grey-600: #49565F;--color-blue-grey-700: #445058;--color-blue-grey-800: #3A4047;--color-blue-grey-900: #2B3137;--color-blue-grey-950: #24292E;--color-blue-50: #F5F8FE;--color-blue-100: #EFF4FD;--color-blue-200: #EAF0FC;--color-blue-300: #E0E9FA;--color-blue-400: #D5E1F8;--color-blue-500: #CBDAF7;--color-blue-600: #C0D2F5;--color-blue-700: #B6CBF4;--color-blue-800: #ABC3F1;--color-blue-900: #A1BCF0;--color-blue-950: #24292E;--color-blue-situaction-50: #EFF8FF;--color-blue-situaction-100: #DFF1FF;--color-blue-situaction-200: #C3E9FD;--color-blue-situaction-300: #7ED3FB;--color-blue-situaction-400: #31B7FF;--color-blue-situaction-500: #069DEF;--color-blue-situaction-600: #007DCE;--color-blue-situaction-700: #02548A;--color-blue-situaction-800: #1F416D;--color-blue-situaction-900: #1D3557;--color-blue-situaction-950: #14243D;--color-purple-50: #F1F2FC;--color-purple-100: #E6E7F9;--color-purple-200: #D1D3F4;--color-purple-300: #B5B6EC;--color-purple-400: #9A96E3;--color-purple-500: #887DD7;--color-purple-600: #6E59C5;--color-purple-700: #6652B0;--color-purple-800: #53458E;--color-purple-900: #463D72;--color-purple-950: #2A2442;--color-pink-50: #FBF4F8;--color-pink-100: #F8EBF3;--color-pink-200: #F2D8E9;--color-pink-300: #E9B8D6;--color-pink-400: #DB8BBB;--color-pink-500: #CC68A0;--color-pink-600: #B84A83;--color-pink-700: #9D3869;--color-pink-800: #833158;--color-pink-900: #6E2D4C;--color-pink-950: #42152A;--color-gold-50: #FDFAE9;--color-gold-100: #FAF0B9;--color-gold-200: #F8E490;--color-gold-300: #F4CF50;--color-gold-400: #EEB721;--color-gold-500: #DE9F14;--color-gold-600: #C07A0E;--color-gold-700: #99570F;--color-gold-800: #7F4614;--color-gold-900: #6C3917;--color-gold-950: #3F1C09;--color-brown-50: #FDF9ED;--color-brown-100: #F6E4B6;--color-brown-200: #F2D897;--color-brown-300: #ECBD5F;--color-brown-400: #E6A637;--color-brown-500: #DF8620;--color-brown-600: #C7681A;--color-brown-700: #A44919;--color-brown-800: #853A19;--color-brown-900: #6C3019;--color-brown-950: #3E1709;--color-emerald-50: #F2F7F3;--color-emerald-100: #DFECE0;--color-emerald-200: #C1D9C5;--color-emerald-300: #98BDA0;--color-emerald-400: #71A07D;--color-emerald-500: #4A7F59;--color-emerald-600: #376445;--color-emerald-700: #2C5038;--color-emerald-800: #25402F;--color-emerald-900: #1F3527;--color-emerald-950: #111D15}:root,[data-theme=light]{--btn-primary-color: var(--primary-color-900);--btn-primary-color-hover: var(--primary-color-800);--btn-primary-color-activated: var(--primary-color-700);--btn-primary-color-disabled: var(--primary-color-50);--btn-primary-color-text: var(--color-light-100);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-dark-20);--btn-secondary-color-text: var(--color-blue-situaction-900);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-dark-05);--btn-tertiary-color-activated: var(--color-dark-10);--btn-tertiary-color-disabled: var(--color-dark-05);--btn-tertiary-color-border-disabled: var(--color-dark-20);--btn-tertiary-color-text: var(--color-grey-950);--btn-tertiary-color-border: var(--color-dark-20);--btn-ghost-color-hover: var(--color-dark-05);--btn-ghost-color-activated: var(--color-dark-10);--btn-ghost-color-text: var(--color-grey-950);--btn-ghost-color-text-disabled: var(--color-dark-40)}[data-theme=dark]{--btn-primary-color: var(--primary-color-200);--btn-primary-color-hover: var(--primary-color-100);--btn-primary-color-activated: var(--primary-color-50);--btn-primary-color-disabled: var(--primary-dark-color-disabled);--btn-primary-color-text: var(--primary-color-900);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-light-20);--btn-secondary-color-text: var(--color-light-100);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(---color-light-05);--btn-tertiary-color-activated: var(--color-light-10);--btn-tertiary-color-disabled: var(--color-light-05);--btn-tertiary-color-border-disabled: var(--color-light-40);--btn-tertiary-color-text: var(--color-light-100);--btn-tertiary-color-border: var(--color-light-20);--btn-ghost-color-hover: var(--color-light-05);--btn-ghost-color-activated: var(--color-light-10);--btn-ghost-color-text: var(--color-light-100);--btn-ghost-color-text-disabled: var(--color-light-40)}._button_1qaum_196{font-family:var(--font-family);font-weight:500;border:0;border-radius:50px;cursor:pointer;line-height:1;box-shadow:0 4px 10px #00000008;display:inline-flex;justify-content:center;align-items:center;min-width:12px;min-height:12px;aspect-ratio:1/1}._button_1qaum_196:focus{outline:2px solid var(--dynamic-color);outline-offset:2px}._button-primary_1qaum_216{color:var(--dynamic-color-text);background-color:var(--dynamic-color)}._button-primary_1qaum_216:hover{background-color:var(--dynamic-color-hover)}._button-primary_1qaum_216:active{background-color:var(--dynamic-color-activated)}._button-primary_1qaum_216:disabled{background-color:var(--dynamic-color-disabled);color:var(--color-grey-400);cursor:initial}._button-secondary_1qaum_231{color:var(--btn-secondary-color-text);background-color:var(--btn-secondary-color);border:1px solid var(--btn-secondary-color-border)}._button-secondary_1qaum_231:hover{background-color:var(--btn-secondary-color-hover);border:1px solid var(--btn-secondary-color-border)}._button-secondary_1qaum_231:active{background-color:var(--btn-secondary-color-activated);border:1px solid var(--btn-secondary-color-border)}._button-secondary_1qaum_231:disabled{background-color:var(--btn-secondary-color-border-disabled);color:var(color-blue-grey-400);border:1px solid var(--btn-secondary-color-border);cursor:initial}._button-tertiary_1qaum_250{color:var(--btn-tertiary-color);background-color:transparent;border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_1qaum_250:hover{background-color:var(--btn-tertiary-color-hover);border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_1qaum_250:active{background-color:var(--btn-tertiary-color-activated);border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_1qaum_250:disabled{background-color:var(--btn-tertiary-color-disabled);color:var(--btn-tertiary-color);border:1px solid var(--btn-tertiary-color-border);cursor:initial}._button-ghost_1qaum_269{color:var(--btn-ghost-color-text);background-color:transparent}._button-ghost_1qaum_269:hover{background-color:var(--btn-ghost-color-hover)}._button-ghost_1qaum_269:active{background-color:var(--btn-ghost-color-activated)}._button-ghost_1qaum_269:disabled{background-color:transparent;color:var(--btn-ghost-color-text-disabled);cursor:initial}._button-error_1qaum_284{color:var(color-light-100);background-color:#ff4747}._button-error_1qaum_284:hover{background-color:#ed1515}._button-error_1qaum_284:active{background-color:#c80d0d}._button-error_1qaum_284:disabled{background-color:var(color-blue-grey-200);color:var(color-blue-grey-500);cursor:initial}._button-size-xl_1qaum_299{padding:.75rem;font-size:1.125em;line-height:28px}._button-size-l_1qaum_304{padding:.625rem;font-size:1em;line-height:24px}._button-size-m_1qaum_309{padding:.5rem;font-size:.875em;line-height:22px}._button-size-s_1qaum_314{padding:.375rem;font-size:.75em;line-height:16px}._button-size-xs_1qaum_319{padding:0}
|
package/dist/styles/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._input_rpqtu_1{padding:1rem;border-radius:4px;border:1px solid #1ea7fd}
|
|
1
|
+
:root,[data-theme=light]{--btn-primary-color: var(--primary-color-900);--btn-primary-color-hover: var(--primary-color-800);--btn-primary-color-activated: var(--primary-color-700);--btn-primary-color-disabled: var(--primary-color-50);--btn-primary-color-text: var(--color-light-100);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-dark-20);--btn-secondary-color-text: var(--color-blue-situaction-900);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-dark-05);--btn-tertiary-color-activated: var(--color-dark-10);--btn-tertiary-color-disabled: var(--color-dark-05);--btn-tertiary-color-border-disabled: var(--color-dark-20);--btn-tertiary-color-text: var(--color-grey-950);--btn-tertiary-color-border: var(--color-dark-20);--btn-ghost-color-hover: var(--color-dark-05);--btn-ghost-color-activated: var(--color-dark-10);--btn-ghost-color-text: var(--color-grey-950);--btn-ghost-color-text-disabled: var(--color-dark-40)}[data-theme=dark]{--btn-primary-color: var(--primary-color-200);--btn-primary-color-hover: var(--primary-color-100);--btn-primary-color-activated: var(--primary-color-50);--btn-primary-color-disabled: var(--primary-dark-color-disabled);--btn-primary-color-text: var(--primary-color-900);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-light-20);--btn-secondary-color-text: var(--color-light-100);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(---color-light-05);--btn-tertiary-color-activated: var(--color-light-10);--btn-tertiary-color-disabled: var(--color-light-05);--btn-tertiary-color-border-disabled: var(--color-light-40);--btn-tertiary-color-text: var(--color-light-100);--btn-tertiary-color-border: var(--color-light-20);--btn-ghost-color-hover: var(--color-light-05);--btn-ghost-color-activated: var(--color-light-10);--btn-ghost-color-text: var(--color-light-100);--btn-ghost-color-text-disabled: var(--color-light-40)}:root{--color-light-05: rgba(255, 255, 255, .05);--color-light-10: rgba(255, 255, 255, .1);--color-light-20: rgba(255, 255, 255, .2);--color-light-30: rgba(255, 255, 255, .3);--color-light-40: rgba(255, 255, 255, .4);--color-light-50: rgba(255, 255, 255, .5);--color-light-60: rgba(255, 255, 255, .6);--color-light-70: rgba(255, 255, 255, .7);--color-light-80: rgba(255, 255, 255, .8);--color-light-90: rgba(255, 255, 255, .9);--color-light-100: #FFF;--color-dark-05: rgba(15, 15, 15, .05);--color-dark-10: rgba(15, 15, 15, .1);--color-dark-20: rgba(15, 15, 15, .2);--color-dark-30: rgba(15, 15, 15, .3);--color-dark-40: rgba(15, 15, 15, .4);--color-dark-50: rgba(15, 15, 15, .5);--color-dark-60: rgba(15, 15, 15, .6);--color-dark-70: rgba(15, 15, 15, .7);--color-dark-80: rgba(15, 15, 15, .8);--color-dark-90: rgba(15, 15, 15, .9);--color-dark-100: #09090B;--color-grey-50: #FAFAFA;--color-grey-100: #E7E7E7;--color-grey-200: #D1D1D1;--color-grey-300: #B0B0B0;--color-grey-400: #888888;--color-grey-500: #6D6D6D;--color-grey-600: #5D5D5D;--color-grey-700: #4F4F4F;--color-grey-800: #454545;--color-grey-900: #3D3D3D;--color-grey-950: #0F0F0F;--color-blue-grey-50: #F4F6F7;--color-blue-grey-100: #E3E8EA;--color-blue-grey-200: #CAD3D7;--color-blue-grey-300: #A5B4BB;--color-blue-grey-400: #788D98;--color-blue-grey-500: #55626C;--color-blue-grey-600: #49565F;--color-blue-grey-700: #445058;--color-blue-grey-800: #3A4047;--color-blue-grey-900: #2B3137;--color-blue-grey-950: #24292E;--color-blue-50: #F5F8FE;--color-blue-100: #EFF4FD;--color-blue-200: #EAF0FC;--color-blue-300: #E0E9FA;--color-blue-400: #D5E1F8;--color-blue-500: #CBDAF7;--color-blue-600: #C0D2F5;--color-blue-700: #B6CBF4;--color-blue-800: #ABC3F1;--color-blue-900: #A1BCF0;--color-blue-950: #24292E;--color-blue-situaction-50: #EFF8FF;--color-blue-situaction-100: #DFF1FF;--color-blue-situaction-200: #C3E9FD;--color-blue-situaction-300: #7ED3FB;--color-blue-situaction-400: #31B7FF;--color-blue-situaction-500: #069DEF;--color-blue-situaction-600: #007DCE;--color-blue-situaction-700: #02548A;--color-blue-situaction-800: #1F416D;--color-blue-situaction-900: #1D3557;--color-blue-situaction-950: #14243D;--color-purple-50: #F1F2FC;--color-purple-100: #E6E7F9;--color-purple-200: #D1D3F4;--color-purple-300: #B5B6EC;--color-purple-400: #9A96E3;--color-purple-500: #887DD7;--color-purple-600: #6E59C5;--color-purple-700: #6652B0;--color-purple-800: #53458E;--color-purple-900: #463D72;--color-purple-950: #2A2442;--color-pink-50: #FBF4F8;--color-pink-100: #F8EBF3;--color-pink-200: #F2D8E9;--color-pink-300: #E9B8D6;--color-pink-400: #DB8BBB;--color-pink-500: #CC68A0;--color-pink-600: #B84A83;--color-pink-700: #9D3869;--color-pink-800: #833158;--color-pink-900: #6E2D4C;--color-pink-950: #42152A;--color-gold-50: #FDFAE9;--color-gold-100: #FAF0B9;--color-gold-200: #F8E490;--color-gold-300: #F4CF50;--color-gold-400: #EEB721;--color-gold-500: #DE9F14;--color-gold-600: #C07A0E;--color-gold-700: #99570F;--color-gold-800: #7F4614;--color-gold-900: #6C3917;--color-gold-950: #3F1C09;--color-brown-50: #FDF9ED;--color-brown-100: #F6E4B6;--color-brown-200: #F2D897;--color-brown-300: #ECBD5F;--color-brown-400: #E6A637;--color-brown-500: #DF8620;--color-brown-600: #C7681A;--color-brown-700: #A44919;--color-brown-800: #853A19;--color-brown-900: #6C3019;--color-brown-950: #3E1709;--color-emerald-50: #F2F7F3;--color-emerald-100: #DFECE0;--color-emerald-200: #C1D9C5;--color-emerald-300: #98BDA0;--color-emerald-400: #71A07D;--color-emerald-500: #4A7F59;--color-emerald-600: #376445;--color-emerald-700: #2C5038;--color-emerald-800: #25402F;--color-emerald-900: #1F3527;--color-emerald-950: #111D15}._input-style_1in9x_333{font-family:Urbanist,sans-serif;border:1px solid var(--color-blue-grey-300);box-shadow:0 4px 5px #0000000a;color:var(--btn-primary-color);position:relative}._input-style-ghost_1in9x_341{border-bottom:1px solid var(--color-blue-grey-300);border-width:0 0 1px 0;border-radius:0!important}._input-style-disabled_1in9x_346{background-color:var(--color-light-100);border-color:var(--color-blue-grey-300);pointer-events:none;color:var(--color-blue-grey-300)}._input-style-disabled_1in9x_346 input{color:var(--color-blue-grey-300)}._input-style-focused_1in9x_355{border-color:var(--dynamic-color);color:var(--dynamic-color);background-color:var(--dynamic-background-color)}._input-style-focused_1in9x_355 ._input-container_1in9x_360 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360{color:var(--color-blue-situaction-900)}._input-style-error_1in9x_363{border-color:#ff4747;color:#ff4747}._input-style-error_1in9x_363 ._input-container_1in9x_360 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360{color:#ff4747}._input-style-error-focused_1in9x_370{background-color:#fff1f1}._input-style-error-disabled_1in9x_373{background-color:#fff1f1;border-color:#ff9d9d;color:#ff9d9d}._input-style-error-disabled_1in9x_373 input{color:#ff9d9d}._input-style-success_1in9x_381{border-color:#33b449;color:#33b449}._input-style-success_1in9x_381 ._input-container_1in9x_360 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360{color:#33b449}._input-style-success-focused_1in9x_388{background-color:#f1fcf3}._input-style-success-disabled_1in9x_391{background-color:#f1fcf3;border-color:#91e49e;color:#91e49e}._input-style-success-disabled_1in9x_391 input{color:#91e49e}._input-style_1in9x_333 ._input-container_1in9x_360{position:relative;width:100%}._input-style_1in9x_333 ._floating-label_1in9x_360{position:absolute;left:0;top:50%;transform:translateY(-50%);pointer-events:none;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all;width:auto;z-index:1;line-height:14px}._input-style_1in9x_333 ._floating-label-size-xl_1in9x_416{font-size:1em}._input-style_1in9x_333 ._floating-label-size-l_1in9x_419,._input-style_1in9x_333 ._floating-label-size-m_1in9x_422{font-size:.875em}._input-style_1in9x_333 ._floating-label-size-s_1in9x_425{font-size:.75em}._input-style_1in9x_333 ._floating-input_1in9x_360{display:block;width:100%;box-sizing:border-box}._input-style_1in9x_333 ._floating-input-size-xl_1in9x_434{font-size:1.125em;line-height:28px}._input-style_1in9x_333 ._floating-input-size-l_1in9x_438{font-size:1em;line-height:24px}._input-style_1in9x_333 ._floating-input-size-m_1in9x_442{font-size:.875em;line-height:22px}._input-style_1in9x_333 ._floating-input-size-s_1in9x_446{font-size:.875em;line-height:20px}._input-style_1in9x_333 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360{top:-10px;font-size:14px}._input-style_1in9x_333 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360._floating-label-size-xl_1in9x_416{top:-19px}._input-style_1in9x_333 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360._floating-label-size-l_1in9x_419{top:-16px}._input-style_1in9x_333 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360._floating-label-size-m_1in9x_422{top:-12px}._input-style_1in9x_333 ._floating-input_1in9x_360:not(:placeholder-shown)~._floating-label_1in9x_360._floating-label-size-s_1in9x_425{top:-11px}._input-style_1in9x_333 ._hideBorder_1in9x_466{position:absolute;top:-1px;left:0;width:100%;height:1px;background-color:#535bf2;z-index:0;transition:background-color .2s ease}._input-style_1in9x_333 ._hideBorder-error_1in9x_476{background-color:#fff1f1}._input-style_1in9x_333 ._hideBorder-success_1in9x_479{background-color:#f1fcf3}._input-style-size-xl_1in9x_482{padding:16px;font-size:1.125em;line-height:28px;border-radius:8px}._input-style-size-l_1in9x_488{padding:12px;font-size:1em;line-height:24px;border-radius:8px}._input-style-size-m_1in9x_494{padding:8px;font-size:.875em;line-height:22px;border-radius:8px}._input-style-size-s_1in9x_500{padding:6px;font-size:.875em;line-height:20px;border-radius:4px}input{color:var(--color-blue-situaction-900)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tab-container_1jf6b_6{position:relative;color:var(--primary-color);font-weight:500;font-size:1em;line-height:24px}._tab-items_1jf6b_13{gap:2.25rem;padding:.625rem .125rem;border-bottom:1px solid var(--secondary-color)}._tab-item_1jf6b_13{cursor:pointer;text-align:center}._tab-item-active_1jf6b_22{font-weight:600}._underline_1jf6b_26{position:absolute;bottom:0;height:2px;background-color:var(--primary-color);transition:all .3s ease}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tag_1rbf7_6{color:var(--dynamic-color-text);background-color:var(--dynamic-background);border-radius:50px;line-height:normal;gap:.25rem;font-weight:600;letter-spacing:.84px}._tag-children_1rbf7_16{background-color:var(--dynamic-color-text);color:var(--dynamic-background);border-radius:50px;min-width:16px;min-height:16px;aspect-ratio:1/1}._tag-size-xl_1rbf7_24{padding:.5rem .75rem;font-size:1.125em}._tag-size-l_1rbf7_28{padding:.375rem .625rem;font-size:1em}._tag-size-m_1rbf7_32{padding:.25rem .5rem;font-size:.875em}._tag-size-s_1rbf7_36{padding:.125rem .375rem;font-size:.75em}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html{overflow-x:hidden}body{line-height:1;width:100vw;height:100vh}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}button{border:none;padding:0;cursor:pointer}input{font-family:Urbanist,sans-serif;border:none;background-color:transparent}input:focus{outline:none;box-shadow:none;border-color:transparent}@font-face{font-family:Urbanist-Thin;src:url(../fonts/Urbanist-Thin.ttf) format("truetype");font-weight:100;font-style:normal}@font-face{font-family:Urbanist-Extra-Light;src:url(../fonts/Urbanist-ExtraLight.ttf) format("truetype");font-weight:200;font-style:normal}@font-face{font-family:Urbanist-Light;src:url(../fonts/Urbanist-Light.ttf) format("truetype");font-weight:300;font-style:normal}@font-face{font-family:Urbanist-Regular;src:url(../fonts/Urbanist-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:Urbanist;src:url(../fonts/Urbanist-Medium.ttf) format("truetype");font-weight:500;font-style:normal}@font-face{font-family:Urbanist-Back;src:url(../fonts/Urbanist-Black.ttf) format("truetype");font-weight:600;font-style:normal}@font-face{font-family:Urbanist-Semi-Bold;src:url(../fonts/Urbanist-SemiBold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:Urbanist-Bold;src:url(../fonts/Urbanist-Bold.ttf) format("truetype");font-weight:800;font-style:normal}@font-face{font-family:Urbanist-Extra-Bold;src:url(../fonts/Urbanist-ExtraBold.ttf) format("truetype");font-weight:900;font-style:normal}:root,body{font-family:Urbanist,sans-serif}.fontUrbanist{font-family:Urbanist,sans-serif}.textColorPrimary{color:var(--color-blue-situaction-900)}.backColorPrimary{background-color:var(--color-blue-situaction-900)}.padding-s{padding:12px}.flexHorizontal{display:flex;justify-content:flex-start;align-items:center;flex-direction:row}.flexHorizontalCenter{display:flex;justify-content:center;align-items:center;flex-direction:row}.flexVertical{display:flex;justify-content:flex-start;align-items:center;flex-direction:column}.flexVerticalCenter{display:flex;justify-content:center;align-items:center;flex-direction:row}.gap4{gap:4px}
|
package/dist/styles/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html{overflow-x:hidden}body{line-height:1;width:100vw;height:100vh}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}button{border:none;padding:0;cursor:pointer}
|
|
1
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html{overflow-x:hidden}body{line-height:1;width:100vw;height:100vh}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}button{border:none;padding:0;cursor:pointer}input{font-family:Urbanist,sans-serif;border:none;background-color:transparent}input:focus{outline:none;box-shadow:none;border-color:transparent}:root{--color-light-05: rgba(255, 255, 255, .05);--color-light-10: rgba(255, 255, 255, .1);--color-light-20: rgba(255, 255, 255, .2);--color-light-30: rgba(255, 255, 255, .3);--color-light-40: rgba(255, 255, 255, .4);--color-light-50: rgba(255, 255, 255, .5);--color-light-60: rgba(255, 255, 255, .6);--color-light-70: rgba(255, 255, 255, .7);--color-light-80: rgba(255, 255, 255, .8);--color-light-90: rgba(255, 255, 255, .9);--color-light-100: #FFF;--color-dark-05: rgba(15, 15, 15, .05);--color-dark-10: rgba(15, 15, 15, .1);--color-dark-20: rgba(15, 15, 15, .2);--color-dark-30: rgba(15, 15, 15, .3);--color-dark-40: rgba(15, 15, 15, .4);--color-dark-50: rgba(15, 15, 15, .5);--color-dark-60: rgba(15, 15, 15, .6);--color-dark-70: rgba(15, 15, 15, .7);--color-dark-80: rgba(15, 15, 15, .8);--color-dark-90: rgba(15, 15, 15, .9);--color-dark-100: #09090B;--color-grey-50: #FAFAFA;--color-grey-100: #E7E7E7;--color-grey-200: #D1D1D1;--color-grey-300: #B0B0B0;--color-grey-400: #888888;--color-grey-500: #6D6D6D;--color-grey-600: #5D5D5D;--color-grey-700: #4F4F4F;--color-grey-800: #454545;--color-grey-900: #3D3D3D;--color-grey-950: #0F0F0F;--color-blue-grey-50: #F4F6F7;--color-blue-grey-100: #E3E8EA;--color-blue-grey-200: #CAD3D7;--color-blue-grey-300: #A5B4BB;--color-blue-grey-400: #788D98;--color-blue-grey-500: #55626C;--color-blue-grey-600: #49565F;--color-blue-grey-700: #445058;--color-blue-grey-800: #3A4047;--color-blue-grey-900: #2B3137;--color-blue-grey-950: #24292E;--color-blue-50: #F5F8FE;--color-blue-100: #EFF4FD;--color-blue-200: #EAF0FC;--color-blue-300: #E0E9FA;--color-blue-400: #D5E1F8;--color-blue-500: #CBDAF7;--color-blue-600: #C0D2F5;--color-blue-700: #B6CBF4;--color-blue-800: #ABC3F1;--color-blue-900: #A1BCF0;--color-blue-950: #24292E;--color-blue-situaction-50: #EFF8FF;--color-blue-situaction-100: #DFF1FF;--color-blue-situaction-200: #C3E9FD;--color-blue-situaction-300: #7ED3FB;--color-blue-situaction-400: #31B7FF;--color-blue-situaction-500: #069DEF;--color-blue-situaction-600: #007DCE;--color-blue-situaction-700: #02548A;--color-blue-situaction-800: #1F416D;--color-blue-situaction-900: #1D3557;--color-blue-situaction-950: #14243D;--color-purple-50: #F1F2FC;--color-purple-100: #E6E7F9;--color-purple-200: #D1D3F4;--color-purple-300: #B5B6EC;--color-purple-400: #9A96E3;--color-purple-500: #887DD7;--color-purple-600: #6E59C5;--color-purple-700: #6652B0;--color-purple-800: #53458E;--color-purple-900: #463D72;--color-purple-950: #2A2442;--color-pink-50: #FBF4F8;--color-pink-100: #F8EBF3;--color-pink-200: #F2D8E9;--color-pink-300: #E9B8D6;--color-pink-400: #DB8BBB;--color-pink-500: #CC68A0;--color-pink-600: #B84A83;--color-pink-700: #9D3869;--color-pink-800: #833158;--color-pink-900: #6E2D4C;--color-pink-950: #42152A;--color-gold-50: #FDFAE9;--color-gold-100: #FAF0B9;--color-gold-200: #F8E490;--color-gold-300: #F4CF50;--color-gold-400: #EEB721;--color-gold-500: #DE9F14;--color-gold-600: #C07A0E;--color-gold-700: #99570F;--color-gold-800: #7F4614;--color-gold-900: #6C3917;--color-gold-950: #3F1C09;--color-brown-50: #FDF9ED;--color-brown-100: #F6E4B6;--color-brown-200: #F2D897;--color-brown-300: #ECBD5F;--color-brown-400: #E6A637;--color-brown-500: #DF8620;--color-brown-600: #C7681A;--color-brown-700: #A44919;--color-brown-800: #853A19;--color-brown-900: #6C3019;--color-brown-950: #3E1709;--color-emerald-50: #F2F7F3;--color-emerald-100: #DFECE0;--color-emerald-200: #C1D9C5;--color-emerald-300: #98BDA0;--color-emerald-400: #71A07D;--color-emerald-500: #4A7F59;--color-emerald-600: #376445;--color-emerald-700: #2C5038;--color-emerald-800: #25402F;--color-emerald-900: #1F3527;--color-emerald-950: #111D15}:root,[data-theme=light]{--btn-primary-color: var(--primary-color-900);--btn-primary-color-hover: var(--primary-color-800);--btn-primary-color-activated: var(--primary-color-700);--btn-primary-color-disabled: var(--primary-color-50);--btn-primary-color-text: var(--color-light-100);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-dark-20);--btn-secondary-color-text: var(--color-blue-situaction-900);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-dark-05);--btn-tertiary-color-activated: var(--color-dark-10);--btn-tertiary-color-disabled: var(--color-dark-05);--btn-tertiary-color-border-disabled: var(--color-dark-20);--btn-tertiary-color-text: var(--color-grey-950);--btn-tertiary-color-border: var(--color-dark-20);--btn-ghost-color-hover: var(--color-dark-05);--btn-ghost-color-activated: var(--color-dark-10);--btn-ghost-color-text: var(--color-grey-950);--btn-ghost-color-text-disabled: var(--color-dark-40)}[data-theme=dark]{--btn-primary-color: var(--primary-color-200);--btn-primary-color-hover: var(--primary-color-100);--btn-primary-color-activated: var(--primary-color-50);--btn-primary-color-disabled: var(--primary-dark-color-disabled);--btn-primary-color-text: var(--primary-color-900);--btn-secondary-color: rgba(150, 180, 238, .1);--btn-secondary-color-hover: rgba(150, 180, 238, .2);--btn-secondary-color-activated: rgba(150, 180, 238, .3);--btn-secondary-color-disabled: var(--color-dark-05);--btn-secondary-color-border-disabled: var(--color-light-20);--btn-secondary-color-text: var(--color-light-100);--btn-secondary-color-border: rgba(150, 180, 238, .5);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(---color-light-05);--btn-tertiary-color-activated: var(--color-light-10);--btn-tertiary-color-disabled: var(--color-light-05);--btn-tertiary-color-border-disabled: var(--color-light-40);--btn-tertiary-color-text: var(--color-light-100);--btn-tertiary-color-border: var(--color-light-20);--btn-ghost-color-hover: var(--color-light-05);--btn-ghost-color-activated: var(--color-light-10);--btn-ghost-color-text: var(--color-light-100);--btn-ghost-color-text-disabled: var(--color-light-40)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@situaction/traq-ui-ste",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "library react component Situaction",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"dev": "vite",
|
|
11
|
+
"dev": "vite --open",
|
|
12
12
|
"test": "jest",
|
|
13
13
|
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
14
14
|
"prepublish": "npm run build",
|