@situaction/traq-ui-ste 1.0.18 → 1.0.20

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.
@@ -2,16 +2,26 @@ import { ButtonHTMLAttributes, FC, ReactNode } from 'react';
2
2
  import { Color, Size } from '../interface';
3
3
 
4
4
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
- mode?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'text'; /** 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 **/
8
- size?: Size; /** How large should the button be? */
9
- label: string; /** button contents */
10
- error?: boolean; /** If true, the button will be styled to indicate an error state. */
11
- selected?: boolean; /** If true, the button is activated */
12
- childrenLeft?: ReactNode; /** Additional content inside the input */
13
- childrenRight?: ReactNode; /** Additional content inside the input */
14
- onClick?: () => void; /** Optional click handler */
5
+ /** Is this the principal call to action on the page? */
6
+ mode?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'text';
7
+ /** What background color to use (blue, red, ...)*/
8
+ color?: Color;
9
+ /** what mode do you use for light or dark color **/
10
+ colorMode?: 'light' | 'dark';
11
+ /** How large should the button be? */
12
+ size?: Size;
13
+ /** button contents */
14
+ label: string;
15
+ /** If true, the button will be styled to indicate an error state. */
16
+ error?: boolean;
17
+ /** If true, the button is activated */
18
+ selected?: boolean;
19
+ /** Additional content inside the input */
20
+ childrenLeft?: ReactNode;
21
+ /** Additional content inside the input */
22
+ childrenRight?: ReactNode;
23
+ /** Optional click handler */
24
+ onClick?: () => void;
15
25
  }
16
26
  /**
17
27
  * Primary UI component for user interaction
@@ -1,68 +1,68 @@
1
- import { jsxs as k, jsx as i } from "react/jsx-runtime";
2
- import { useEffect as x } from "react";
3
- import { useTheme as d } from "../theme/ThemeContext.js";
4
- import '../../styles/Button.css';const g = "_button_1b5ik_21", v = "_flexHorizontalCenter_1b5ik_163", o = {
5
- button: g,
6
- "button-primary": "_button-primary_1b5ik_43",
7
- "button-secondary": "_button-secondary_1b5ik_57",
8
- "button-tertiary": "_button-tertiary_1b5ik_71",
9
- "button-ghost": "_button-ghost_1b5ik_85",
10
- "button-text": "_button-text_1b5ik_101",
11
- "button-text-selected": "_button-text-selected_1b5ik_114",
12
- "button-error": "_button-error_1b5ik_120",
13
- "button-size-xl": "_button-size-xl_1b5ik_133",
14
- "button-size-l": "_button-size-l_1b5ik_138",
15
- "button-size-m": "_button-size-m_1b5ik_143",
16
- "button-size-s": "_button-size-s_1b5ik_148",
17
- "button-gap-xl": "_button-gap-xl_1b5ik_153",
18
- "button-gap-l": "_button-gap-l_1b5ik_156",
19
- "button-gap-m": "_button-gap-m_1b5ik_159",
20
- "button-gap-s": "_button-gap-s_1b5ik_159",
21
- flexHorizontalCenter: v
22
- }, $ = ({
1
+ import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
+ import { useEffect as y } from "react";
3
+ import { useTheme as x } from "../theme/ThemeContext.js";
4
+ import '../../styles/Button.css';const d = "_button_tf4v4_21", g = "_flexHorizontalCenter_tf4v4_164", o = {
5
+ button: d,
6
+ "button-primary": "_button-primary_tf4v4_44",
7
+ "button-secondary": "_button-secondary_tf4v4_58",
8
+ "button-tertiary": "_button-tertiary_tf4v4_72",
9
+ "button-ghost": "_button-ghost_tf4v4_86",
10
+ "button-text": "_button-text_tf4v4_102",
11
+ "button-text-selected": "_button-text-selected_tf4v4_115",
12
+ "button-error": "_button-error_tf4v4_121",
13
+ "button-size-xl": "_button-size-xl_tf4v4_134",
14
+ "button-size-l": "_button-size-l_tf4v4_139",
15
+ "button-size-m": "_button-size-m_tf4v4_144",
16
+ "button-size-s": "_button-size-s_tf4v4_149",
17
+ "button-gap-xl": "_button-gap-xl_tf4v4_154",
18
+ "button-gap-l": "_button-gap-l_tf4v4_157",
19
+ "button-gap-m": "_button-gap-m_tf4v4_160",
20
+ "button-gap-s": "_button-gap-s_tf4v4_160",
21
+ flexHorizontalCenter: g
22
+ }, C = ({
23
23
  mode: n = "primary",
24
- size: a = "m",
24
+ size: s = "m",
25
25
  color: t,
26
26
  colorMode: r,
27
- label: _,
28
- error: u,
29
- selected: l,
30
- childrenLeft: b,
31
- childrenRight: s,
27
+ label: u,
28
+ error: l,
29
+ selected: b,
30
+ childrenLeft: i,
31
+ childrenRight: _,
32
32
  ...c
33
33
  }) => {
34
- const { mode: e } = d(), m = () => u ? "error" : n;
35
- x(() => {
34
+ const { mode: e } = x(), m = () => l ? "error" : n;
35
+ y(() => {
36
36
  r && !t && console.warn("`colorMode` is defined but `color` is missing. `colorMode` will be ignored.");
37
37
  }, [t]);
38
- const p = [
38
+ const v = [
39
39
  o.button,
40
40
  o[`button-${m()}`],
41
- o[`button-size-${a}`],
42
- o[`button-gap-${a}`],
43
- l && n === "text" && o["button-text-selected"],
41
+ o[`button-size-${s}`],
42
+ o[`button-gap-${s}`],
43
+ b && n === "text" && o["button-text-selected"],
44
44
  o.flexHorizontalCenter
45
- ].join(" "), y = {
45
+ ].join(" "), f = {
46
46
  "--dynamic-color-text": t ? r === "dark" ? `var(--color-${t}-900)` : "var(--color-light-100)" : e === "light" ? "var(--color-light-100)" : "var(--primary-color-900)",
47
47
  "--dynamic-color": t ? `var(--color-${t}-${r === "dark" ? "200" : "900"})` : "var(--primary-color)",
48
48
  "--dynamic-color-hover": t ? `var(--color-${t}-${r === "dark" ? "100" : "800"})` : e === "light" ? "var(--primary-color-800)" : "var(--primary-color-100)",
49
49
  "--dynamic-color-activated": t ? `var(--color-${t}-${r === "dark" ? "50" : "700"})` : e === "light" ? "var(--primary-color-700)" : "var(--primary-color-50)"
50
50
  };
51
- return /* @__PURE__ */ k(
51
+ return /* @__PURE__ */ p(
52
52
  "button",
53
53
  {
54
54
  type: "button",
55
- className: p,
56
- style: n === "primary" ? y : void 0,
55
+ className: v,
56
+ style: n === "primary" ? f : void 0,
57
57
  ...c,
58
58
  children: [
59
- b && /* @__PURE__ */ i("span", { className: o.flexHorizontalCenter, children: b }),
60
- /* @__PURE__ */ i("span", { children: _ }),
61
- s && /* @__PURE__ */ i("span", { className: o.flexHorizontalCenter, children: s })
59
+ i && /* @__PURE__ */ a("span", { className: o.flexHorizontalCenter, children: i }),
60
+ /* @__PURE__ */ a("span", { children: u }),
61
+ _ && /* @__PURE__ */ a("span", { className: o.flexHorizontalCenter, children: _ })
62
62
  ]
63
63
  }
64
64
  );
65
65
  };
66
66
  export {
67
- $ as Button
67
+ C as Button
68
68
  };
@@ -2,10 +2,15 @@ import { FC, ReactNode } from 'react';
2
2
  import { Size } from '../interface';
3
3
 
4
4
  export interface CheckboxProps {
5
+ /** Indicates whether the checkbox is checked or not */
5
6
  checked?: boolean;
7
+ /** Icon to be displayed inside the checkbox */
6
8
  icon?: ReactNode;
9
+ /** Defines the size of the checkbox (e.g., small, medium, large) */
7
10
  size?: Size;
11
+ /** If true, the checkbox will be disabled and not interactable */
8
12
  disabled?: boolean;
13
+ /** Function to call when the checkbox state changes */
9
14
  onChange?: (checked: boolean) => void;
10
15
  }
11
16
  declare const Checkbox: FC<CheckboxProps>;
@@ -2,15 +2,25 @@ import { FC, ReactElement } from 'react';
2
2
  import { Color } from '../interface';
3
3
 
4
4
  export interface IconButtonProps {
5
- mode?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'icon'; /** Specifies the visual style of the button. */
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?: 's' | 'm' | 'l' | 'xl'; /** How large should the button be? */
9
- round?: boolean; /** If true, the button will have rounded corners. */
10
- error?: boolean; /** If true, the button will be styled to indicate an error state. */
11
- selected?: boolean; /** If true, the button is activated */
12
- disabled?: boolean; /** If true, the button will be disabled and non-interactive. */
13
- children: ReactElement; /** Only icons (React elements) allowed inside the button */
14
- onClick?: () => void; /** Optional click handler */
5
+ /** Specifies the visual style of the button. */
6
+ mode?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'icon';
7
+ /** What background color to use (blue, red, ...)*/
8
+ color?: Color;
9
+ /** what mode do you use for light or dark color **/
10
+ colorMode?: 'light' | 'dark';
11
+ /** How large should the button be? */
12
+ size?: 's' | 'm' | 'l' | 'xl';
13
+ /** If true, the button will have rounded corners. */
14
+ round?: boolean;
15
+ /** If true, the button will be styled to indicate an error state. */
16
+ error?: boolean;
17
+ /** If true, the button is activated */
18
+ selected?: boolean;
19
+ /** If true, the button will be disabled and non-interactive. */
20
+ disabled?: boolean;
21
+ /** Only icons (React elements) allowed inside the button */
22
+ children: ReactElement;
23
+ /** Optional click handler */
24
+ onClick?: () => void;
15
25
  }
16
26
  export declare const IconButton: FC<IconButtonProps>;
@@ -1,22 +1,22 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { useEffect as w } from "react";
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import { useEffect as d } from "react";
3
3
  import { useTheme as p } from "../theme/ThemeContext.js";
4
- import '../../styles/IconButton.css';const v = "_button_1tm5w_21", x = "_flexHorizontalCenter_1tm5w_158", o = {
5
- button: v,
6
- "button-round": "_button-round_1tm5w_49",
7
- "button-primary": "_button-primary_1tm5w_52",
8
- "button-secondary": "_button-secondary_1tm5w_65",
9
- "button-tertiary": "_button-tertiary_1tm5w_79",
10
- "button-ghost": "_button-ghost_1tm5w_93",
11
- "button-text": "_button-text_1tm5w_106",
12
- "button-text-selected": "_button-text-selected_1tm5w_118",
13
- "button-error": "_button-error_1tm5w_124",
14
- "button-size-xl": "_button-size-xl_1tm5w_137",
15
- "button-size-l": "_button-size-l_1tm5w_142",
16
- "button-size-m": "_button-size-m_1tm5w_147",
17
- "button-size-s": "_button-size-s_1tm5w_152",
18
- flexHorizontalCenter: x
19
- }, h = ({
4
+ import '../../styles/IconButton.css';const x = "_button_1v64m_21", z = "_flexHorizontalCenter_1v64m_158", o = {
5
+ button: x,
6
+ "button-round": "_button-round_1v64m_49",
7
+ "button-primary": "_button-primary_1v64m_52",
8
+ "button-secondary": "_button-secondary_1v64m_65",
9
+ "button-tertiary": "_button-tertiary_1v64m_79",
10
+ "button-ghost": "_button-ghost_1v64m_93",
11
+ "button-text": "_button-text_1v64m_106",
12
+ "button-text-selected": "_button-text-selected_1v64m_118",
13
+ "button-error": "_button-error_1v64m_124",
14
+ "button-size-xl": "_button-size-xl_1v64m_137",
15
+ "button-size-l": "_button-size-l_1v64m_142",
16
+ "button-size-m": "_button-size-m_1v64m_147",
17
+ "button-size-s": "_button-size-s_1v64m_152",
18
+ flexHorizontalCenter: z
19
+ }, $ = ({
20
20
  mode: e = "primary",
21
21
  color: t,
22
22
  colorMode: r,
@@ -29,7 +29,7 @@ import '../../styles/IconButton.css';const v = "_button_1tm5w_21", x = "_flexHor
29
29
  onClick: b
30
30
  }) => {
31
31
  const { mode: n } = p(), l = () => a ? "error" : e;
32
- w(() => {
32
+ d(() => {
33
33
  r && !t && console.warn("`colorMode` is defined but `color` is missing. `colorMode` will be ignored.");
34
34
  }, [t]);
35
35
  const c = [
@@ -39,17 +39,17 @@ import '../../styles/IconButton.css';const v = "_button_1tm5w_21", x = "_flexHor
39
39
  o[`button-size-${i}`],
40
40
  u && e === "icon" && o["button-text-selected"],
41
41
  o.flexHorizontalCenter
42
- ].join(" "), y = {
42
+ ].join(" "), v = {
43
43
  "--dynamic-color-text": t ? r === "dark" ? "var(--primary-color-900)" : "var(--color-light-100)" : n === "light" ? "var(--color-light-100)" : "var(--primary-color-900)",
44
44
  "--dynamic-color": t ? `var(--color-${t}-${r === "dark" ? "200" : "900"})` : "var(--primary-color)",
45
45
  "--dynamic-color-hover": t ? `var(--color-${t}-${r === "dark" ? "100" : "800"})` : n === "light" ? "var(--primary-color-800)" : "var(--primary-color-100)",
46
46
  "--dynamic-color-activated": t ? `var(--color-${t}-${r === "dark" ? "50" : "700"})` : n === "light" ? "var(--primary-color-700)" : "var(--primary-color-50)"
47
47
  };
48
- return /* @__PURE__ */ d(
48
+ return /* @__PURE__ */ y(
49
49
  "button",
50
50
  {
51
51
  className: c,
52
- style: y,
52
+ style: v,
53
53
  onClick: b,
54
54
  disabled: m,
55
55
  children: _
@@ -57,5 +57,5 @@ import '../../styles/IconButton.css';const v = "_button_1tm5w_21", x = "_flexHor
57
57
  );
58
58
  };
59
59
  export {
60
- h as IconButton
60
+ $ as IconButton
61
61
  };
@@ -1,19 +1,24 @@
1
1
  import { FC, InputHTMLAttributes, ReactNode } from 'react';
2
+ import { Size } from '../interface';
2
3
 
3
4
  export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
4
- sizeStyle?: 's' | 'm' | 'l' | 'xl'; /** How large should the input be? */
5
- label: string; /** The label or placeholder text for the input field */
6
- labelUnit?: string; /** Optional unit or additional label to display next to the input */
7
- dark?: boolean; /** Toggle for dark mode styling */
8
- color?: string; /** red, green, blue, pink **/
9
- classNames?: string; /** class names for parent div due to general input props (input elem takes every other props in <Input/> component) **/
10
- focusBackground?: boolean; /** Whether to change the background color when the input is focused */
11
- status?: 'default' | 'error' | 'success' | 'ternary'; /** input status style **/
12
- ghost?: boolean; /** Whether to apply a ghost style (transparent background) */
13
- round?: boolean; /** If true, the input will have rounded corners */
14
- iconLeft?: ReactNode; /** Icon or element to display on the left side of the input */
15
- iconRight?: ReactNode; /** Icon or element to display on the right side of the input */
16
- defaultValue?: string; /** Default value for the input field */
17
- disabled?: boolean; /** Disable the input field */
5
+ /** How large should the input be? **/
6
+ sizeStyle?: Size;
7
+ /** input status style **/
8
+ status?: 'default' | 'error' | 'success' | 'secondary';
9
+ /** The label or placeholder text for the input field **/
10
+ label: string;
11
+ /** Optional unit or additional label to display next to the input **/
12
+ labelUnit?: string;
13
+ /** If true, the input will have rounded corners **/
14
+ round?: boolean;
15
+ /** Icon or element to display on the left side of the input **/
16
+ childrenLeft?: ReactNode;
17
+ /** Icon or element to display on the right side of the input **/
18
+ childrenRight?: ReactNode;
19
+ /** Default value for the input field **/
20
+ defaultValue?: string;
21
+ /** Disable the input field **/
22
+ disabled?: boolean;
18
23
  }
19
24
  export declare const Input: FC<InputProps>;
@@ -1,111 +1,89 @@
1
- import { jsxs as _, jsx as s, Fragment as R } from "react/jsx-runtime";
2
- import { useState as y, useRef as q } from "react";
3
- import '../../styles/Input.css';const A = "_flexHorizontalBetween_1edvz_165", E = "_flexHorizontal_1edvz_165", e = {
4
- "input-style": "_input-style_1edvz_33",
5
- "input-style-ghost": "_input-style-ghost_1edvz_44",
6
- "input-style-disabled": "_input-style-disabled_1edvz_49",
7
- "input-style-focused": "_input-style-focused_1edvz_58",
8
- "input-style-error": "_input-style-error_1edvz_63",
9
- "input-style-error-focused": "_input-style-error-focused_1edvz_70",
10
- "input-style-error-focus-background": "_input-style-error-focus-background_1edvz_76",
11
- "input-style-error-disabled": "_input-style-error-disabled_1edvz_79",
12
- "input-style-success": "_input-style-success_1edvz_87",
13
- "input-style-success-focused": "_input-style-success-focused_1edvz_94",
14
- "input-style-success-focus-background": "_input-style-success-focus-background_1edvz_100",
15
- "input-style-success-disabled": "_input-style-success-disabled_1edvz_103",
16
- "input-container": "_input-container_1edvz_111",
17
- "floating-input": "_floating-input_1edvz_115",
18
- "floating-input-size-xl": "_floating-input-size-xl_1edvz_121",
19
- "floating-input-size-l": "_floating-input-size-l_1edvz_125",
20
- "floating-input-size-m": "_floating-input-size-m_1edvz_129",
21
- "floating-input-size-s": "_floating-input-size-s_1edvz_133",
22
- "input-style-size-xl": "_input-style-size-xl_1edvz_137",
23
- "input-style-size-l": "_input-style-size-l_1edvz_143",
24
- "input-style-size-m": "_input-style-size-m_1edvz_149",
25
- "input-style-size-s": "_input-style-size-s_1edvz_155",
26
- "input-style-radius": "_input-style-radius_1edvz_161",
27
- flexHorizontalBetween: A,
28
- flexHorizontal: E
29
- }, K = ({
30
- sizeStyle: u = "m",
31
- label: z,
32
- labelUnit: o,
33
- color: n,
34
- dark: r,
35
- focusBackground: l,
36
- status: a = "default",
37
- ghost: f = !1,
38
- iconLeft: c,
39
- iconRight: p,
40
- round: v,
41
- classNames: g,
42
- disabled: i,
43
- defaultValue: m,
44
- ...b
1
+ import { jsxs as u, jsx as l, Fragment as c } from "react/jsx-runtime";
2
+ import { useState as y, useRef as j } from "react";
3
+ import { useTheme as N } from "../theme/ThemeContext.js";
4
+ import '../../styles/Input.css';const k = "_flexHorizontalBetween_17x9g_150", I = "_flexHorizontal_17x9g_150", e = {
5
+ "input-style": "_input-style_17x9g_37",
6
+ "input-style-disabled": "_input-style-disabled_17x9g_49",
7
+ "input-style-focused": "_input-style-focused_17x9g_60",
8
+ "input-style-secondary": "_input-style-secondary_17x9g_68",
9
+ "input-style-error": "_input-style-error_17x9g_82",
10
+ "input-style-success": "_input-style-success_17x9g_92",
11
+ "input-container": "_input-container_17x9g_102",
12
+ "input-style-size-xl": "_input-style-size-xl_17x9g_106",
13
+ "input-style-size-l": "_input-style-size-l_17x9g_116",
14
+ "input-style-size-m": "_input-style-size-m_17x9g_126",
15
+ "input-style-size-s": "_input-style-size-s_17x9g_136",
16
+ "input-style-radius": "_input-style-radius_17x9g_146",
17
+ flexHorizontalBetween: k,
18
+ flexHorizontal: I
19
+ }, M = ({
20
+ sizeStyle: d = "m",
21
+ label: p,
22
+ labelUnit: s,
23
+ status: n = "default",
24
+ childrenLeft: o,
25
+ childrenRight: i,
26
+ round: _,
27
+ disabled: r,
28
+ defaultValue: g,
29
+ ...x
45
30
  }) => {
46
- const [t, d] = y(!1), [h, x] = y(m || ""), $ = q(null), H = () => d(!0), S = () => d(!1), j = (D) => {
47
- x(D.target.value);
48
- }, B = [
31
+ const { mode: t } = N(), [f, a] = y(!1), [m, h] = y(g || ""), z = j(null), v = () => a(!0), B = () => a(!1), H = (F) => {
32
+ h(F.target.value);
33
+ }, b = [
49
34
  e["input-style"],
50
- e[`input-style-size-${u}`],
51
- e[`input-style-gap-${a}`],
52
- v && e["input-style-radius"],
53
- e.flexHorizontalBetween,
54
- "gap4",
55
- f && e["input-style-ghost"]
56
- ].filter(Boolean).join(" "), N = [
57
- t && e["input-style-focused"],
58
- i && e["input-style-disabled"]
59
- ].filter(Boolean).join(" "), C = [
60
- e["input-style-error"],
61
- i && e["input-style-error-disabled"],
62
- t && e["input-style-error-focused"],
63
- t && l && e["input-style-error-focus-background"]
64
- ].filter(Boolean).join(" "), w = [
65
- e["input-style-success"],
66
- i && e["input-style-success-disabled"],
67
- t && e["input-style-success-focused"],
68
- t && l && e["input-style-success-focus-background"]
69
- ].filter(Boolean).join(" "), F = () => {
70
- switch (a) {
35
+ e[`input-style-size-${d}`],
36
+ _ && e["input-style-radius"],
37
+ e.flexHorizontalBetween
38
+ ].filter(Boolean).join(" "), S = [
39
+ f && e["input-style-focused"],
40
+ r && e["input-style-disabled"],
41
+ n === "secondary" && e["input-style-secondary"]
42
+ ].filter(Boolean).join(" "), w = () => {
43
+ switch (n) {
71
44
  case "error":
72
- return C;
45
+ return e["input-style-error"];
73
46
  case "success":
74
- return w;
47
+ return e["input-style-success"];
75
48
  default:
76
- return N;
49
+ return S;
77
50
  }
78
- }, k = [
79
- e["floating-input"],
80
- e[`floating-input-size-${u}`]
81
- ].join(" "), I = {
82
- "--dynamic-color": `var(--color-${n}-${r ? "800" : "300"})`,
83
- "--dynamic-color-border": `var(--color-${n}-${r ? "800" : "300"})`,
84
- "--dynamic-background-color": `${l ? `var(--color-${n}-50)` : "transparent"}`
85
- }, V = {
86
- "--dynamic-color": "var(--color-blue-situaction-800)",
87
- "--dynamic-color-border": "var(--color-blue-situaction-800)",
88
- "--dynamic-background-color": `${l ? "var(--color-blue-situaction-50)" : "transparent"}`
51
+ }, C = {
52
+ "--dynamic-color": t === "light" ? "var(--color-blue-grey-400)" : "var(--color-blue-grey-200)",
53
+ "--dynamic-color-activated": t === "light" ? "var(--color-dark-100)" : "var(--color-light-100)",
54
+ "--dynamic-color-disabled": t === "light" ? "var(--color-dark-40)" : "var(--color-light-40)",
55
+ "--dynamic-color-border-disabled": t === "light" ? "var(--color-dark-10)" : "var(--color-light-10)",
56
+ "--dynamic-color-secondary": t === "light" ? "var(--color-blue-situaction-900)" : "var(--color-light-100)"
89
57
  };
90
- return /* @__PURE__ */ _("div", { ref: $, className: `input-style ${B} ${g} ${F()} gap-xs-2`, onFocus: H, onBlur: S, style: n ? I : V, children: [
91
- c && /* @__PURE__ */ s("span", { className: "", children: c }),
92
- /* @__PURE__ */ s("div", { className: e["input-container"], children: /* @__PURE__ */ s(
93
- "input",
94
- {
95
- autoCorrect: "false",
96
- className: k,
97
- placeholder: z,
98
- value: h,
99
- onChange: j,
100
- ...b
101
- }
102
- ) }),
103
- /* @__PURE__ */ _(R, { children: [
104
- o && /* @__PURE__ */ s("div", { children: o }),
105
- p && /* @__PURE__ */ s("span", { className: e.flexHorizontal, children: p })
106
- ] })
107
- ] });
58
+ return /* @__PURE__ */ u(
59
+ "div",
60
+ {
61
+ ref: z,
62
+ className: `input-style ${b} ${w()}`,
63
+ onFocus: v,
64
+ onBlur: B,
65
+ style: C,
66
+ children: [
67
+ o && /* @__PURE__ */ l(c, { children: o }),
68
+ /* @__PURE__ */ l("div", { className: e["input-container"], children: /* @__PURE__ */ l(
69
+ "input",
70
+ {
71
+ autoCorrect: "false",
72
+ placeholder: p,
73
+ disabled: r,
74
+ value: m,
75
+ onChange: H,
76
+ ...x
77
+ }
78
+ ) }),
79
+ /* @__PURE__ */ u(c, { children: [
80
+ s && /* @__PURE__ */ l("div", { children: s }),
81
+ i && /* @__PURE__ */ l("span", { className: e.flexHorizontal, children: i })
82
+ ] })
83
+ ]
84
+ }
85
+ );
108
86
  };
109
87
  export {
110
- K as Input
88
+ M as Input
111
89
  };
@@ -1,2 +1,3 @@
1
1
  export type Color = 'light' | 'dark' | 'grey' | 'blue-grey' | 'blue' | 'blue-situaction' | 'purple' | 'pink' | 'gold' | 'brown' | 'emerald';
2
2
  export type Size = 's' | 'm' | 'l' | 'xl';
3
+ export type SizeTooltip = 'xs-5' | 'xs-3' | 'xs' | 'm-1';
@@ -1,8 +1,11 @@
1
1
  import { FC } from 'react';
2
2
 
3
3
  export interface TabsProps {
4
- listItems: string[]; /** Array of strings representing the labels of the tabs */
5
- defaultActiveTab?: number; /** Index of the tab that should be active by default */
6
- onTabSelect: (selectedItem: string) => void; /** Callback function to handle tab selection, receiving the selected tab's label */
4
+ /** Array of strings representing the labels of the tabs */
5
+ listItems: string[];
6
+ /** Index of the tab that should be active by default */
7
+ defaultActiveTab?: number;
8
+ /** Callback function to handle tab selection, receiving the selected tab's label */
9
+ onTabSelect: (selectedItem: string) => void;
7
10
  }
8
11
  export declare const Tabs: FC<TabsProps>;
@@ -1,12 +1,18 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { Color } from '../interface';
2
+ import { Color, Size } from '../interface';
3
3
 
4
4
  export interface TagProps {
5
- label?: string; /** The text label for the tag. This will be displayed if provided. */
6
- color?: Color; /** The color of the tag, must be one of the defined valid colors. */
7
- deletable?: boolean; /** Indicates if the tag can be deleted; when true, a delete icon is shown. */
8
- size?: 's' | 'm' | 'l' | 'xl'; /** The size of the tag, which affects its styling. */
9
- children?: ReactNode; /** Additional content to be displayed inside the tag, like icons or other elements. */
10
- onClick?: () => void; /** A callback function to be called when the tag is clicked. */
5
+ /** The text label for the tag. This will be displayed if provided. */
6
+ label?: string;
7
+ /** The color of the tag, must be one of the defined valid colors. */
8
+ color?: Color;
9
+ /** Indicates if the tag can be deleted; when true, a delete icon is shown. */
10
+ deletable?: boolean;
11
+ /** The size of the tag, which affects its styling. */
12
+ size?: Size;
13
+ /** Additional content to be displayed inside the tag, like icons or other elements. */
14
+ children?: ReactNode;
15
+ /** A callback function to be called when the tag is clicked. */
16
+ onClick?: () => void;
11
17
  }
12
18
  export declare const Tag: FC<TagProps>;
@@ -1,32 +1,27 @@
1
- import { jsx as v } from "react/jsx-runtime";
2
- import { createContext as F, useState as g, useEffect as P, useContext as S } from "react";
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { createContext as k, useState as h, useContext as w } from "react";
3
3
  import { baseTheme as r } from "./createTheme.js";
4
- import '../../styles/ThemeContext.css';const f = F(void 0), M = ({ children: y, theme: e, mode: h }) => {
5
- const [o] = g(e ?? r), [t, $] = g(h ?? "light"), x = () => {
6
- $((a) => a === "light" ? "dark" : "light");
7
- }, b = (a) => [950, 900, 800, 700, 600, 500, 400, 300, 200, 100, 50].reduce((l, i) => (l[`--primary-color-${i}`] = `var(--color-${a}-${i})`, l), {});
8
- return P(() => {
9
- var c, l, i, s, p, d, m, n;
10
- const a = {
11
- "--font-family": ((c = o == null ? void 0 : o.typography) == null ? void 0 : c.fontFamily) ?? r.typography.fontFamily,
12
- "--font-family-secondary": ((l = o == null ? void 0 : o.typography) == null ? void 0 : l.fontFamilySecondary) ?? r.typography.fontFamilySecondary,
13
- ...b(((i = o == null ? void 0 : o.color) == null ? void 0 : i.primary) ?? r.color.primary),
14
- "--primary-dark-color-disabled": e === void 0 ? "var(--color-blue-grey-800)" : "var(--color-dark-10)",
15
- "--primary-color": t === "light" ? `var(--color-${((s = o == null ? void 0 : o.color) == null ? void 0 : s.primary) ?? r.color.primary}-900)` : `var(--color-${((p = o == null ? void 0 : o.color) == null ? void 0 : p.primary) ?? r.color.primary}-200)`,
16
- "--secondary-color": t === "light" ? `var(--color-${((d = o == null ? void 0 : o.color) == null ? void 0 : d.primary) ?? r.color.primary}-200)` : `var(--color-${((m = o == null ? void 0 : o.color) == null ? void 0 : m.primary) ?? r.color.primary}-900)`,
17
- "--color-text": t === "light" ? `var(--color-${((n = o == null ? void 0 : o.color) == null ? void 0 : n.primary) ?? r.color.primary}-900)` : "var(--color-light-100)"
18
- };
19
- Object.entries(a).forEach(([C, E]) => {
20
- document.documentElement.style.setProperty(C, E);
21
- });
22
- }, [o, t]), /* @__PURE__ */ v(f.Provider, { value: { theme: o, mode: t, toggleMode: x }, children: /* @__PURE__ */ v("div", { style: { height: "100%" }, children: y }) });
23
- }, j = () => {
24
- const y = S(f);
25
- if (y === void 0)
4
+ import '../../styles/ThemeContext.css';const $ = k(void 0), V = ({ children: a, theme: t, mode: x }) => {
5
+ var y, c, p, s, d, m, e, n;
6
+ const [o] = h(t ?? r), [l, b] = h(x ?? "light"), C = () => {
7
+ b((i) => i === "light" ? "dark" : "light");
8
+ }, F = (i) => [950, 900, 800, 700, 600, 500, 400, 300, 200, 100, 50].reduce((v, g) => (v[`--primary-color-${g}`] = `var(--color-${i}-${g})`, v), {}), S = {
9
+ "--font-family": ((y = o == null ? void 0 : o.typography) == null ? void 0 : y.fontFamily) ?? r.typography.fontFamily,
10
+ "--font-family-secondary": ((c = o == null ? void 0 : o.typography) == null ? void 0 : c.fontFamilySecondary) ?? r.typography.fontFamilySecondary,
11
+ ...F(((p = o == null ? void 0 : o.color) == null ? void 0 : p.primary) ?? r.color.primary),
12
+ "--primary-dark-color-disabled": t === void 0 ? "var(--color-blue-grey-800)" : "var(--color-dark-10)",
13
+ "--primary-color": l === "light" ? `var(--color-${((s = o == null ? void 0 : o.color) == null ? void 0 : s.primary) ?? r.color.primary}-900)` : `var(--color-${((d = o == null ? void 0 : o.color) == null ? void 0 : d.primary) ?? r.color.primary}-200)`,
14
+ "--secondary-color": l === "light" ? `var(--color-${((m = o == null ? void 0 : o.color) == null ? void 0 : m.primary) ?? r.color.primary}-200)` : `var(--color-${((e = o == null ? void 0 : o.color) == null ? void 0 : e.primary) ?? r.color.primary}-900)`,
15
+ "--color-text": l === "light" ? `var(--color-${((n = o == null ? void 0 : o.color) == null ? void 0 : n.primary) ?? r.color.primary}-900)` : "var(--color-light-100)"
16
+ };
17
+ return /* @__PURE__ */ f($.Provider, { value: { theme: o, mode: l, toggleMode: C }, children: /* @__PURE__ */ f("div", { style: { ...S, height: "100%" }, children: a }) });
18
+ }, q = () => {
19
+ const a = w($);
20
+ if (a === void 0)
26
21
  throw new Error("useTheme must be used within a ThemeProvider");
27
- return y;
22
+ return a;
28
23
  };
29
24
  export {
30
- M as ThemeProvider,
31
- j as useTheme
25
+ V as ThemeProvider,
26
+ q as useTheme
32
27
  };
@@ -1,7 +1,9 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
 
3
3
  export interface TitleProps {
4
- title: string; /** The main title text to be displayed in the heading. */
5
- children?: ReactNode; /** Optional additional content to be displayed alongside the title, such as icons or other elements. */
4
+ /** The main title text to be displayed in the heading. */
5
+ title: string;
6
+ /** Optional additional content to be displayed alongside the title, such as icons or other elements. */
7
+ children?: ReactNode;
6
8
  }
7
9
  export declare const Title: FC<TitleProps>;
@@ -0,0 +1,19 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { SizeTooltip } from '../interface';
3
+
4
+ export type TooltipProps = {
5
+ /** Elements concerned by hover events in order to show the tooltip. */
6
+ children: ReactNode;
7
+ /** Content to put in tooltip (mandatory). */
8
+ content: ReactNode;
9
+ /** Where to show tooltip in relation to the element. */
10
+ position?: 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'right';
11
+ /** How big is the gap between element and tooltip. */
12
+ gap?: SizeTooltip;
13
+ /** How large padding is. */
14
+ padding?: SizeTooltip;
15
+ /** Option to force color mode, dark or light. */
16
+ colorMode?: 'light' | 'dark';
17
+ };
18
+ export declare const Tooltip: FC<TooltipProps>;
19
+ export default Tooltip;
@@ -0,0 +1,46 @@
1
+ import { jsxs as d, jsx as h } from "react/jsx-runtime";
2
+ import { useState as _ } from "react";
3
+ import { useTheme as u } from "../theme/ThemeContext.js";
4
+ import '../../styles/Tooltip.css';const x = "_tooltip_1w7yx_21", o = {
5
+ "tooltip-container": "_tooltip-container_1w7yx_21",
6
+ tooltip: x,
7
+ "tooltip-dark": "_tooltip-dark_1w7yx_42",
8
+ "tooltip-light": "_tooltip-light_1w7yx_47"
9
+ }, k = ({ children: s, content: a, colorMode: e, position: n = "top", gap: r = "xs-5", padding: p = "xs-5" }) => {
10
+ const [c, l] = _(!1), { mode: m } = u(), f = [
11
+ o.tooltip,
12
+ o[e ? `tooltip-${e}` : m === "light" ? "tooltip-light" : "tooltip-dark"]
13
+ ].filter(Boolean).join(" "), g = {
14
+ "--dynamic-gap": `var(--spacing-${r})`,
15
+ "--dynamic-padding": `var(--spacing-${p})`
16
+ }, y = () => {
17
+ const t = "calc(100% + var(--dynamic-gap))", i = {
18
+ top: { bottom: t, left: "50%", transform: "translateX(-50%)" },
19
+ topLeft: { bottom: t, right: "100%" },
20
+ topRight: { bottom: t, left: "100%" },
21
+ bottom: { top: t, left: "50%", transform: "translateX(-50%)" },
22
+ bottomLeft: { top: t, right: "100%" },
23
+ bottomRight: { top: t, left: "100%" },
24
+ left: { top: "50%", right: t, transform: "translateY(-50%)" },
25
+ right: { top: "50%", left: t, transform: "translateY(-50%)" }
26
+ };
27
+ return { ...i[n] || i.top };
28
+ };
29
+ return /* @__PURE__ */ d(
30
+ "div",
31
+ {
32
+ className: o["tooltip-container"],
33
+ style: g,
34
+ onMouseEnter: () => l(!0),
35
+ onMouseLeave: () => l(!1),
36
+ children: [
37
+ s,
38
+ c && /* @__PURE__ */ h("div", { className: f, style: y(), children: a })
39
+ ]
40
+ }
41
+ );
42
+ };
43
+ export {
44
+ k as Tooltip,
45
+ k as default
46
+ };
@@ -1 +1 @@
1
- @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;line-height:1;width:100vw;height:100vh}._button_1b5ik_21{font-family:var(--font-family);font-weight:500;border:0;border-radius:8px;cursor:pointer;width:fit-content}._button_1b5ik_21:focus{outline:none}._button_1b5ik_21:disabled{background-color:#0f0f0f0d;color:#0f0f0f66;border:1px solid rgba(15,15,15,.1);cursor:initial;pointer-events:none}._button_1b5ik_21:disabled *{fill:#0f0f0f66}._button-primary_1b5ik_43{color:var(--dynamic-color-text);background-color:var(--dynamic-color)}._button-primary_1b5ik_43:hover{background-color:var(--dynamic-color-hover)}._button-primary_1b5ik_43:active{background-color:var(--dynamic-color-activated);outline:none}._button-primary_1b5ik_43 *{fill:var(--dynamic-color-text)}._button-secondary_1b5ik_57{color:var(--color-text);background-color:#96b4ee33;border:1px solid rgba(150,180,238,.5)}._button-secondary_1b5ik_57:hover{background-color:#96b4ee66}._button-secondary_1b5ik_57:active{background-color:#96b4ee99}._button-secondary_1b5ik_57 *{fill:var(--color-text)}._button-tertiary_1b5ik_71{color:var(--color-text);background-color:transparent;border:1px solid rgba(150,180,238,.5)}._button-tertiary_1b5ik_71:hover{background-color:#96b4ee1a}._button-tertiary_1b5ik_71:active{background-color:#96b4ee33}._button-tertiary_1b5ik_71 *{fill:var(--color-text)}._button-ghost_1b5ik_85{color:var(--color-text);background-color:transparent}._button-ghost_1b5ik_85:hover{background-color:#96b4ee1a}._button-ghost_1b5ik_85:active{background-color:#96b4ee33}._button-ghost_1b5ik_85:disabled{border:none}._button-ghost_1b5ik_85 *{fill:var(--color-text)}._button-text_1b5ik_101{color:#96b4eecc;background-color:transparent;padding:0!important}._button-text_1b5ik_101:hover{color:#96b4ee}._button-text_1b5ik_101:disabled{border:none;background-color:transparent;color:#a5b4bb}._button-text-selected_1b5ik_114,._button-text-selected_1b5ik_114:hover{color:var(--color-text)}._button-error_1b5ik_120{color:#fff;background-color:#ff4747}._button-error_1b5ik_120:hover{background-color:#ed1515}._button-error_1b5ik_120:active{background-color:#c80d0d}._button-error_1b5ik_120 *{fill:var(--color-text)}._button-size-xl_1b5ik_133{padding:1rem 2rem;font-size:1.125em;line-height:28px}._button-size-l_1b5ik_138{padding:.75rem 1.5rem;font-size:1em;line-height:24px}._button-size-m_1b5ik_143{padding:.5rem 1rem;font-size:.875em;line-height:22px}._button-size-s_1b5ik_148{padding:.375rem .75rem;font-size:.75em;line-height:16px}._button-gap-xl_1b5ik_153{gap:12px}._button-gap-l_1b5ik_156{gap:8px}._button-gap-m_1b5ik_159,._button-gap-s_1b5ik_159{gap:4px}._flexHorizontalCenter_1b5ik_163{display:flex;justify-content:center;align-items:center;flex-direction:row}
1
+ @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;line-height:1;width:100vw;height:100vh}._button_tf4v4_21{font-family:var(--font-family);font-weight:500;border:0;border-radius:8px;cursor:pointer;width:fit-content}._button_tf4v4_21:focus-visible{outline:2px solid var(--dynamic-color);outline-offset:2px}._button_tf4v4_21:disabled{background-color:#0f0f0f0d;color:#0f0f0f66;border:1px solid rgba(15,15,15,.1);cursor:initial;pointer-events:none}._button_tf4v4_21:disabled *{fill:#0f0f0f66}._button-primary_tf4v4_44{color:var(--dynamic-color-text);background-color:var(--dynamic-color)}._button-primary_tf4v4_44:hover{background-color:var(--dynamic-color-hover)}._button-primary_tf4v4_44:active{background-color:var(--dynamic-color-activated);outline:none}._button-primary_tf4v4_44 *{fill:var(--dynamic-color-text)}._button-secondary_tf4v4_58{color:var(--color-text);background-color:#96b4ee33;border:1px solid rgba(150,180,238,.5)}._button-secondary_tf4v4_58:hover{background-color:#96b4ee66}._button-secondary_tf4v4_58:active{background-color:#96b4ee99}._button-secondary_tf4v4_58 *{fill:var(--color-text)}._button-tertiary_tf4v4_72{color:var(--color-text);background-color:transparent;border:1px solid rgba(150,180,238,.5)}._button-tertiary_tf4v4_72:hover{background-color:#96b4ee1a}._button-tertiary_tf4v4_72:active{background-color:#96b4ee33}._button-tertiary_tf4v4_72 *{fill:var(--color-text)}._button-ghost_tf4v4_86{color:var(--color-text);background-color:transparent}._button-ghost_tf4v4_86:hover{background-color:#96b4ee1a}._button-ghost_tf4v4_86:active{background-color:#96b4ee33}._button-ghost_tf4v4_86:disabled{border:none}._button-ghost_tf4v4_86 *{fill:var(--color-text)}._button-text_tf4v4_102{color:#96b4eecc;background-color:transparent;padding:0!important}._button-text_tf4v4_102:hover{color:#96b4ee}._button-text_tf4v4_102:disabled{border:none;background-color:transparent;color:#a5b4bb}._button-text-selected_tf4v4_115,._button-text-selected_tf4v4_115:hover{color:var(--color-text)}._button-error_tf4v4_121{color:#fff;background-color:#ff4747}._button-error_tf4v4_121:hover{background-color:#ed1515}._button-error_tf4v4_121:active{background-color:#c80d0d}._button-error_tf4v4_121 *{fill:var(--color-text)}._button-size-xl_tf4v4_134{padding:1rem 2rem;font-size:1.125em;line-height:28px}._button-size-l_tf4v4_139{padding:.75rem 1.5rem;font-size:1em;line-height:24px}._button-size-m_tf4v4_144{padding:.5rem 1rem;font-size:.875em;line-height:22px}._button-size-s_tf4v4_149{padding:.375rem .75rem;font-size:.75em;line-height:16px}._button-gap-xl_tf4v4_154{gap:12px}._button-gap-l_tf4v4_157{gap:8px}._button-gap-m_tf4v4_160,._button-gap-s_tf4v4_160{gap:4px}._flexHorizontalCenter_tf4v4_164{display:flex;justify-content:center;align-items:center;flex-direction:row}
@@ -1 +1 @@
1
- ._button_1tm5w_21{font-family:var(--font-family);font-weight:500;border:0;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_1tm5w_21:focus{outline:none}._button_1tm5w_21:disabled{background-color:#0f0f0f0d;color:#0f0f0f66;border:1px solid rgba(15,15,15,.1);cursor:initial;pointer-events:none}._button_1tm5w_21:disabled *{fill:#0f0f0f66}._button-round_1tm5w_49._button_1tm5w_21{border-radius:50%}._button-primary_1tm5w_52{color:var(--dynamic-color-text);background-color:var(--dynamic-color)}._button-primary_1tm5w_52:hover{background-color:var(--dynamic-color-hover)}._button-primary_1tm5w_52:active{background-color:var(--dynamic-color-activated)}._button-primary_1tm5w_52 *{fill:var(--dynamic-color-text)}._button-secondary_1tm5w_65{color:var(--color-text);background-color:#96b4ee33;border:1px solid rgba(150,180,238,.5)}._button-secondary_1tm5w_65:hover{background-color:#96b4ee66}._button-secondary_1tm5w_65:active{background-color:#96b4ee99}._button-secondary_1tm5w_65 *{fill:var(--color-text)}._button-tertiary_1tm5w_79{color:var(--color-text);background-color:transparent;border:1px solid rgba(150,180,238,.5)}._button-tertiary_1tm5w_79:hover{background-color:#96b4ee1a}._button-tertiary_1tm5w_79:active{background-color:#96b4ee33}._button-tertiary_1tm5w_79 *{fill:var(--color-text)}._button-ghost_1tm5w_93{color:var(--color-text);background-color:transparent}._button-ghost_1tm5w_93:hover{background-color:#96b4ee1a}._button-ghost_1tm5w_93:active{background-color:#96b4ee33}._button-ghost_1tm5w_93 *{fill:var(--dynamic-color-text)}._button-text_1tm5w_106{color:#96b4eecc;background-color:transparent}._button-text_1tm5w_106:hover{color:#96b4ee}._button-text_1tm5w_106:disabled{border:none;background-color:transparent;color:#a5b4bb}._button-text-selected_1tm5w_118,._button-text-selected_1tm5w_118:hover{color:var(--color-text)}._button-error_1tm5w_124{color:#fff;background-color:#ff4747}._button-error_1tm5w_124:hover{background-color:#ed1515}._button-error_1tm5w_124:active{background-color:#c80d0d}._button-error_1tm5w_124 *{fill:var(--color-text)}._button-size-xl_1tm5w_137{border-radius:.5rem;padding:1rem;font-size:1.125em}._button-size-l_1tm5w_142{border-radius:.5rem;padding:.75rem;font-size:1em}._button-size-m_1tm5w_147{border-radius:.25rem;padding:.5rem;font-size:.875em}._button-size-s_1tm5w_152{border-radius:.25rem;padding:.375rem;font-size:.75em}._flexHorizontalCenter_1tm5w_158{display:flex;justify-content:center;align-items:center;flex-direction:row}
1
+ ._button_1v64m_21{font-family:var(--font-family);font-weight:500;border:0;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_1v64m_21:focus-visible{outline:none}._button_1v64m_21:disabled{background-color:#0f0f0f0d;color:#0f0f0f66;border:1px solid rgba(15,15,15,.1);cursor:initial;pointer-events:none}._button_1v64m_21:disabled *{fill:#0f0f0f66}._button-round_1v64m_49._button_1v64m_21{border-radius:50%}._button-primary_1v64m_52{color:var(--dynamic-color-text);background-color:var(--dynamic-color)}._button-primary_1v64m_52:hover{background-color:var(--dynamic-color-hover)}._button-primary_1v64m_52:active{background-color:var(--dynamic-color-activated)}._button-primary_1v64m_52 *{fill:var(--dynamic-color-text)}._button-secondary_1v64m_65{color:var(--color-text);background-color:#96b4ee33;border:1px solid rgba(150,180,238,.5)}._button-secondary_1v64m_65:hover{background-color:#96b4ee66}._button-secondary_1v64m_65:active{background-color:#96b4ee99}._button-secondary_1v64m_65 *{fill:var(--color-text)}._button-tertiary_1v64m_79{color:var(--color-text);background-color:transparent;border:1px solid rgba(150,180,238,.5)}._button-tertiary_1v64m_79:hover{background-color:#96b4ee1a}._button-tertiary_1v64m_79:active{background-color:#96b4ee33}._button-tertiary_1v64m_79 *{fill:var(--color-text)}._button-ghost_1v64m_93{color:var(--color-text);background-color:transparent}._button-ghost_1v64m_93:hover{background-color:#96b4ee1a}._button-ghost_1v64m_93:active{background-color:#96b4ee33}._button-ghost_1v64m_93 *{fill:var(--color-text)}._button-text_1v64m_106{color:#96b4eecc;background-color:transparent}._button-text_1v64m_106:hover{color:#96b4ee}._button-text_1v64m_106:disabled{border:none;background-color:transparent;color:#a5b4bb}._button-text-selected_1v64m_118,._button-text-selected_1v64m_118:hover{color:var(--color-text)}._button-error_1v64m_124{color:#fff;background-color:#ff4747}._button-error_1v64m_124:hover{background-color:#ed1515}._button-error_1v64m_124:active{background-color:#c80d0d}._button-error_1v64m_124 *{fill:var(--color-text)}._button-size-xl_1v64m_137{border-radius:.5rem;padding:1rem;font-size:1.125em}._button-size-l_1v64m_142{border-radius:.5rem;padding:.75rem;font-size:1em}._button-size-m_1v64m_147{border-radius:.25rem;padding:.5rem;font-size:.875em}._button-size-s_1v64m_152{border-radius:.25rem;padding:.375rem;font-size:.75em}._flexHorizontalCenter_1v64m_158{display:flex;justify-content:center;align-items:center;flex-direction:row}
@@ -1 +1 @@
1
- input{font-family:Urbanist,sans-serif;border:none;background-color:transparent}input:focus{outline:none;box-shadow:none;border-color:transparent}._input-style_1edvz_33{font-family:Urbanist,sans-serif;border:1px solid var(--dynamic-color-border);box-shadow:0 4px 5px #0000000a;color:var(--dynamic-color);position:relative}._input-style_1edvz_33 input{color:var(--dynamic-color)}._input-style-ghost_1edvz_44{border-bottom:solid #A5B4BB;border-width:0 0 1px 0;border-radius:0!important}._input-style-disabled_1edvz_49{background-color:#fff;border-color:#a5b4bb;pointer-events:none;color:#a5b4bb}._input-style-disabled_1edvz_49 input{color:#a5b4bb}._input-style-focused_1edvz_58{color:var(--dynamic-color);border-color:var(--dynamic-color-border);background-color:var(--dynamic-background-color)}._input-style-error_1edvz_63{border-color:#ff4747;color:#ff4747}._input-style-error_1edvz_63 input,._input-style-error-focused_1edvz_70,._input-style-error-focused_1edvz_70 input{color:#ff4747}._input-style-error-focus-background_1edvz_76{background-color:#fff1f1}._input-style-error-disabled_1edvz_79{background-color:#fff1f1;border-color:#ff9d9d;color:#ff9d9d}._input-style-error-disabled_1edvz_79 input{color:#ff9d9d}._input-style-success_1edvz_87{border-color:#33b449;color:#33b449}._input-style-success_1edvz_87 input,._input-style-success-focused_1edvz_94,._input-style-success-focused_1edvz_94 input{color:#33b449}._input-style-success-focus-background_1edvz_100{background-color:#f1fcf3}._input-style-success-disabled_1edvz_103{background-color:#f1fcf3;border-color:#91e49e;color:#91e49e}._input-style-success-disabled_1edvz_103 input{color:#91e49e}._input-style_1edvz_33 ._input-container_1edvz_111{position:relative;width:100%}._input-style_1edvz_33 ._floating-input_1edvz_115{display:block;width:100%;box-sizing:border-box}._input-style_1edvz_33 ._floating-input-size-xl_1edvz_121{font-size:1.125em;line-height:28px}._input-style_1edvz_33 ._floating-input-size-l_1edvz_125{font-size:1em;line-height:24px}._input-style_1edvz_33 ._floating-input-size-m_1edvz_129{font-size:.875em;line-height:22px}._input-style_1edvz_33 ._floating-input-size-s_1edvz_133{font-size:.875em;line-height:20px}._input-style-size-xl_1edvz_137{padding:1rem;font-size:1.125em;line-height:28px;border-radius:8px}._input-style-size-l_1edvz_143{padding:.75rem;font-size:1em;line-height:24px;border-radius:8px}._input-style-size-m_1edvz_149{padding:.5rem;font-size:.875em;line-height:22px;border-radius:8px}._input-style-size-s_1edvz_155{padding:.375rem;font-size:.875em;line-height:20px;border-radius:4px}._input-style-radius_1edvz_161{border-radius:50px}._flexHorizontalBetween_1edvz_165{display:flex;justify-content:space-between;align-items:center;flex-direction:row}._flexHorizontal_1edvz_165{display:flex;justify-content:flex-start;align-items:center;flex-direction:row}
1
+ input{font-family:Urbanist,sans-serif;border:none;background-color:transparent}input:focus{outline:none;box-shadow:none;border-color:transparent}input::placeholder{font-family:Urbanist,sans-serif;color:var(--dynamic-color)}._input-style_17x9g_37{font-family:Urbanist,sans-serif;border:1px solid rgba(150,180,238,.5);color:var(--dynamic-color)}._input-style_17x9g_37 input{color:var(--dynamic-color-activated)}._input-style_17x9g_37 *{fill:var(--dynamic-color)}._input-style-disabled_17x9g_49{background-color:#0f0f0f0d;border-color:var(--dynamic-color-border-disabled);pointer-events:none}._input-style-disabled_17x9g_49 input{color:var(--dynamic-color-disabled)}._input-style-disabled_17x9g_49 *{fill:var(--dynamic-color-disabled)}._input-style-focused_17x9g_60{color:var(--dynamic-color);border-color:var(--dynamic-color-border);background-color:var(--dynamic-background-color)}._input-style-focused_17x9g_60 *{fill:var(--dynamic-color-activated)}._input-style-secondary_17x9g_68{background-color:#96b4ee33;color:var(--dynamic-color-secondary);border:1px solid rgba(150,180,238,.5)}._input-style-secondary_17x9g_68 input{color:var(--dynamic-color-secondary)}._input-style-secondary_17x9g_68 input::placeholder{color:var(--dynamic-color-secondary)}._input-style-secondary_17x9g_68 *{fill:var(--dynamic-color-secondary)}._input-style-error_17x9g_82{border-color:#ff4747;color:#ff4747}._input-style-error_17x9g_82 input::placeholder{color:#ff4747}._input-style-error_17x9g_82 *{fill:#ff4747}._input-style-success_17x9g_92{border-color:#33b449;color:#33b449}._input-style-success_17x9g_92 input::placeholder{color:#33b449}._input-style-success_17x9g_92 *{fill:#33b449}._input-style_17x9g_37 ._input-container_17x9g_102{position:relative;width:100%}._input-style-size-xl_17x9g_106{padding:1rem;font-size:1.125em;line-height:28px;border-radius:8px;gap:.625rem}._input-style-size-xl_17x9g_106 input{line-height:28px}._input-style-size-l_17x9g_116{padding:.75rem;font-size:1em;line-height:24px;border-radius:8px;gap:.5rem}._input-style-size-l_17x9g_116 input{line-height:24px}._input-style-size-m_17x9g_126{padding:.5rem;font-size:.875em;line-height:20px;border-radius:4px;gap:.375rem}._input-style-size-m_17x9g_126 input{line-height:20px}._input-style-size-s_17x9g_136{padding:.375rem;font-size:.75em;line-height:16px;border-radius:4px;gap:.25rem}._input-style-size-s_17x9g_136 input{line-height:16px}._input-style-radius_17x9g_146{border-radius:50px}._flexHorizontalBetween_17x9g_150{display:flex;justify-content:space-between;align-items:center;flex-direction:row}._flexHorizontal_17x9g_150{display:flex;justify-content:flex-start;align-items:center;flex-direction:row}
@@ -0,0 +1 @@
1
+ ._tooltip-container_1w7yx_21{position:relative;display:inline-block;width:auto;height:auto;display:flex;justify-content:center;align-items:center;cursor:pointer}._tooltip-container_1w7yx_21 ._tooltip_1w7yx_21{position:absolute;padding:var(--dynamic-padding);border-radius:4px;font-size:12px;white-space:nowrap;z-index:10;opacity:0;visibility:hidden;transition:opacity .3s ease-in-out,visibility .3s}._tooltip-container_1w7yx_21 ._tooltip-dark_1w7yx_42{background-color:#3a4047;box-shadow:0 0 10.9px #0000001a;color:#fff}._tooltip-container_1w7yx_21 ._tooltip-light_1w7yx_47{background-color:#fff;box-shadow:0 0 10.9px #0000001a;color:#1d3557}._tooltip-container_1w7yx_21:hover ._tooltip_1w7yx_21{opacity:1;visibility:visible}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@situaction/traq-ui-ste",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "library react component Situaction",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",