@situaction/traq-ui-ste 1.0.10 → 1.0.11
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 +3 -2
- package/dist/components/button/Button.js +45 -40
- package/dist/components/input/Input.d.ts +16 -2
- package/dist/components/input/Input.js +130 -8
- package/dist/components/tabs/Tabs.d.ts +8 -0
- package/dist/components/tabs/Tabs.js +43 -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.js +9 -8
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Input.css +1 -1
- package/dist/styles/Tabs.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,11 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
mode?:
|
|
4
|
+
mode?: 'primary' | 'secondary' | 'tertiary' | 'ghost'; /** Is this the principal call to action on the page? */
|
|
5
5
|
color?: string; /** What background color to use (blue, red, ...)*/
|
|
6
6
|
size?: 's' | 'm' | 'l' | 'xl'; /** How large should the button be? */
|
|
7
7
|
label: string; /** button contents */
|
|
8
|
+
error?: boolean;
|
|
8
9
|
children?: ReactNode; /** Additional content inside the button */
|
|
9
10
|
childrenPosition?: 'left' | 'right' | 'both'; /** Position of the children relative to the label */
|
|
10
11
|
onClick?: () => void; /** Optional click handler */
|
|
@@ -12,5 +13,5 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
12
13
|
/**
|
|
13
14
|
* Primary UI component for user interaction
|
|
14
15
|
*/
|
|
15
|
-
export declare const Button: ({ mode, size, color, label, children, childrenPosition, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Button: ({ mode, size, color, label, error, children, childrenPosition, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -1,52 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import '../../styles/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"button-
|
|
6
|
-
"button-
|
|
7
|
-
"button-
|
|
8
|
-
"button-
|
|
9
|
-
"button-
|
|
10
|
-
"button-
|
|
11
|
-
"button-
|
|
12
|
-
"button-
|
|
13
|
-
"button-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import '../../styles/index.css';import '../../styles/Button.css';/* empty css */
|
|
3
|
+
const m = "_button_wju3t_194", u = {
|
|
4
|
+
button: m,
|
|
5
|
+
"button-primary": "_button-primary_wju3t_209",
|
|
6
|
+
"button-secondary": "_button-secondary_wju3t_224",
|
|
7
|
+
"button-tertiary": "_button-tertiary_wju3t_243",
|
|
8
|
+
"button-ghost": "_button-ghost_wju3t_262",
|
|
9
|
+
"button-error": "_button-error_wju3t_277",
|
|
10
|
+
"button-size-xl": "_button-size-xl_wju3t_292",
|
|
11
|
+
"button-size-l": "_button-size-l_wju3t_297",
|
|
12
|
+
"button-size-m": "_button-size-m_wju3t_302",
|
|
13
|
+
"button-size-s": "_button-size-s_wju3t_307",
|
|
14
|
+
"button-gap-xl": "_button-gap-xl_wju3t_312",
|
|
15
|
+
"button-gap-l": "_button-gap-l_wju3t_315",
|
|
16
|
+
"button-gap-m": "_button-gap-m_wju3t_318",
|
|
17
|
+
"button-gap-s": "_button-gap-s_wju3t_318"
|
|
18
|
+
}, w = ({
|
|
19
|
+
mode: _ = "primary",
|
|
20
|
+
size: n = "m",
|
|
21
|
+
color: c = "blue",
|
|
22
|
+
label: b,
|
|
23
|
+
error: a,
|
|
24
|
+
children: t,
|
|
25
|
+
childrenPosition: o,
|
|
26
|
+
...s
|
|
22
27
|
}) => {
|
|
23
|
-
const _ = [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
const e = () => a ? "error" : _, l = [
|
|
29
|
+
u.button,
|
|
30
|
+
u[`button-${e()}`],
|
|
31
|
+
u[`button-size-${n}`],
|
|
32
|
+
u[`button-gap-${n}`],
|
|
28
33
|
"flexHorizontalCenter"
|
|
29
|
-
].join(" ")
|
|
30
|
-
|
|
31
|
-
"--dynamic-hover-color": `var(--primary-color-hover-${t})`,
|
|
32
|
-
"--dynamic-pressed-color": `var(--primary-color-pressed-${t})`,
|
|
33
|
-
"--dynamic-disabled-color": `var(--primary-color-disabled-${t})`
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ m(
|
|
34
|
+
].join(" ");
|
|
35
|
+
return /* @__PURE__ */ p(
|
|
36
36
|
"button",
|
|
37
37
|
{
|
|
38
38
|
type: "button",
|
|
39
|
-
className:
|
|
40
|
-
style:
|
|
41
|
-
|
|
39
|
+
className: l,
|
|
40
|
+
style: {
|
|
41
|
+
"--dynamic-color": "var(--primary-color)",
|
|
42
|
+
"--dynamic-hover-color": "var(--primary-color-hover)",
|
|
43
|
+
"--dynamic-pressed-color": "var(--primary-color-activated)",
|
|
44
|
+
"--dynamic-disabled-color": "var(--primary-color-disabled)"
|
|
45
|
+
},
|
|
46
|
+
...s,
|
|
42
47
|
children: [
|
|
43
|
-
(
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
(
|
|
48
|
+
(o === "left" || o === "both") && t && /* @__PURE__ */ r("span", { children: t }),
|
|
49
|
+
/* @__PURE__ */ r("span", { children: b }),
|
|
50
|
+
(o === "right" || o === "both") && t && /* @__PURE__ */ r("span", { children: t })
|
|
46
51
|
]
|
|
47
52
|
}
|
|
48
53
|
);
|
|
49
54
|
};
|
|
50
55
|
export {
|
|
51
|
-
|
|
56
|
+
w as Button
|
|
52
57
|
};
|
|
@@ -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 h, useRef as x, useEffect as q } from "react";
|
|
3
|
+
import '../../styles/Input.css';const A = "_hideBorder_1hx1x_462", e = {
|
|
4
|
+
"input-style": "_input-style_1hx1x_329",
|
|
5
|
+
"input-style-ghost": "_input-style-ghost_1hx1x_337",
|
|
6
|
+
"input-style-disabled": "_input-style-disabled_1hx1x_342",
|
|
7
|
+
"input-style-focused": "_input-style-focused_1hx1x_351",
|
|
8
|
+
"input-container": "_input-container_1hx1x_356",
|
|
9
|
+
"floating-input": "_floating-input_1hx1x_356",
|
|
10
|
+
"floating-label": "_floating-label_1hx1x_356",
|
|
11
|
+
"input-style-error": "_input-style-error_1hx1x_359",
|
|
12
|
+
"input-style-error-focused": "_input-style-error-focused_1hx1x_366",
|
|
13
|
+
"input-style-error-disabled": "_input-style-error-disabled_1hx1x_369",
|
|
14
|
+
"input-style-success": "_input-style-success_1hx1x_377",
|
|
15
|
+
"input-style-success-focused": "_input-style-success-focused_1hx1x_384",
|
|
16
|
+
"input-style-success-disabled": "_input-style-success-disabled_1hx1x_387",
|
|
17
|
+
"floating-label-size-xl": "_floating-label-size-xl_1hx1x_412",
|
|
18
|
+
"floating-label-size-l": "_floating-label-size-l_1hx1x_415",
|
|
19
|
+
"floating-label-size-m": "_floating-label-size-m_1hx1x_418",
|
|
20
|
+
"floating-label-size-s": "_floating-label-size-s_1hx1x_421",
|
|
21
|
+
"floating-input-size-xl": "_floating-input-size-xl_1hx1x_430",
|
|
22
|
+
"floating-input-size-l": "_floating-input-size-l_1hx1x_434",
|
|
23
|
+
"floating-input-size-m": "_floating-input-size-m_1hx1x_438",
|
|
24
|
+
"floating-input-size-s": "_floating-input-size-s_1hx1x_442",
|
|
25
|
+
hideBorder: A,
|
|
26
|
+
"hideBorder-error": "_hideBorder-error_1hx1x_472",
|
|
27
|
+
"hideBorder-success": "_hideBorder-success_1hx1x_475",
|
|
28
|
+
"input-style-size-xl": "_input-style-size-xl_1hx1x_478",
|
|
29
|
+
"input-style-size-l": "_input-style-size-l_1hx1x_484",
|
|
30
|
+
"input-style-size-m": "_input-style-size-m_1hx1x_490",
|
|
31
|
+
"input-style-size-s": "_input-style-size-s_1hx1x_496"
|
|
32
|
+
}, K = ({
|
|
33
|
+
sizeStyle: c = "m",
|
|
34
|
+
label: g,
|
|
35
|
+
labelUnit: b,
|
|
36
|
+
color: l,
|
|
37
|
+
status: n = "default",
|
|
38
|
+
ghost: m = !1,
|
|
39
|
+
children: i,
|
|
40
|
+
childrenPosition: o = "left",
|
|
41
|
+
disabled: _,
|
|
42
|
+
defaultValue: z,
|
|
43
|
+
...B
|
|
44
|
+
}) => {
|
|
45
|
+
const [d, y] = h(!1), [r, $] = h(z || ""), s = x(null), u = x(null), a = x(null), C = () => y(!0), N = () => y(!1), j = (p) => {
|
|
46
|
+
$(p.target.value);
|
|
47
|
+
}, R = [
|
|
48
|
+
e["input-style"],
|
|
49
|
+
e[`input-style-size-${c}`],
|
|
50
|
+
e[`input-style-gap-${n}`],
|
|
51
|
+
"flexHorizontalCenter gap4",
|
|
52
|
+
m && 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 (n) {
|
|
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": `${l}`,
|
|
81
|
+
"--dynamic-color-border": `$color-${l}-300`,
|
|
82
|
+
"--dynamic-background-color": `$color-${l}-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
|
+
n === "success" && e["hideBorder-success"],
|
|
90
|
+
n === "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: l ? w : V,
|
|
107
|
+
children: [
|
|
108
|
+
r && /* @__PURE__ */ t("div", { className: W, ref: u }),
|
|
109
|
+
i && (o === "left" || o === "both") && /* @__PURE__ */ t("span", { className: "flexHorizontal", children: i }),
|
|
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: g })
|
|
122
|
+
] }),
|
|
123
|
+
i && (o === "right" || o === "both") && /* @__PURE__ */ f(O, { children: [
|
|
124
|
+
/* @__PURE__ */ t("div", { children: b }),
|
|
125
|
+
/* @__PURE__ */ t("span", { className: "flexHorizontal", children: i })
|
|
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,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
|
+
console.log(t), 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 default
|
|
43
|
+
};
|
|
@@ -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.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { Input as
|
|
3
|
-
import { ThemeProvider as
|
|
4
|
-
import './styles/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
u as
|
|
1
|
+
import { Button as t } from "./components/button/Button.js";
|
|
2
|
+
import { Input as p } from "./components/input/Input.js";
|
|
3
|
+
import { ThemeProvider as u, useTheme as x } from "./components/theme/ThemeContext.js";
|
|
4
|
+
import './styles/index.css';import './styles/main.css';/* empty css */
|
|
5
|
+
export {
|
|
6
|
+
t as Button,
|
|
7
|
+
p as Input,
|
|
8
|
+
u as ThemeProvider,
|
|
9
|
+
x as useTheme
|
|
9
10
|
};
|
package/dist/styles/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
:root{--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-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: var(--color-blue-50);--btn-secondary-color-hover: var(--color-blue-800);--btn-secondary-color-activated: var(--color-blue-400);--btn-secondary-color-disabled: var(--color-blue-grey-50);--btn-secondary-color-border-disabled: var(--color-grey-200);--btn-secondary-color-text: var(--color-blue-situaction-900);--btn-secondary-color-border: var(--color-blue-800);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-grey-50);--btn-tertiary-color-activated: var(--color-grey-100);--btn-tertiary-color-disabled: var(--color-blue-grey-50);--btn-tertiary-color-border-disabled: var(--color-grey-200);--btn-tertiary-color-text: var(--color-grey-950);--btn-tertiary-color-border: var(--color-grey-300);--btn-ghost-color-hover: var(--color-blue-50);--btn-ghost-color-activated: var(--color-blue-100);--btn-ghost-color-text: var(--color-grey-950);--btn-ghost-color-text-disabled: var(--color-grey-200)}[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: var(--color-blue-grey-900);--btn-secondary-color-hover: var(--color-blue-grey-800);--btn-secondary-color-activated: var(--color-blue-grey-700);--btn-secondary-color-disabled: var(--color-blue-grey-800);--btn-secondary-color-border-disabled: var(--color-blue-grey-500);--btn-secondary-color-text: var(--color-light-100);--btn-secondary-color-border: var(--color-blue-grey-500);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-blue-grey-900);--btn-tertiary-color-activated: var(--color-blue-grey-800);--btn-tertiary-color-disabled: var(--color-blue-grey-800);--btn-tertiary-color-border-disabled: var(--color-blue-grey-500);--btn-tertiary-color-text: var(--color-light-100);--btn-tertiary-color-border: var(--color-blue-grey-700);--btn-ghost-color-hover: var(--color-blue-grey-900);--btn-ghost-color-activated: var(--color-blue-grey-800);--btn-ghost-color-text: var(--color-light-100);--btn-ghost-color-text-disabled: var(--color-grey-400)}._button_wju3t_194{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_wju3t_194:focus{outline:2px solid var(--btn-primary-color);outline-offset:2px}._button-primary_wju3t_209{color:var(--btn-primary-color-text);background-color:var(--btn-primary-color)}._button-primary_wju3t_209:hover{background-color:var(--btn-primary-color-hover)}._button-primary_wju3t_209:active{background-color:var(--btn-primary-color-activated)}._button-primary_wju3t_209:disabled{background-color:var(--btn-primary-color-disabled);color:var(--color-grey-400);cursor:initial}._button-secondary_wju3t_224{color:var(--btn-secondary-color-text);background-color:var(--btn-secondary-color);border:1px solid var(--btn-secondary-color-border)}._button-secondary_wju3t_224:hover{background-color:var(--btn-secondary-color-hover);border:1px solid var(--btn-secondary-color-border)}._button-secondary_wju3t_224:active{background-color:var(--btn-secondary-color-activated);border:1px solid var(--btn-secondary-color-border)}._button-secondary_wju3t_224: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_wju3t_243{color:var(--btn-tertiary-color);background-color:transparent;border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_wju3t_243:hover{background-color:var(--btn-tertiary-color-hover);border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_wju3t_243:active{background-color:var(--btn-tertiary-color-activated);border:1px solid var(--btn-tertiary-color-border)}._button-tertiary_wju3t_243: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_wju3t_262{color:var(--btn-ghost-color-text);background-color:transparent}._button-ghost_wju3t_262:hover{background-color:var(--btn-ghost-color-hover)}._button-ghost_wju3t_262:active{background-color:var(--btn-ghost-color-activated)}._button-ghost_wju3t_262:disabled{background-color:transparent;color:var(--btn-ghost-color-text-disabled);cursor:initial}._button-error_wju3t_277{color:var(color-light-100);background-color:#ff4747}._button-error_wju3t_277:hover{background-color:#ed1515}._button-error_wju3t_277:active{background-color:#c80d0d}._button-error_wju3t_277:disabled{background-color:var(color-blue-grey-200);color:var(color-blue-grey-500);cursor:initial}._button-size-xl_wju3t_292{padding:16px 32px;font-size:1.125em;line-height:28px}._button-size-l_wju3t_297{padding:12px 24px;font-size:1em;line-height:24px}._button-size-m_wju3t_302{padding:8px 16px;font-size:.875em;line-height:22px}._button-size-s_wju3t_307{padding:6px 12px;font-size:.75em;line-height:16px}._button-gap-xl_wju3t_312{gap:12px}._button-gap-l_wju3t_315{gap:8px}._button-gap-m_wju3t_318,._button-gap-s_wju3t_318{gap:4px}
|
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: var(--color-blue-50);--btn-secondary-color-hover: var(--color-blue-800);--btn-secondary-color-activated: var(--color-blue-400);--btn-secondary-color-disabled: var(--color-blue-grey-50);--btn-secondary-color-border-disabled: var(--color-grey-200);--btn-secondary-color-text: var(--color-blue-situaction-900);--btn-secondary-color-border: var(--color-blue-800);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-grey-50);--btn-tertiary-color-activated: var(--color-grey-100);--btn-tertiary-color-disabled: var(--color-blue-grey-50);--btn-tertiary-color-border-disabled: var(--color-grey-200);--btn-tertiary-color-text: var(--color-grey-950);--btn-tertiary-color-border: var(--color-grey-300);--btn-ghost-color-hover: var(--color-blue-50);--btn-ghost-color-activated: var(--color-blue-100);--btn-ghost-color-text: var(--color-grey-950);--btn-ghost-color-text-disabled: var(--color-grey-200)}[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: var(--color-blue-grey-900);--btn-secondary-color-hover: var(--color-blue-grey-800);--btn-secondary-color-activated: var(--color-blue-grey-700);--btn-secondary-color-disabled: var(--color-blue-grey-800);--btn-secondary-color-border-disabled: var(--color-blue-grey-500);--btn-secondary-color-text: var(--color-light-100);--btn-secondary-color-border: var(--color-blue-grey-500);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-blue-grey-900);--btn-tertiary-color-activated: var(--color-blue-grey-800);--btn-tertiary-color-disabled: var(--color-blue-grey-800);--btn-tertiary-color-border-disabled: var(--color-blue-grey-500);--btn-tertiary-color-text: var(--color-light-100);--btn-tertiary-color-border: var(--color-blue-grey-700);--btn-ghost-color-hover: var(--color-blue-grey-900);--btn-ghost-color-activated: var(--color-blue-grey-800);--btn-ghost-color-text: var(--color-light-100);--btn-ghost-color-text-disabled: var(--color-grey-400)}:root{--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-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_1hx1x_329{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_1hx1x_337{border-bottom:1px solid var(--color-blue-grey-300);border-width:0 0 1px 0;border-radius:0!important}._input-style-disabled_1hx1x_342{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_1hx1x_342 input{color:var(--color-blue-grey-300)}._input-style-focused_1hx1x_351{border-color:var(--dynamic-color);color:var(--dynamic-color);background-color:var(--dynamic-background-color)}._input-style-focused_1hx1x_351 ._input-container_1hx1x_356 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356{color:var(--color-blue-situaction-900)}._input-style-error_1hx1x_359{border-color:#ff4747;color:#ff4747}._input-style-error_1hx1x_359 ._input-container_1hx1x_356 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356{color:#ff4747}._input-style-error-focused_1hx1x_366{background-color:#fff1f1}._input-style-error-disabled_1hx1x_369{background-color:#fff1f1;border-color:#ff9d9d;color:#ff9d9d}._input-style-error-disabled_1hx1x_369 input{color:#ff9d9d}._input-style-success_1hx1x_377{border-color:#33b449;color:#33b449}._input-style-success_1hx1x_377 ._input-container_1hx1x_356 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356{color:#33b449}._input-style-success-focused_1hx1x_384{background-color:#f1fcf3}._input-style-success-disabled_1hx1x_387{background-color:#f1fcf3;border-color:#91e49e;color:#91e49e}._input-style-success-disabled_1hx1x_387 input{color:#91e49e}._input-style_1hx1x_329 ._input-container_1hx1x_356{position:relative;width:100%}._input-style_1hx1x_329 ._floating-label_1hx1x_356{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_1hx1x_329 ._floating-label-size-xl_1hx1x_412{font-size:1em}._input-style_1hx1x_329 ._floating-label-size-l_1hx1x_415,._input-style_1hx1x_329 ._floating-label-size-m_1hx1x_418{font-size:.875em}._input-style_1hx1x_329 ._floating-label-size-s_1hx1x_421{font-size:.75em}._input-style_1hx1x_329 ._floating-input_1hx1x_356{display:block;width:100%;box-sizing:border-box}._input-style_1hx1x_329 ._floating-input-size-xl_1hx1x_430{font-size:1.125em;line-height:28px}._input-style_1hx1x_329 ._floating-input-size-l_1hx1x_434{font-size:1em;line-height:24px}._input-style_1hx1x_329 ._floating-input-size-m_1hx1x_438{font-size:.875em;line-height:22px}._input-style_1hx1x_329 ._floating-input-size-s_1hx1x_442{font-size:.875em;line-height:20px}._input-style_1hx1x_329 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356{top:-10px;font-size:14px}._input-style_1hx1x_329 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356._floating-label-size-xl_1hx1x_412{top:-19px}._input-style_1hx1x_329 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356._floating-label-size-l_1hx1x_415{top:-16px}._input-style_1hx1x_329 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356._floating-label-size-m_1hx1x_418{top:-12px}._input-style_1hx1x_329 ._floating-input_1hx1x_356:not(:placeholder-shown)~._floating-label_1hx1x_356._floating-label-size-s_1hx1x_421{top:-11px}._input-style_1hx1x_329 ._hideBorder_1hx1x_462{position:absolute;top:-1px;left:0;width:100%;height:1px;background-color:#535bf2;z-index:0;transition:background-color .2s ease}._input-style_1hx1x_329 ._hideBorder-error_1hx1x_472{background-color:#fff1f1}._input-style_1hx1x_329 ._hideBorder-success_1hx1x_475{background-color:#f1fcf3}._input-style-size-xl_1hx1x_478{padding:16px;font-size:1.125em;line-height:28px;border-radius:8px}._input-style-size-l_1hx1x_484{padding:12px;font-size:1em;line-height:24px;border-radius:8px}._input-style-size-m_1hx1x_490{padding:8px;font-size:.875em;line-height:22px;border-radius:8px}._input-style-size-s_1hx1x_496{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
|
+
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}.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-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-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: var(--color-blue-50);--btn-secondary-color-hover: var(--color-blue-800);--btn-secondary-color-activated: var(--color-blue-400);--btn-secondary-color-disabled: var(--color-blue-grey-50);--btn-secondary-color-border-disabled: var(--color-grey-200);--btn-secondary-color-text: var(--color-blue-situaction-900);--btn-secondary-color-border: var(--color-blue-800);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-grey-50);--btn-tertiary-color-activated: var(--color-grey-100);--btn-tertiary-color-disabled: var(--color-blue-grey-50);--btn-tertiary-color-border-disabled: var(--color-grey-200);--btn-tertiary-color-text: var(--color-grey-950);--btn-tertiary-color-border: var(--color-grey-300);--btn-ghost-color-hover: var(--color-blue-50);--btn-ghost-color-activated: var(--color-blue-100);--btn-ghost-color-text: var(--color-grey-950);--btn-ghost-color-text-disabled: var(--color-grey-200)}[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: var(--color-blue-grey-900);--btn-secondary-color-hover: var(--color-blue-grey-800);--btn-secondary-color-activated: var(--color-blue-grey-700);--btn-secondary-color-disabled: var(--color-blue-grey-800);--btn-secondary-color-border-disabled: var(--color-blue-grey-500);--btn-secondary-color-text: var(--color-light-100);--btn-secondary-color-border: var(--color-blue-grey-500);--btn-tertiary-color: var(--color-light-100);--btn-tertiary-color-hover: var(--color-blue-grey-900);--btn-tertiary-color-activated: var(--color-blue-grey-800);--btn-tertiary-color-disabled: var(--color-blue-grey-800);--btn-tertiary-color-border-disabled: var(--color-blue-grey-500);--btn-tertiary-color-text: var(--color-light-100);--btn-tertiary-color-border: var(--color-blue-grey-700);--btn-ghost-color-hover: var(--color-blue-grey-900);--btn-ghost-color-activated: var(--color-blue-grey-800);--btn-ghost-color-text: var(--color-light-100);--btn-ghost-color-text-disabled: var(--color-grey-400)}
|
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.11",
|
|
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",
|