@situaction/traq-ui-ste 1.1.4 → 1.1.5
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.js +34 -34
- package/dist/components/calendar/Calendar.d.ts +17 -0
- package/dist/components/calendar/Calendar.js +1403 -0
- package/dist/components/icon-button/IconButton.js +31 -31
- package/dist/components/input/Input.js +35 -35
- package/dist/components/tag/Tag.js +33 -33
- package/dist/components/theme/variables_dark.d.ts +2 -2
- package/dist/components/theme/variables_dark.js +29 -29
- package/dist/components/theme/variables_light.d.ts +2 -2
- package/dist/components/theme/variables_light.js +31 -31
- package/dist/main.d.ts +1 -0
- package/dist/main.js +17 -15
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Calendar.css +1 -0
- package/dist/styles/IconButton.css +1 -1
- package/dist/styles/Input.css +1 -1
- package/dist/styles/Tag.css +1 -1
- package/package.json +4 -2
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import '../../styles/Button.css';const
|
|
3
|
-
button:
|
|
4
|
-
"button-primary": "_button-
|
|
5
|
-
"button-secondary": "_button-
|
|
6
|
-
"button-tertiary": "_button-
|
|
7
|
-
"button-ghost": "_button-
|
|
8
|
-
"button-text": "_button-
|
|
9
|
-
"button-text-selected": "_button-text-
|
|
10
|
-
"button-error": "_button-
|
|
11
|
-
"button-size-xl": "_button-size-
|
|
12
|
-
"button-size-l": "_button-size-
|
|
13
|
-
"button-size-m": "_button-size-
|
|
14
|
-
"button-size-s": "_button-size-
|
|
15
|
-
"button-size-menu": "_button-size-
|
|
16
|
-
"button-gap-menu": "_button-gap-
|
|
17
|
-
"button-gap-xl": "_button-gap-
|
|
18
|
-
"button-gap-l": "_button-gap-
|
|
19
|
-
"button-gap-m": "_button-gap-
|
|
20
|
-
"button-gap-s": "_button-gap-
|
|
21
|
-
flexHorizontalCenter:
|
|
22
|
-
},
|
|
1
|
+
import { jsxs as p, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import '../../styles/Button.css';const v = "_button_wt8sv_23", w = "_flexHorizontalCenter_wt8sv_184", t = {
|
|
3
|
+
button: v,
|
|
4
|
+
"button-primary": "_button-primary_wt8sv_47",
|
|
5
|
+
"button-secondary": "_button-secondary_wt8sv_61",
|
|
6
|
+
"button-tertiary": "_button-tertiary_wt8sv_77",
|
|
7
|
+
"button-ghost": "_button-ghost_wt8sv_93",
|
|
8
|
+
"button-text": "_button-text_wt8sv_109",
|
|
9
|
+
"button-text-selected": "_button-text-selected_wt8sv_122",
|
|
10
|
+
"button-error": "_button-error_wt8sv_128",
|
|
11
|
+
"button-size-xl": "_button-size-xl_wt8sv_141",
|
|
12
|
+
"button-size-l": "_button-size-l_wt8sv_147",
|
|
13
|
+
"button-size-m": "_button-size-m_wt8sv_153",
|
|
14
|
+
"button-size-s": "_button-size-s_wt8sv_159",
|
|
15
|
+
"button-size-menu": "_button-size-menu_wt8sv_165",
|
|
16
|
+
"button-gap-menu": "_button-gap-menu_wt8sv_171",
|
|
17
|
+
"button-gap-xl": "_button-gap-xl_wt8sv_174",
|
|
18
|
+
"button-gap-l": "_button-gap-l_wt8sv_177",
|
|
19
|
+
"button-gap-m": "_button-gap-m_wt8sv_171",
|
|
20
|
+
"button-gap-s": "_button-gap-s_wt8sv_180",
|
|
21
|
+
flexHorizontalCenter: w
|
|
22
|
+
}, m = ({
|
|
23
23
|
mode: o = "primary",
|
|
24
|
-
size:
|
|
25
|
-
label:
|
|
26
|
-
error:
|
|
24
|
+
size: e = "m",
|
|
25
|
+
label: u,
|
|
26
|
+
error: b,
|
|
27
27
|
selected: r,
|
|
28
|
-
childrenLeft:
|
|
28
|
+
childrenLeft: s,
|
|
29
29
|
childrenRight: _,
|
|
30
30
|
...a
|
|
31
31
|
}) => {
|
|
32
|
-
const l = () =>
|
|
32
|
+
const l = () => b ? "error" : o, i = [
|
|
33
33
|
t.button,
|
|
34
34
|
t[`button-${l()}`],
|
|
35
|
-
t[`button-size-${
|
|
36
|
-
t[`button-gap-${
|
|
35
|
+
t[`button-size-${e}`],
|
|
36
|
+
t[`button-gap-${e}`],
|
|
37
37
|
r && o === "text" && t["button-text-selected"],
|
|
38
38
|
t.flexHorizontalCenter
|
|
39
39
|
].filter(Boolean).join(" ");
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ p(
|
|
41
41
|
"button",
|
|
42
42
|
{
|
|
43
43
|
type: "button",
|
|
44
|
-
className:
|
|
44
|
+
className: i,
|
|
45
45
|
...a,
|
|
46
46
|
children: [
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */ n("span", { children:
|
|
47
|
+
s && /* @__PURE__ */ n("span", { className: t.flexHorizontalCenter, children: s }),
|
|
48
|
+
/* @__PURE__ */ n("span", { children: u }),
|
|
49
49
|
_ && /* @__PURE__ */ n("span", { className: t.flexHorizontalCenter, children: _ })
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
m as Button
|
|
56
56
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface CalendarProps {
|
|
4
|
+
/** Whether the date range selection is enabled */
|
|
5
|
+
selectRange?: boolean;
|
|
6
|
+
/** The currently selected date or a range of dates */
|
|
7
|
+
selectedDate?: Date | {
|
|
8
|
+
start: Date;
|
|
9
|
+
end: Date;
|
|
10
|
+
};
|
|
11
|
+
/** Callback to return the selected date or date range */
|
|
12
|
+
onDateSelect: (date: Date | {
|
|
13
|
+
start: Date;
|
|
14
|
+
end: Date;
|
|
15
|
+
}) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const Calendar: FC<CalendarProps>;
|