@serendie/ui 2.1.3-dev.202509030422 → 2.1.3-dev.202509040333
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/client.js +15 -13
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.js +4 -2
- package/dist/components/DatePicker/parseDate.d.ts +1 -0
- package/dist/index.js +21 -19
- package/dist/node_modules/@internationalized/date/dist/conversion.js +9 -9
- package/dist/node_modules/@internationalized/date/dist/string.js +30 -16
- package/dist/node_modules/@zag-js/date-picker/dist/index.js +333 -327
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -3,13 +3,13 @@ import { SerendiePreset as e } from "./preset.js";
|
|
|
3
3
|
import { Accordion as a } from "./components/Accordion/Accordion.js";
|
|
4
4
|
import { AccordionGroup as m } from "./components/Accordion/AccordionGroup.js";
|
|
5
5
|
import { Avatar as x, AvatarStyle as n } from "./components/Avatar/Avatar.js";
|
|
6
|
-
import { Badge as f, BadgeCloseButton as
|
|
6
|
+
import { Badge as f, BadgeCloseButton as c, BadgeStyle as l } from "./components/Badge/Badge.js";
|
|
7
7
|
import { Banner as h } from "./components/Banner/Banner.js";
|
|
8
8
|
import { BottomNavigation as S } from "./components/BottomNavigation/BottomNavigation.js";
|
|
9
9
|
import { BottomNavigationItem as g, BottomNavigationItemStyle as y } from "./components/BottomNavigation/BottomNavigationItem.js";
|
|
10
10
|
import { Button as I, ButtonStyle as T } from "./components/Button/Button.js";
|
|
11
|
-
import { SerendieChartTheme as
|
|
12
|
-
import { compactChartMargin as
|
|
11
|
+
import { SerendieChartTheme as D } from "./components/Chart/SerendieChartTheme.js";
|
|
12
|
+
import { compactChartMargin as k, defaultChartMargin as v, getChartColor as M, getChartColors as w, legendChartMargin as A, spaciousChartMargin as L, useBarChartProps as N, useChartProps as R, useLineChartProps as F, usePieChartProps as G } from "./components/Chart/SerendieChartProps.js";
|
|
13
13
|
import { CheckBox as W, CheckBoxStyle as j, checkboxCheckedIconCss as q, checkboxIconCss as z, checkboxUncheckedIconCss as E } from "./components/CheckBox/CheckBox.js";
|
|
14
14
|
import { ChoiceBox as J, ChoiceBoxStyle as K } from "./components/ChoiceBox/ChoiceBox.js";
|
|
15
15
|
import { DashboardWidget as Q } from "./components/DashboardWidget/DashboardWidget.js";
|
|
@@ -19,13 +19,13 @@ import { Divider as $, DividerStyle as oo } from "./components/Divider/Divider.j
|
|
|
19
19
|
import { Drawer as eo } from "./components/Drawer/Drawer.js";
|
|
20
20
|
import { DropdownMenu as ao, DropdownMenuStyle as po } from "./components/DropdownMenu/DropdownMenu.js";
|
|
21
21
|
import { IconButton as io, IconButtonStyle as xo } from "./components/IconButton/IconButton.js";
|
|
22
|
-
import { List as
|
|
23
|
-
import { ListItem as
|
|
22
|
+
import { List as so } from "./components/List/List.js";
|
|
23
|
+
import { ListItem as co, ListItemStyle as lo } from "./components/List/ListItem.js";
|
|
24
24
|
import { ModalDialog as Co } from "./components/ModalDialog/ModalDialog.js";
|
|
25
25
|
import { NotificationBadge as Bo } from "./components/NotificationBadge/NotificationBadge.js";
|
|
26
26
|
import { Pagination as yo, PaginationStyle as uo } from "./components/Pagination/Pagination.js";
|
|
27
27
|
import { PasswordField as To } from "./components/PasswordField/PasswordField.js";
|
|
28
|
-
import { ProgressIndicator as
|
|
28
|
+
import { ProgressIndicator as Do, ProgressIndicatorStyle as bo } from "./components/ProgressIndicator/ProgressIndicator.js";
|
|
29
29
|
import { RadioButton as vo, RadioButtonStyle as Mo, radioCheckedIconCss as wo, radioIconCss as Ao, radioUncheckedIconCss as Lo } from "./components/RadioButton/RadioButton.js";
|
|
30
30
|
import { RadioGroup as Ro } from "./components/RadioButton/RadioGroup.js";
|
|
31
31
|
import { Search as Go, SearchStyle as Uo } from "./components/Search/Search.js";
|
|
@@ -39,13 +39,14 @@ import { Toast as rr, ToastStyle as er, toaster as tr } from "./components/Toast
|
|
|
39
39
|
import { Tooltip as pr } from "./components/Tooltip/Tooltip.js";
|
|
40
40
|
import { TopAppBar as ir } from "./components/TopAppBar/TopAppBar.js";
|
|
41
41
|
import { DataTableComponent as nr } from "./components/DataTable/DataTableComponent.js";
|
|
42
|
+
import { parse as fr } from "./node_modules/@zag-js/date-picker/dist/index.js";
|
|
42
43
|
export {
|
|
43
44
|
a as Accordion,
|
|
44
45
|
m as AccordionGroup,
|
|
45
46
|
x as Avatar,
|
|
46
47
|
n as AvatarStyle,
|
|
47
48
|
f as Badge,
|
|
48
|
-
|
|
49
|
+
c as BadgeCloseButton,
|
|
49
50
|
l as BadgeStyle,
|
|
50
51
|
h as Banner,
|
|
51
52
|
S as BottomNavigation,
|
|
@@ -68,16 +69,16 @@ export {
|
|
|
68
69
|
po as DropdownMenuStyle,
|
|
69
70
|
io as IconButton,
|
|
70
71
|
xo as IconButtonStyle,
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
so as List,
|
|
73
|
+
co as ListItem,
|
|
73
74
|
lo as ListItemStyle,
|
|
74
75
|
Co as ModalDialog,
|
|
75
76
|
Bo as NotificationBadge,
|
|
76
77
|
yo as Pagination,
|
|
77
78
|
uo as PaginationStyle,
|
|
78
79
|
To as PasswordField,
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
Do as ProgressIndicator,
|
|
81
|
+
bo as ProgressIndicatorStyle,
|
|
81
82
|
vo as RadioButton,
|
|
82
83
|
Mo as RadioButtonStyle,
|
|
83
84
|
Ro as RadioGroup,
|
|
@@ -85,7 +86,7 @@ export {
|
|
|
85
86
|
Uo as SearchStyle,
|
|
86
87
|
jo as Select,
|
|
87
88
|
qo as SelectStyle,
|
|
88
|
-
|
|
89
|
+
D as SerendieChartTheme,
|
|
89
90
|
e as SerendiePreset,
|
|
90
91
|
Eo as Switch,
|
|
91
92
|
Ho as SwitchStyle,
|
|
@@ -102,11 +103,12 @@ export {
|
|
|
102
103
|
q as checkboxCheckedIconCss,
|
|
103
104
|
z as checkboxIconCss,
|
|
104
105
|
E as checkboxUncheckedIconCss,
|
|
105
|
-
|
|
106
|
+
k as compactChartMargin,
|
|
106
107
|
v as defaultChartMargin,
|
|
107
108
|
M as getChartColor,
|
|
108
109
|
w as getChartColors,
|
|
109
110
|
A as legendChartMargin,
|
|
111
|
+
fr as parseDate,
|
|
110
112
|
wo as radioCheckedIconCss,
|
|
111
113
|
Ao as radioIconCss,
|
|
112
114
|
Lo as radioUncheckedIconCss,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parseDate } from '@ark-ui/react/date-picker';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SerendiePreset as e } from "./preset.js";
|
|
2
2
|
import { Accordion as a } from "./components/Accordion/Accordion.js";
|
|
3
3
|
import { AccordionGroup as m } from "./components/Accordion/AccordionGroup.js";
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { Badge as
|
|
4
|
+
import { Avatar as i, AvatarStyle as n } from "./components/Avatar/Avatar.js";
|
|
5
|
+
import { Badge as s, BadgeCloseButton as c, BadgeStyle as l } from "./components/Badge/Badge.js";
|
|
6
6
|
import { Banner as h } from "./components/Banner/Banner.js";
|
|
7
7
|
import { BottomNavigation as S } from "./components/BottomNavigation/BottomNavigation.js";
|
|
8
8
|
import { BottomNavigationItem as g, BottomNavigationItemStyle as y } from "./components/BottomNavigation/BottomNavigationItem.js";
|
|
9
9
|
import { Button as I, ButtonStyle as T } from "./components/Button/Button.js";
|
|
10
|
-
import { SerendieChartTheme as
|
|
11
|
-
import { compactChartMargin as
|
|
10
|
+
import { SerendieChartTheme as D } from "./components/Chart/SerendieChartTheme.js";
|
|
11
|
+
import { compactChartMargin as k, defaultChartMargin as v, getChartColor as M, getChartColors as w, legendChartMargin as A, spaciousChartMargin as L, useBarChartProps as N, useChartProps as R, useLineChartProps as F, usePieChartProps as G } from "./components/Chart/SerendieChartProps.js";
|
|
12
12
|
import { CheckBox as W, CheckBoxStyle as j, checkboxCheckedIconCss as q, checkboxIconCss as z, checkboxUncheckedIconCss as E } from "./components/CheckBox/CheckBox.js";
|
|
13
13
|
import { ChoiceBox as J, ChoiceBoxStyle as K } from "./components/ChoiceBox/ChoiceBox.js";
|
|
14
14
|
import { DashboardWidget as Q } from "./components/DashboardWidget/DashboardWidget.js";
|
|
@@ -17,14 +17,14 @@ import { DatePicker as Z } from "./components/DatePicker/DatePicker.js";
|
|
|
17
17
|
import { Divider as $, DividerStyle as oo } from "./components/Divider/Divider.js";
|
|
18
18
|
import { Drawer as eo } from "./components/Drawer/Drawer.js";
|
|
19
19
|
import { DropdownMenu as ao, DropdownMenuStyle as po } from "./components/DropdownMenu/DropdownMenu.js";
|
|
20
|
-
import { IconButton as
|
|
20
|
+
import { IconButton as xo, IconButtonStyle as io } from "./components/IconButton/IconButton.js";
|
|
21
21
|
import { List as fo } from "./components/List/List.js";
|
|
22
|
-
import { ListItem as
|
|
22
|
+
import { ListItem as co, ListItemStyle as lo } from "./components/List/ListItem.js";
|
|
23
23
|
import { ModalDialog as Co } from "./components/ModalDialog/ModalDialog.js";
|
|
24
24
|
import { NotificationBadge as Bo } from "./components/NotificationBadge/NotificationBadge.js";
|
|
25
25
|
import { Pagination as yo, PaginationStyle as uo } from "./components/Pagination/Pagination.js";
|
|
26
26
|
import { PasswordField as To } from "./components/PasswordField/PasswordField.js";
|
|
27
|
-
import { ProgressIndicator as
|
|
27
|
+
import { ProgressIndicator as Do, ProgressIndicatorStyle as bo } from "./components/ProgressIndicator/ProgressIndicator.js";
|
|
28
28
|
import { RadioButton as vo, RadioButtonStyle as Mo, radioCheckedIconCss as wo, radioIconCss as Ao, radioUncheckedIconCss as Lo } from "./components/RadioButton/RadioButton.js";
|
|
29
29
|
import { RadioGroup as Ro } from "./components/RadioButton/RadioGroup.js";
|
|
30
30
|
import { Search as Go, SearchStyle as Uo } from "./components/Search/Search.js";
|
|
@@ -36,15 +36,16 @@ import { TextArea as Zo } from "./components/TextArea/TextArea.js";
|
|
|
36
36
|
import { TextField as $o } from "./components/TextField/TextField.js";
|
|
37
37
|
import { Toast as rr, ToastStyle as er, toaster as tr } from "./components/Toast/Toast.js";
|
|
38
38
|
import { Tooltip as pr } from "./components/Tooltip/Tooltip.js";
|
|
39
|
-
import { TopAppBar as
|
|
39
|
+
import { TopAppBar as xr } from "./components/TopAppBar/TopAppBar.js";
|
|
40
40
|
import { DataTableComponent as nr } from "./components/DataTable/DataTableComponent.js";
|
|
41
|
+
import { parse as sr } from "./node_modules/@zag-js/date-picker/dist/index.js";
|
|
41
42
|
export {
|
|
42
43
|
a as Accordion,
|
|
43
44
|
m as AccordionGroup,
|
|
44
|
-
|
|
45
|
+
i as Avatar,
|
|
45
46
|
n as AvatarStyle,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
s as Badge,
|
|
48
|
+
c as BadgeCloseButton,
|
|
48
49
|
l as BadgeStyle,
|
|
49
50
|
h as Banner,
|
|
50
51
|
S as BottomNavigation,
|
|
@@ -65,18 +66,18 @@ export {
|
|
|
65
66
|
eo as Drawer,
|
|
66
67
|
ao as DropdownMenu,
|
|
67
68
|
po as DropdownMenuStyle,
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
xo as IconButton,
|
|
70
|
+
io as IconButtonStyle,
|
|
70
71
|
fo as List,
|
|
71
|
-
|
|
72
|
+
co as ListItem,
|
|
72
73
|
lo as ListItemStyle,
|
|
73
74
|
Co as ModalDialog,
|
|
74
75
|
Bo as NotificationBadge,
|
|
75
76
|
yo as Pagination,
|
|
76
77
|
uo as PaginationStyle,
|
|
77
78
|
To as PasswordField,
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
Do as ProgressIndicator,
|
|
80
|
+
bo as ProgressIndicatorStyle,
|
|
80
81
|
vo as RadioButton,
|
|
81
82
|
Mo as RadioButtonStyle,
|
|
82
83
|
Ro as RadioGroup,
|
|
@@ -84,7 +85,7 @@ export {
|
|
|
84
85
|
Uo as SearchStyle,
|
|
85
86
|
jo as Select,
|
|
86
87
|
qo as SelectStyle,
|
|
87
|
-
|
|
88
|
+
D as SerendieChartTheme,
|
|
88
89
|
e as SerendiePreset,
|
|
89
90
|
Eo as Switch,
|
|
90
91
|
Ho as SwitchStyle,
|
|
@@ -97,15 +98,16 @@ export {
|
|
|
97
98
|
rr as Toast,
|
|
98
99
|
er as ToastStyle,
|
|
99
100
|
pr as Tooltip,
|
|
100
|
-
|
|
101
|
+
xr as TopAppBar,
|
|
101
102
|
q as checkboxCheckedIconCss,
|
|
102
103
|
z as checkboxIconCss,
|
|
103
104
|
E as checkboxUncheckedIconCss,
|
|
104
|
-
|
|
105
|
+
k as compactChartMargin,
|
|
105
106
|
v as defaultChartMargin,
|
|
106
107
|
M as getChartColor,
|
|
107
108
|
w as getChartColors,
|
|
108
109
|
A as legendChartMargin,
|
|
110
|
+
sr as parseDate,
|
|
109
111
|
wo as radioCheckedIconCss,
|
|
110
112
|
Ao as radioIconCss,
|
|
111
113
|
Lo as radioUncheckedIconCss,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CalendarDateTime as C, CalendarDate as U, ZonedDateTime as b } from "./CalendarDate.js";
|
|
2
2
|
import { constrain as M } from "./manipulation.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getExtendedYear as h, GregorianCalendar as p } from "./GregorianCalendar.js";
|
|
4
|
+
import { getLocalTimeZone as y, isEqualCalendar as v } from "./queries.js";
|
|
5
5
|
function u(e) {
|
|
6
|
-
e = $(e, new
|
|
7
|
-
let t =
|
|
6
|
+
e = $(e, new p());
|
|
7
|
+
let t = h(e.era, e.year);
|
|
8
8
|
return T(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
|
|
9
9
|
}
|
|
10
10
|
function T(e, t, n, r, o, a, c) {
|
|
@@ -60,8 +60,8 @@ function D(e, t, n = "compatible") {
|
|
|
60
60
|
let r = B(e);
|
|
61
61
|
if (t === "UTC") return u(r);
|
|
62
62
|
if (t === y() && n === "compatible") {
|
|
63
|
-
r = $(r, new
|
|
64
|
-
let l = /* @__PURE__ */ new Date(), s =
|
|
63
|
+
r = $(r, new p());
|
|
64
|
+
let l = /* @__PURE__ */ new Date(), s = h(r.era, r.year);
|
|
65
65
|
return l.setFullYear(s, r.month - 1, r.day), l.setHours(r.hour, r.minute, r.second, r.millisecond), l.getTime();
|
|
66
66
|
}
|
|
67
67
|
let o = u(r), a = i(o - d, t), c = i(o + d, t), f = F(r, t, o - a, o - c);
|
|
@@ -93,13 +93,13 @@ function g(e, t) {
|
|
|
93
93
|
return new b(o < 1 ? "BC" : "AD", o < 1 ? -o + 1 : o, a, c, t, n, f, l, s, w);
|
|
94
94
|
}
|
|
95
95
|
function S(e) {
|
|
96
|
-
return new
|
|
96
|
+
return new U(e.calendar, e.era, e.year, e.month, e.day);
|
|
97
97
|
}
|
|
98
98
|
function B(e, t) {
|
|
99
99
|
let n = 0, r = 0, o = 0, a = 0;
|
|
100
100
|
if ("timeZone" in e) ({ hour: n, minute: r, second: o, millisecond: a } = e);
|
|
101
101
|
else if ("hour" in e && !t) return e;
|
|
102
|
-
return t && ({ hour: n, minute: r, second: o, millisecond: a } = t), new
|
|
102
|
+
return t && ({ hour: n, minute: r, second: o, millisecond: a } = t), new C(e.calendar, e.era, e.year, e.month, e.day, n, r, o, a);
|
|
103
103
|
}
|
|
104
104
|
function $(e, t) {
|
|
105
105
|
if (v(e.calendar, t)) return e;
|
|
@@ -1,27 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CalendarDate as $ } from "./CalendarDate.js";
|
|
2
|
+
import { toCalendar as o } from "./conversion.js";
|
|
3
|
+
import { GregorianCalendar as c } from "./GregorianCalendar.js";
|
|
4
|
+
const f = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;
|
|
5
|
+
function u(a) {
|
|
6
|
+
let r = a.match(f);
|
|
7
|
+
if (!r) throw new Error("Invalid ISO 8601 date string: " + a);
|
|
8
|
+
let t = new $(n(r[1], 0, 9999), n(r[2], 1, 12), 1);
|
|
9
|
+
return t.day = n(r[3], 1, t.calendar.getDaysInMonth(t)), t;
|
|
10
|
+
}
|
|
11
|
+
function n(a, r, t) {
|
|
12
|
+
let e = Number(a);
|
|
13
|
+
if (e < r || e > t) throw new RangeError(`Value out of range: ${r} <= ${e} <= ${t}`);
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
3
16
|
function i(a) {
|
|
4
17
|
return `${String(a.hour).padStart(2, "0")}:${String(a.minute).padStart(2, "0")}:${String(a.second).padStart(2, "0")}${a.millisecond ? String(a.millisecond / 1e3).slice(1) : ""}`;
|
|
5
18
|
}
|
|
6
|
-
function
|
|
7
|
-
let
|
|
8
|
-
return
|
|
19
|
+
function d(a) {
|
|
20
|
+
let r = o(a, new c()), t;
|
|
21
|
+
return r.era === "BC" ? t = r.year === 1 ? "0000" : "-" + String(Math.abs(1 - r.year)).padStart(6, "00") : t = String(r.year).padStart(4, "0"), `${t}-${String(r.month).padStart(2, "0")}-${String(r.day).padStart(2, "0")}`;
|
|
9
22
|
}
|
|
10
|
-
function
|
|
11
|
-
return `${
|
|
23
|
+
function S(a) {
|
|
24
|
+
return `${d(a)}T${i(a)}`;
|
|
12
25
|
}
|
|
13
|
-
function
|
|
14
|
-
let
|
|
26
|
+
function g(a) {
|
|
27
|
+
let r = Math.sign(a) < 0 ? "-" : "+";
|
|
15
28
|
a = Math.abs(a);
|
|
16
|
-
let
|
|
17
|
-
return `${
|
|
29
|
+
let t = Math.floor(a / 36e5), e = a % 36e5 / 6e4;
|
|
30
|
+
return `${r}${String(t).padStart(2, "0")}:${String(e).padStart(2, "0")}`;
|
|
18
31
|
}
|
|
19
|
-
function
|
|
20
|
-
return `${
|
|
32
|
+
function b(a) {
|
|
33
|
+
return `${S(a)}${g(a.offset)}[${a.timeZone}]`;
|
|
21
34
|
}
|
|
22
35
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
S as dateTimeToString,
|
|
37
|
+
d as dateToString,
|
|
38
|
+
u as parseDate,
|
|
25
39
|
i as timeToString,
|
|
26
|
-
|
|
40
|
+
b as zonedDateTimeToString
|
|
27
41
|
};
|