@konstructio/ui 0.1.2-alpha.46 → 0.1.2-alpha.47
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/Counter/Counter.js +210 -0
- package/dist/components/Counter/Counter.variants.js +70 -0
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.variants.js +1 -1
- package/dist/components/Radio/Radio.js +47 -44
- package/dist/components/Radio/Radio.variants.js +12 -8
- package/dist/components/TimePicker/TimePicker.variants.js +11 -6
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +50 -35
- package/dist/components/Typography/Typography.js +11 -13
- package/dist/components/Typography/Typography.variants.js +49 -46
- package/dist/components/index.js +96 -95
- package/dist/index.d.ts +28 -21
- package/dist/index.js +110 -109
- package/dist/package.json +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useId as N, useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useId as N, useState as E, useRef as L, useCallback as O, useEffect as I } from "react";
|
|
3
|
+
import { Typography as c } from "../../../Typography/Typography.js";
|
|
4
|
+
import { cn as d } from "../../../../utils/index.js";
|
|
5
|
+
import { timePickerVariants as T } from "../../TimePicker.variants.js";
|
|
5
6
|
import { WrapperList as j } from "../WrapperList/WrapperList.js";
|
|
6
7
|
import { C as P } from "../../../../chevron-down-DgT-uSF9.js";
|
|
7
8
|
import { useTimePickerContext as R } from "../../contexts/time-picker.hook.js";
|
|
8
|
-
const
|
|
9
|
-
name:
|
|
10
|
-
label:
|
|
11
|
-
|
|
12
|
-
scrollBehavior:
|
|
13
|
-
className:
|
|
9
|
+
const q = ({
|
|
10
|
+
name: p,
|
|
11
|
+
label: i,
|
|
12
|
+
isRequired: f,
|
|
13
|
+
scrollBehavior: u,
|
|
14
|
+
className: h,
|
|
14
15
|
listClassName: x,
|
|
15
|
-
listItemClassName:
|
|
16
|
-
listItemButtonClassName:
|
|
16
|
+
listItemClassName: w,
|
|
17
|
+
listItemButtonClassName: b
|
|
17
18
|
}) => {
|
|
18
|
-
const
|
|
19
|
+
const g = N(), [n, r] = E(!1), l = L(null), { format: k, formattedTime: m } = R(), o = p ?? `time-${g}`, v = O(() => r((e) => !e), []);
|
|
19
20
|
return I(() => {
|
|
20
|
-
const e = new AbortController(),
|
|
21
|
-
|
|
22
|
-
}, C = (
|
|
23
|
-
|
|
21
|
+
const e = new AbortController(), y = (s) => {
|
|
22
|
+
s.key === "Escape" && r(!1);
|
|
23
|
+
}, C = (s) => {
|
|
24
|
+
l.current?.contains(s.target) || r(!1);
|
|
24
25
|
};
|
|
25
26
|
return document.addEventListener("mousedown", C, {
|
|
26
27
|
signal: e.signal
|
|
27
|
-
}), document.addEventListener("keydown",
|
|
28
|
+
}), document.addEventListener("keydown", y, {
|
|
28
29
|
signal: e.signal
|
|
29
30
|
}), () => {
|
|
30
31
|
e.abort();
|
|
@@ -32,21 +33,35 @@ const V = ({
|
|
|
32
33
|
}, []), /* @__PURE__ */ t(
|
|
33
34
|
"div",
|
|
34
35
|
{
|
|
35
|
-
ref:
|
|
36
|
-
className:
|
|
37
|
-
"w-max
|
|
38
|
-
|
|
36
|
+
ref: l,
|
|
37
|
+
className: d(
|
|
38
|
+
"w-max",
|
|
39
|
+
"text-slate-800",
|
|
40
|
+
"text-sm",
|
|
41
|
+
"flex",
|
|
42
|
+
"flex-col",
|
|
43
|
+
"gap-2",
|
|
44
|
+
k === "12" ? "w-53 min-w-53" : "w-36 min-w-36"
|
|
39
45
|
),
|
|
40
46
|
children: [
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
i ? /* @__PURE__ */ t(
|
|
48
|
+
c,
|
|
43
49
|
{
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
component: "label",
|
|
51
|
+
variant: "labelLarge",
|
|
52
|
+
htmlFor: o,
|
|
53
|
+
className: "font-medium",
|
|
46
54
|
children: [
|
|
47
|
-
|
|
55
|
+
i,
|
|
48
56
|
" ",
|
|
49
|
-
|
|
57
|
+
f && /* @__PURE__ */ a(
|
|
58
|
+
c,
|
|
59
|
+
{
|
|
60
|
+
component: "span",
|
|
61
|
+
className: "text-red-500 dark:text-red-500 text-sm font-normal",
|
|
62
|
+
children: "*"
|
|
63
|
+
}
|
|
64
|
+
)
|
|
50
65
|
]
|
|
51
66
|
}
|
|
52
67
|
) : null,
|
|
@@ -54,13 +69,13 @@ const V = ({
|
|
|
54
69
|
/* @__PURE__ */ t(
|
|
55
70
|
"button",
|
|
56
71
|
{
|
|
57
|
-
"aria-label":
|
|
72
|
+
"aria-label": o,
|
|
58
73
|
"aria-haspopup": "listbox",
|
|
59
74
|
"aria-expanded": "true",
|
|
60
75
|
"aria-controls": "time-options",
|
|
61
|
-
className:
|
|
76
|
+
className: d(T({ className: h })),
|
|
62
77
|
"data-open": n,
|
|
63
|
-
onClick:
|
|
78
|
+
onClick: v,
|
|
64
79
|
children: [
|
|
65
80
|
m,
|
|
66
81
|
/* @__PURE__ */ a(
|
|
@@ -77,10 +92,10 @@ const V = ({
|
|
|
77
92
|
j,
|
|
78
93
|
{
|
|
79
94
|
isOpen: n,
|
|
80
|
-
scrollBehavior:
|
|
95
|
+
scrollBehavior: u,
|
|
81
96
|
listClassName: x,
|
|
82
|
-
listItemClassName:
|
|
83
|
-
listItemButtonClassName:
|
|
97
|
+
listItemClassName: w,
|
|
98
|
+
listItemButtonClassName: b
|
|
84
99
|
}
|
|
85
100
|
)
|
|
86
101
|
] }),
|
|
@@ -88,7 +103,7 @@ const V = ({
|
|
|
88
103
|
"input",
|
|
89
104
|
{
|
|
90
105
|
type: "hidden",
|
|
91
|
-
name:
|
|
106
|
+
name: o,
|
|
92
107
|
value: m,
|
|
93
108
|
className: "hidden"
|
|
94
109
|
}
|
|
@@ -98,5 +113,5 @@ const V = ({
|
|
|
98
113
|
);
|
|
99
114
|
};
|
|
100
115
|
export {
|
|
101
|
-
|
|
116
|
+
q as Wrapper
|
|
102
117
|
};
|
|
@@ -2,27 +2,25 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { cn as c } from "../../utils/index.js";
|
|
4
4
|
import { typographyVariants as f } from "./Typography.variants.js";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const h = y(({ className: r, theme: p, children: t, variant: o, component: m, ...e }, s) => {
|
|
6
|
+
const a = m ?? (o?.includes("h") ? o : "p");
|
|
7
7
|
return /* @__PURE__ */ n(
|
|
8
|
-
|
|
8
|
+
a,
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
11
|
-
"data-theme":
|
|
10
|
+
ref: s,
|
|
11
|
+
"data-theme": p,
|
|
12
12
|
className: c(
|
|
13
|
-
"text-slate-800",
|
|
14
|
-
"dark:text-metal-50",
|
|
15
13
|
f({
|
|
16
|
-
className:
|
|
17
|
-
variant:
|
|
14
|
+
className: r,
|
|
15
|
+
variant: o
|
|
18
16
|
})
|
|
19
17
|
),
|
|
20
|
-
...
|
|
21
|
-
children:
|
|
18
|
+
...e,
|
|
19
|
+
children: t
|
|
22
20
|
}
|
|
23
21
|
);
|
|
24
22
|
});
|
|
25
|
-
|
|
23
|
+
h.displayName = "KonstructTypography";
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
h as Typography
|
|
28
26
|
};
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
import { c as t } from "../../index-D29mdTf5.js";
|
|
2
|
-
const a = t(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"text-[
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"text-[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
const a = t(
|
|
3
|
+
["text-slate-800", "dark:text-metal-50"],
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
h1: ["text-[57px]", "leading-16"],
|
|
8
|
+
h2: ["text-[45px]", "leading-13"],
|
|
9
|
+
h3: ["text-4xl", "leading-11"],
|
|
10
|
+
h4: ["text-[32px]", "leading-10"],
|
|
11
|
+
h5: ["text-[28px]", "leading-9"],
|
|
12
|
+
h6: ["text-2xl", "font-medium", "leading-8", "tracking-[0.15px]"],
|
|
13
|
+
subtitle1: ["text-[22px]", "leading-7"],
|
|
14
|
+
subtitle2: ["text-sm", "font-medium", "leading-6", "tracking-[0.15px]"],
|
|
15
|
+
subtitle3: [
|
|
16
|
+
"text-[14px]",
|
|
17
|
+
"font-medium",
|
|
18
|
+
"leading-5",
|
|
19
|
+
"tracking-[0.1px]"
|
|
20
|
+
],
|
|
21
|
+
labelLarge: ["text-sm", "leading-5", "tracking-[0.1px]"],
|
|
22
|
+
labelMedium: [
|
|
23
|
+
"text-[12px]",
|
|
24
|
+
"font-medium",
|
|
25
|
+
"leading-4",
|
|
26
|
+
"tracking-[0.5px]",
|
|
27
|
+
"uppercase"
|
|
28
|
+
],
|
|
29
|
+
labelSmall: [
|
|
30
|
+
"text-[11px]",
|
|
31
|
+
"font-medium",
|
|
32
|
+
"leading-4",
|
|
33
|
+
"tracking-[0.5px]",
|
|
34
|
+
"uppercase"
|
|
35
|
+
],
|
|
36
|
+
buttonSmall: [
|
|
37
|
+
"text-[14px]",
|
|
38
|
+
"font-semibold",
|
|
39
|
+
"leading-5",
|
|
40
|
+
"tracking-[0.25px]"
|
|
41
|
+
],
|
|
42
|
+
body1: ["text-base", "leading-6", "tracking-[0.5px]"],
|
|
43
|
+
body2: ["text-sm", "leading-5", "tracking-[0.25px]"],
|
|
44
|
+
body3: ["text-xs", "leading-4", "tracking-[0.4px]"],
|
|
45
|
+
tooltip: ["text-sm", "leading-5.5"]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
variant: "body1"
|
|
44
50
|
}
|
|
45
|
-
},
|
|
46
|
-
defaultVariants: {
|
|
47
|
-
variant: "body1"
|
|
48
51
|
}
|
|
49
|
-
|
|
52
|
+
);
|
|
50
53
|
export {
|
|
51
54
|
a as typographyVariants
|
|
52
55
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -2,106 +2,107 @@ import { Alert as e } from "./Alert/Alert.js";
|
|
|
2
2
|
import { AlertDialog as p } from "./AlertDialog/AlertDialog.js";
|
|
3
3
|
import { Autocomplete as x } from "./Autocomplete/Autocomplete.js";
|
|
4
4
|
import { Badge as a } from "./Badge/Badge.js";
|
|
5
|
-
import { Breadcrumb as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Card as
|
|
5
|
+
import { Breadcrumb as n } from "./Breadcrumb/Breadcrumb.js";
|
|
6
|
+
import { Button as l } from "./Button/Button.js";
|
|
7
|
+
import { Card as g } from "./Card/Card.js";
|
|
8
8
|
import { Checkbox as c } from "./Checkbox/Checkbox.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { PhoneNumberInput as
|
|
20
|
-
import { PieChart as
|
|
21
|
-
import { ProgressBar as
|
|
22
|
-
import { Radio as
|
|
23
|
-
import { RadioCard as
|
|
24
|
-
import { RadioCardGroup as
|
|
25
|
-
import { RadioGroup as
|
|
26
|
-
import { Range as
|
|
27
|
-
import { Select as
|
|
28
|
-
import { Sidebar as
|
|
29
|
-
import { Slider as
|
|
30
|
-
import { Switch as
|
|
31
|
-
import { Table as
|
|
32
|
-
import { Tabs as
|
|
33
|
-
import { Tag as
|
|
34
|
-
import { TagSelect as
|
|
35
|
-
import { TextArea as
|
|
36
|
-
import { TimePicker as
|
|
37
|
-
import { Toast as
|
|
38
|
-
import { Tooltip as
|
|
39
|
-
import { Typography as
|
|
40
|
-
import { VirtualizedTable as
|
|
41
|
-
import { BadgeMultiSelect as
|
|
42
|
-
import { DateFilterDropdown as
|
|
43
|
-
import { Footer as
|
|
44
|
-
import { Logo as
|
|
45
|
-
import { Navigation as
|
|
46
|
-
import { NavigationGroup as
|
|
47
|
-
import { NavigationOption as
|
|
48
|
-
import { NavigationSeparator as
|
|
49
|
-
import { Content as
|
|
50
|
-
import { List as
|
|
51
|
-
import { Trigger as
|
|
52
|
-
import { TruncateText as
|
|
9
|
+
import { Counter as b, Counter as s } from "./Counter/Counter.js";
|
|
10
|
+
import { DatePicker as D } from "./Datepicker/DatePicker.js";
|
|
11
|
+
import { Divider as N } from "./Divider/Divider.js";
|
|
12
|
+
import { DropdownButton as v } from "./DropdownButton/DropdownButton.js";
|
|
13
|
+
import { Filter as P } from "./Filter/Filter.js";
|
|
14
|
+
import { ImageUpload as A } from "./ImageUpload/ImageUpload.js";
|
|
15
|
+
import { Input as M } from "./Input/Input.js";
|
|
16
|
+
import { Loading as F } from "./Loading/Loading.js";
|
|
17
|
+
import { M as L } from "../Modal-CjC-CIJ8.js";
|
|
18
|
+
import { MultiSelectDropdown as z } from "./MultiSelectDropdown/MultiSelectDropdown.js";
|
|
19
|
+
import { PhoneNumberInput as U } from "./PhoneNumberInput/PhoneNumberInput.js";
|
|
20
|
+
import { PieChart as j } from "./PieChart/PieChart.js";
|
|
21
|
+
import { ProgressBar as E } from "./ProgressBar/ProgressBar.js";
|
|
22
|
+
import { Radio as J } from "./Radio/Radio.js";
|
|
23
|
+
import { RadioCard as Q } from "./RadioCard/RadioCard.js";
|
|
24
|
+
import { RadioCardGroup as X } from "./RadioCardGroup/RadioCardGroup.js";
|
|
25
|
+
import { RadioGroup as Z } from "./RadioGroup/RadioGroup.js";
|
|
26
|
+
import { Range as $ } from "./Range/Range.js";
|
|
27
|
+
import { Select as ro, Select as eo } from "./Select/Select.js";
|
|
28
|
+
import { Sidebar as po } from "./Sidebar/Sidebar.js";
|
|
29
|
+
import { Slider as xo } from "./Slider/Slider.js";
|
|
30
|
+
import { Switch as ao } from "./Switch/Switch.js";
|
|
31
|
+
import { Table as no } from "./Table/Table.js";
|
|
32
|
+
import { Tabs as uo } from "./Tabs/Tabs.js";
|
|
33
|
+
import { Tag as To } from "./Tag/Tag.js";
|
|
34
|
+
import { TagSelect as So } from "./TagSelect/TagSelect.js";
|
|
35
|
+
import { TextArea as so } from "./TextArea/TextArea.js";
|
|
36
|
+
import { TimePicker as Do } from "./TimePicker/TimePicker.js";
|
|
37
|
+
import { Toast as No } from "./Toast/Toast.js";
|
|
38
|
+
import { Tooltip as vo } from "./Tooltip/Tooltip.js";
|
|
39
|
+
import { Typography as Po } from "./Typography/Typography.js";
|
|
40
|
+
import { VirtualizedTable as Ao } from "./VirtualizedTable/VirtualizedTable.js";
|
|
41
|
+
import { BadgeMultiSelect as Mo } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
42
|
+
import { DateFilterDropdown as Fo } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
43
|
+
import { Footer as Lo } from "./Sidebar/components/Footer/Footer.js";
|
|
44
|
+
import { Logo as zo } from "./Sidebar/components/Logo/Logo.js";
|
|
45
|
+
import { Navigation as Uo } from "./Sidebar/components/Navigation/Navigation.js";
|
|
46
|
+
import { NavigationGroup as jo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
47
|
+
import { NavigationOption as Eo } from "./Sidebar/components/NavigationOption/NavigationOption.js";
|
|
48
|
+
import { NavigationSeparator as Jo } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
49
|
+
import { Content as Qo } from "./Tabs/components/Content.js";
|
|
50
|
+
import { List as Xo } from "./Tabs/components/List.js";
|
|
51
|
+
import { Trigger as Zo } from "./Tabs/components/Trigger.js";
|
|
52
|
+
import { TruncateText as $o } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
53
53
|
export {
|
|
54
54
|
e as Alert,
|
|
55
55
|
p as AlertDialog,
|
|
56
56
|
x as Autocomplete,
|
|
57
57
|
a as Badge,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
Mo as BadgeMultiSelect,
|
|
59
|
+
n as Breadcrumb,
|
|
60
|
+
l as Button,
|
|
61
|
+
g as Card,
|
|
62
62
|
c as Checkbox,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
no as
|
|
97
|
-
uo as
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
so as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
63
|
+
Qo as Content,
|
|
64
|
+
b as Counter,
|
|
65
|
+
Fo as DateFilterDropdown,
|
|
66
|
+
D as DatePicker,
|
|
67
|
+
N as Divider,
|
|
68
|
+
ro as Dropdown,
|
|
69
|
+
v as DropdownButton,
|
|
70
|
+
P as Filter,
|
|
71
|
+
Lo as Footer,
|
|
72
|
+
A as ImageUpload,
|
|
73
|
+
M as Input,
|
|
74
|
+
Xo as List,
|
|
75
|
+
F as Loading,
|
|
76
|
+
zo as Logo,
|
|
77
|
+
L as Modal,
|
|
78
|
+
z as MultiSelectDropdown,
|
|
79
|
+
Uo as Navigation,
|
|
80
|
+
jo as NavigationGroup,
|
|
81
|
+
Eo as NavigationOption,
|
|
82
|
+
Jo as NavigationSeparator,
|
|
83
|
+
s as NumberInput,
|
|
84
|
+
U as PhoneNumberInput,
|
|
85
|
+
j as PieChart,
|
|
86
|
+
E as ProgressBar,
|
|
87
|
+
J as Radio,
|
|
88
|
+
Q as RadioCard,
|
|
89
|
+
X as RadioCardGroup,
|
|
90
|
+
Z as RadioGroup,
|
|
91
|
+
$ as Range,
|
|
92
|
+
eo as Select,
|
|
93
|
+
po as Sidebar,
|
|
94
|
+
xo as Slider,
|
|
95
|
+
ao as Switch,
|
|
96
|
+
no as Table,
|
|
97
|
+
uo as Tabs,
|
|
98
|
+
To as Tag,
|
|
99
|
+
So as TagSelect,
|
|
100
|
+
so as TextArea,
|
|
101
|
+
Do as TimePicker,
|
|
102
|
+
No as Toast,
|
|
103
|
+
vo as Tooltip,
|
|
104
|
+
Zo as Trigger,
|
|
105
|
+
$o as TruncateText,
|
|
106
|
+
Po as Typography,
|
|
107
|
+
Ao as VirtualizedTable
|
|
107
108
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -194,6 +194,33 @@ export declare type ColumnDef<TData extends RowData> = ColumnDef_2<TData, string
|
|
|
194
194
|
|
|
195
195
|
export declare const Content: FC<TabsContentProps>;
|
|
196
196
|
|
|
197
|
+
declare const Counter: FC<CounterProps>;
|
|
198
|
+
export { Counter }
|
|
199
|
+
export { Counter as NumberInput }
|
|
200
|
+
|
|
201
|
+
declare interface CounterProps extends VariantProps<typeof counterVariants> {
|
|
202
|
+
canDecrement?: boolean;
|
|
203
|
+
canIncrement?: boolean;
|
|
204
|
+
className?: string;
|
|
205
|
+
decrementButtonClassName?: string;
|
|
206
|
+
incrementButtonClassName?: string;
|
|
207
|
+
init?: number;
|
|
208
|
+
isRequired?: boolean;
|
|
209
|
+
label?: string;
|
|
210
|
+
max?: number;
|
|
211
|
+
min?: number;
|
|
212
|
+
name?: string;
|
|
213
|
+
theme?: Theme;
|
|
214
|
+
value?: number;
|
|
215
|
+
onChange?: ({ target: { value } }: {
|
|
216
|
+
target: {
|
|
217
|
+
value: number;
|
|
218
|
+
};
|
|
219
|
+
}) => void;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare const counterVariants: (props?: ClassProp | undefined) => string;
|
|
223
|
+
|
|
197
224
|
declare type CSSColor = `var(--${string})` | `rgb(${number}, ${number}, ${number})` | `rgba(${number}, ${number}, ${number}, ${number})` | `hsl(${number}, ${number}%, ${number}%)` | `hsla(${number}, ${number}%, ${number}%, ${number})`;
|
|
198
225
|
|
|
199
226
|
export declare const DateFilterDropdown: FC<DateFilterDropdownProps>;
|
|
@@ -458,26 +485,6 @@ declare const navigationTitleVariants: (props?: ClassProp | undefined) => string
|
|
|
458
485
|
|
|
459
486
|
declare const navigationVariants: (props?: ClassProp | undefined) => string;
|
|
460
487
|
|
|
461
|
-
export declare const NumberInput: FC<NumberInputProps>;
|
|
462
|
-
|
|
463
|
-
declare interface NumberInputProps extends VariantProps<typeof numberInputVariants> {
|
|
464
|
-
className?: string;
|
|
465
|
-
init?: number;
|
|
466
|
-
label?: string | ReactNode;
|
|
467
|
-
max?: number;
|
|
468
|
-
min?: number;
|
|
469
|
-
name?: string;
|
|
470
|
-
value?: number;
|
|
471
|
-
theme?: Theme;
|
|
472
|
-
onChange?: ({ target: { value } }: {
|
|
473
|
-
target: {
|
|
474
|
-
value: number;
|
|
475
|
-
};
|
|
476
|
-
}) => void;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
declare const numberInputVariants: (props?: ClassProp | undefined) => string;
|
|
480
|
-
|
|
481
488
|
declare type OnBlurFn = (event: {
|
|
482
489
|
target: HTMLInputElement | null;
|
|
483
490
|
type?: string;
|
|
@@ -1011,7 +1018,7 @@ declare type TimePickerProps = VariantProps<typeof timePickerVariants> & {
|
|
|
1011
1018
|
time?: Date;
|
|
1012
1019
|
name?: string;
|
|
1013
1020
|
label?: string;
|
|
1014
|
-
|
|
1021
|
+
isRequired?: boolean;
|
|
1015
1022
|
className?: string;
|
|
1016
1023
|
listClassName?: string;
|
|
1017
1024
|
listItemClassName?: string;
|