@serendie/ui 2.1.3 → 2.2.0
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 +79 -74
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.js +22 -21
- package/dist/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/components/DatePicker/DatePicker.js +203 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +6 -0
- package/dist/components/DatePicker/parseDate.d.ts +1 -0
- package/dist/components/DatePicker/styles.d.ts +1 -0
- package/dist/components/DatePicker/styles.js +224 -0
- package/dist/components/IconButton/IconButton.d.ts +3 -3
- package/dist/components/List/ListItem.d.ts +1 -1
- package/dist/components/ModalDialog/ModalDialog.d.ts +1 -1
- package/dist/components/NotificationBadge/NotificationBadge.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/ProgressIndicator/AnimatedArc.d.ts +6 -0
- package/dist/components/ProgressIndicator/AnimatedArc.js +46 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +11 -29
- package/dist/components/ProgressIndicator/ProgressIndicator.js +201 -43
- package/dist/components/ProgressIndicator/ProgressIndicatorIndeterminate.d.ts +10 -0
- package/dist/components/ProgressIndicator/ProgressIndicatorIndeterminate.js +215 -0
- package/dist/components/ProgressIndicator/index.d.ts +4 -1
- package/dist/components/ProgressIndicator/index.js +3 -2
- package/dist/components/ProgressIndicator/util.d.ts +1 -0
- package/dist/components/ProgressIndicator/util.js +13 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/TextField/TextField.js +59 -156
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/TopAppBar/TopAppBar.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +80 -75
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +15 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +55 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +19 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +23 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +12 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +18 -0
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +11 -12
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +5 -4
- package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +36 -36
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +68 -67
- package/dist/node_modules/@internationalized/date/dist/CalendarDate.js +178 -0
- package/dist/node_modules/@internationalized/date/dist/DateFormatter.js +99 -0
- package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +98 -0
- package/dist/node_modules/@internationalized/date/dist/conversion.js +135 -0
- package/dist/node_modules/@internationalized/date/dist/manipulation.js +205 -0
- package/dist/node_modules/@internationalized/date/dist/queries.js +202 -0
- package/dist/node_modules/@internationalized/date/dist/string.js +41 -0
- package/dist/node_modules/@internationalized/date/dist/utils.js +6 -0
- package/dist/node_modules/@internationalized/date/dist/weekStartData.js +100 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +7 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/dist/node_modules/@zag-js/anatomy/dist/index.js +15 -14
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +23 -23
- package/dist/node_modules/@zag-js/collection/dist/index.js +102 -71
- package/dist/node_modules/@zag-js/combobox/dist/index.js +482 -426
- package/dist/node_modules/@zag-js/date-picker/dist/index.js +1826 -0
- package/dist/node_modules/@zag-js/date-utils/dist/index.js +366 -0
- package/dist/node_modules/@zag-js/dialog/dist/index.js +66 -64
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +94 -69
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +359 -300
- package/dist/node_modules/@zag-js/live-region/dist/index.js +39 -0
- package/dist/node_modules/@zag-js/menu/dist/index.js +357 -340
- package/dist/node_modules/@zag-js/popper/dist/index.js +123 -120
- package/dist/node_modules/@zag-js/presence/dist/index.js +17 -17
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +118 -117
- package/dist/node_modules/@zag-js/react/dist/index.js +124 -121
- package/dist/node_modules/@zag-js/select/dist/index.js +211 -197
- package/dist/node_modules/@zag-js/toast/dist/index.js +73 -71
- package/dist/node_modules/@zag-js/tooltip/dist/index.js +31 -30
- package/dist/node_modules/@zag-js/utils/dist/index.js +150 -104
- package/dist/preset.d.ts +11 -1
- package/dist/recipes/index.d.ts +3 -2
- package/dist/recipes/index.js +5 -2
- package/dist/recipes/textFieldRecipe.d.ts +6 -0
- package/dist/recipes/textFieldRecipe.js +107 -0
- package/dist/styled-system/css/cva.js +43 -38
- package/dist/styled-system/recipes/create-recipe.js +37 -0
- package/dist/styled-system/recipes/text-field-recipe.js +61 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/keyframes/index.d.ts +8 -0
- package/dist/tokens/keyframes/index.js +6 -2
- package/package.json +3 -3
- package/styled-system/recipes/create-recipe.js +82 -0
- package/styled-system/recipes/index.d.ts +2 -0
- package/styled-system/recipes/index.js +1 -0
- package/styled-system/recipes/text-field-recipe.d.ts +28 -0
- package/styled-system/recipes/text-field-recipe.js +72 -0
- package/styled-system/types/prop-type.d.ts +1 -1
- package/dist/node_modules/@zag-js/store/dist/index.js +0 -131
- package/dist/node_modules/proxy-compare/dist/index.js +0 -7
package/dist/client.js
CHANGED
|
@@ -3,53 +3,56 @@ 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
|
|
6
|
+
import { Badge as s, BadgeCloseButton as c, BadgeStyle as d } 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
|
-
import { BottomNavigationItem as g, BottomNavigationItemStyle as
|
|
9
|
+
import { BottomNavigationItem as g, BottomNavigationItemStyle as u } 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";
|
|
16
16
|
import { DataTable as X } from "./components/DataTable/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
17
|
+
import { DatePicker as Z } from "./components/DatePicker/DatePicker.js";
|
|
18
|
+
import { Divider as $, DividerStyle as oo } from "./components/Divider/Divider.js";
|
|
19
|
+
import { Drawer as eo } from "./components/Drawer/Drawer.js";
|
|
20
|
+
import { DropdownMenu as ao, DropdownMenuStyle as po } from "./components/DropdownMenu/DropdownMenu.js";
|
|
21
|
+
import { IconButton as io, IconButtonStyle as xo } from "./components/IconButton/IconButton.js";
|
|
22
|
+
import { List as fo } from "./components/List/List.js";
|
|
23
|
+
import { ListItem as co, ListItemStyle as lo } from "./components/List/ListItem.js";
|
|
24
|
+
import { ModalDialog as Co } from "./components/ModalDialog/ModalDialog.js";
|
|
25
|
+
import { NotificationBadge as Bo } from "./components/NotificationBadge/NotificationBadge.js";
|
|
26
|
+
import { Pagination as uo, PaginationStyle as yo } from "./components/Pagination/Pagination.js";
|
|
27
|
+
import { PasswordField as To } from "./components/PasswordField/PasswordField.js";
|
|
28
|
+
import { ProgressIndicator as Do } from "./components/ProgressIndicator/ProgressIndicator.js";
|
|
29
|
+
import { ProgressIndicatorIndeterminate as ko } from "./components/ProgressIndicator/ProgressIndicatorIndeterminate.js";
|
|
30
|
+
import { RadioButton as Mo, RadioButtonStyle as wo, radioCheckedIconCss as Ao, radioIconCss as Lo, radioUncheckedIconCss as No } from "./components/RadioButton/RadioButton.js";
|
|
31
|
+
import { RadioGroup as Fo } from "./components/RadioButton/RadioGroup.js";
|
|
32
|
+
import { Search as Uo, SearchStyle as Wo } from "./components/Search/Search.js";
|
|
33
|
+
import { Select as qo, SelectStyle as zo } from "./components/Select/Select.js";
|
|
34
|
+
import { Switch as Ho, SwitchStyle as Jo } from "./components/Switch/Switch.js";
|
|
35
|
+
import { Tabs as Oo, TabsStyle as Qo } from "./components/Tabs/Tabs.js";
|
|
36
|
+
import { TabItem as Xo, TabItemStyle as Yo } from "./components/Tabs/TabItem.js";
|
|
37
|
+
import { TextArea as _o } from "./components/TextArea/TextArea.js";
|
|
38
|
+
import { TextField as or } from "./components/TextField/TextField.js";
|
|
39
|
+
import { Toast as er, ToastStyle as tr, toaster as ar } from "./components/Toast/Toast.js";
|
|
40
|
+
import { Tooltip as mr } from "./components/Tooltip/Tooltip.js";
|
|
41
|
+
import { TopAppBar as xr } from "./components/TopAppBar/TopAppBar.js";
|
|
42
|
+
import { DataTableComponent as fr } from "./components/DataTable/DataTableComponent.js";
|
|
43
|
+
import { parse as cr } from "./node_modules/@zag-js/date-picker/dist/index.js";
|
|
41
44
|
export {
|
|
42
45
|
a as Accordion,
|
|
43
46
|
m as AccordionGroup,
|
|
44
47
|
x as Avatar,
|
|
45
48
|
n as AvatarStyle,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
s as Badge,
|
|
50
|
+
c as BadgeCloseButton,
|
|
51
|
+
d as BadgeStyle,
|
|
49
52
|
h as Banner,
|
|
50
53
|
S as BottomNavigation,
|
|
51
54
|
g as BottomNavigationItem,
|
|
52
|
-
|
|
55
|
+
u as BottomNavigationItemStyle,
|
|
53
56
|
I as Button,
|
|
54
57
|
T as ButtonStyle,
|
|
55
58
|
W as CheckBox,
|
|
@@ -58,58 +61,60 @@ export {
|
|
|
58
61
|
K as ChoiceBoxStyle,
|
|
59
62
|
Q as DashboardWidget,
|
|
60
63
|
X as DataTable,
|
|
61
|
-
|
|
62
|
-
Z as
|
|
63
|
-
|
|
64
|
-
oo as
|
|
65
|
-
eo as
|
|
66
|
-
|
|
67
|
-
po as
|
|
68
|
-
|
|
69
|
-
xo as
|
|
64
|
+
fr as DataTableComponent,
|
|
65
|
+
Z as DatePicker,
|
|
66
|
+
$ as Divider,
|
|
67
|
+
oo as DividerStyle,
|
|
68
|
+
eo as Drawer,
|
|
69
|
+
ao as DropdownMenu,
|
|
70
|
+
po as DropdownMenuStyle,
|
|
71
|
+
io as IconButton,
|
|
72
|
+
xo as IconButtonStyle,
|
|
73
|
+
fo as List,
|
|
70
74
|
co as ListItem,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
75
|
+
lo as ListItemStyle,
|
|
76
|
+
Co as ModalDialog,
|
|
77
|
+
Bo as NotificationBadge,
|
|
78
|
+
uo as Pagination,
|
|
79
|
+
yo as PaginationStyle,
|
|
80
|
+
To as PasswordField,
|
|
81
|
+
Do as ProgressIndicator,
|
|
82
|
+
ko as ProgressIndicatorIndeterminate,
|
|
83
|
+
Mo as RadioButton,
|
|
84
|
+
wo as RadioButtonStyle,
|
|
85
|
+
Fo as RadioGroup,
|
|
86
|
+
Uo as Search,
|
|
87
|
+
Wo as SearchStyle,
|
|
88
|
+
qo as Select,
|
|
89
|
+
zo as SelectStyle,
|
|
90
|
+
D as SerendieChartTheme,
|
|
87
91
|
e as SerendiePreset,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
Ho as Switch,
|
|
93
|
+
Jo as SwitchStyle,
|
|
94
|
+
Xo as TabItem,
|
|
95
|
+
Yo as TabItemStyle,
|
|
96
|
+
Oo as Tabs,
|
|
97
|
+
Qo as TabsStyle,
|
|
98
|
+
_o as TextArea,
|
|
99
|
+
or as TextField,
|
|
100
|
+
er as Toast,
|
|
101
|
+
tr as ToastStyle,
|
|
102
|
+
mr as Tooltip,
|
|
103
|
+
xr as TopAppBar,
|
|
100
104
|
q as checkboxCheckedIconCss,
|
|
101
105
|
z as checkboxIconCss,
|
|
102
106
|
E as checkboxUncheckedIconCss,
|
|
103
|
-
|
|
107
|
+
k as compactChartMargin,
|
|
104
108
|
v as defaultChartMargin,
|
|
105
109
|
M as getChartColor,
|
|
106
110
|
w as getChartColors,
|
|
107
111
|
A as legendChartMargin,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
cr as parseDate,
|
|
113
|
+
Ao as radioCheckedIconCss,
|
|
114
|
+
Lo as radioIconCss,
|
|
115
|
+
No as radioUncheckedIconCss,
|
|
111
116
|
L as spaciousChartMargin,
|
|
112
|
-
|
|
117
|
+
ar as toaster,
|
|
113
118
|
N as useBarChartProps,
|
|
114
119
|
R as useChartProps,
|
|
115
120
|
F as useLineChartProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccordionItemProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/types';
|
|
3
|
-
declare const AccordionStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
declare const AccordionStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "description" | "item" | "title" | "itemIndicator", {
|
|
4
4
|
isLeftIcon: {
|
|
5
5
|
true: {
|
|
6
6
|
item: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AvatarRootProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const AvatarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const AvatarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "image" | "fallback", {
|
|
4
4
|
size: {
|
|
5
5
|
small: {
|
|
6
6
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
declare const BannerStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "
|
|
3
|
+
declare const BannerStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "icon" | "description" | "title", {
|
|
4
4
|
type: {
|
|
5
5
|
information: {
|
|
6
6
|
container: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const BottomNavigationItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const BottomNavigationItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "label" | "icon" | "iconGroup" | "badge", {
|
|
4
4
|
isActive: {
|
|
5
5
|
true: {
|
|
6
6
|
label: {
|
|
@@ -117,14 +117,14 @@ type ButtonLoadingProps = {
|
|
|
117
117
|
};
|
|
118
118
|
export declare const Button: React.ForwardRefExoticComponent<(Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
119
119
|
styleType?: "filled" | "outlined" | "ghost" | "rectangle" | undefined;
|
|
120
|
-
size?: "
|
|
120
|
+
size?: "medium" | "small" | undefined;
|
|
121
121
|
} & {
|
|
122
122
|
leftIcon?: React.ReactElement;
|
|
123
123
|
} & {
|
|
124
124
|
rightIcon?: never;
|
|
125
125
|
} & ButtonLoadingProps, "ref"> | Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
126
126
|
styleType?: "filled" | "outlined" | "ghost" | "rectangle" | undefined;
|
|
127
|
-
size?: "
|
|
127
|
+
size?: "medium" | "small" | undefined;
|
|
128
128
|
} & {
|
|
129
129
|
leftIcon?: never;
|
|
130
130
|
} & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as g, jsx as
|
|
1
|
+
import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import b from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { ProgressIndicatorIndeterminate as f } from "../ProgressIndicator/ProgressIndicatorIndeterminate.js";
|
|
4
4
|
import { cva as h } from "../../styled-system/css/cva.js";
|
|
5
5
|
import { css as x } from "../../styled-system/css/css.js";
|
|
6
6
|
import { cx as _ } from "../../styled-system/css/cx.js";
|
|
7
7
|
import { styled as v } from "../../styled-system/jsx/factory.js";
|
|
8
|
-
const
|
|
8
|
+
const d = {
|
|
9
9
|
color: "sd.system.color.component.onSurface",
|
|
10
10
|
outlineWidth: "sd.system.dimension.border.medium",
|
|
11
11
|
outlineStyle: "solid",
|
|
@@ -25,7 +25,7 @@ const r = {
|
|
|
25
25
|
color: "sd.system.color.interaction.disabledOnSurface",
|
|
26
26
|
outline: "none"
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, a = h({
|
|
29
29
|
base: {
|
|
30
30
|
borderRadius: "sd.system.dimension.radius.full",
|
|
31
31
|
position: "relative",
|
|
@@ -87,9 +87,9 @@ const r = {
|
|
|
87
87
|
color: "sd.system.color.interaction.disabledOnSurface"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
outlined:
|
|
90
|
+
outlined: d,
|
|
91
91
|
rectangle: {
|
|
92
|
-
...
|
|
92
|
+
...d,
|
|
93
93
|
borderRadius: "sd.system.dimension.radius.medium"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
@@ -118,18 +118,18 @@ const r = {
|
|
|
118
118
|
styleType: "filled",
|
|
119
119
|
size: "medium"
|
|
120
120
|
}
|
|
121
|
-
}),
|
|
121
|
+
}), i = v("span", {
|
|
122
122
|
base: {
|
|
123
123
|
position: "relative",
|
|
124
124
|
zIndex: "sd.system.elevation.zIndex.base"
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
127
|
-
(
|
|
126
|
+
}), R = b.forwardRef(
|
|
127
|
+
(n, l) => {
|
|
128
128
|
const [
|
|
129
|
-
|
|
129
|
+
r,
|
|
130
130
|
{ children: m, leftIcon: e, rightIcon: s, isLoading: t, className: c, ...y }
|
|
131
|
-
] =
|
|
132
|
-
e || s ?
|
|
131
|
+
] = a.splitVariantProps(n), p = a(r), u = x(
|
|
132
|
+
e || s ? n.size === "medium" ? {
|
|
133
133
|
//アイコンがある側 `spacing.medium`、無い側は`spacing.extraLarge`
|
|
134
134
|
paddingLeft: e ? "sd.system.dimension.spacing.medium" : "sd.system.dimension.spacing.extraLarge",
|
|
135
135
|
paddingRight: s ? "sd.system.dimension.spacing.medium" : "sd.system.dimension.spacing.extraLarge"
|
|
@@ -142,26 +142,27 @@ const r = {
|
|
|
142
142
|
return /* @__PURE__ */ g(
|
|
143
143
|
"button",
|
|
144
144
|
{
|
|
145
|
-
ref:
|
|
145
|
+
ref: l,
|
|
146
146
|
className: _(p, u, c),
|
|
147
147
|
...y,
|
|
148
148
|
children: [
|
|
149
|
-
t && /* @__PURE__ */
|
|
149
|
+
t && /* @__PURE__ */ o(
|
|
150
150
|
f,
|
|
151
151
|
{
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
type: "circular",
|
|
153
|
+
size: r.size || "medium",
|
|
154
|
+
color: "subtle"
|
|
154
155
|
}
|
|
155
156
|
),
|
|
156
|
-
!t && e && /* @__PURE__ */ i
|
|
157
|
-
/* @__PURE__ */ i
|
|
158
|
-
!t && s && /* @__PURE__ */ i
|
|
157
|
+
!t && e && /* @__PURE__ */ o(i, { p: "2px", children: e }),
|
|
158
|
+
/* @__PURE__ */ o(i, { children: m }),
|
|
159
|
+
!t && s && /* @__PURE__ */ o(i, { p: "2px", children: s })
|
|
159
160
|
]
|
|
160
161
|
}
|
|
161
162
|
);
|
|
162
163
|
}
|
|
163
164
|
);
|
|
164
165
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
R as Button,
|
|
167
|
+
a as ButtonStyle
|
|
167
168
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DatePickerRootProps } from '@ark-ui/react';
|
|
2
|
+
interface DatePickerProps extends DatePickerRootProps {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
invalid?: boolean;
|
|
7
|
+
invalidMessage?: string;
|
|
8
|
+
startPlaceholder?: string;
|
|
9
|
+
endPlaceholder?: string;
|
|
10
|
+
isCalendarOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const DatePicker: import('react').ForwardRefExoticComponent<DatePickerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as y } from "react/jsx-runtime";
|
|
2
|
+
import { SerendieSymbolCalendar as R, SerendieSymbolArrowRight as F, SerendieSymbolChevronDown as I, SerendieSymbolChevronLeft as W, SerendieSymbolChevronRight as O } from "@serendie/symbols";
|
|
3
|
+
import { forwardRef as j, useState as H } from "react";
|
|
4
|
+
import { datePickerStyles as C } from "./styles.js";
|
|
5
|
+
import { textFieldRecipe as A } from "../../styled-system/recipes/text-field-recipe.js";
|
|
6
|
+
import { Portal as L } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
|
|
7
|
+
import { DatePickerRoot as k } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js";
|
|
8
|
+
import { DatePickerLabel as V } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js";
|
|
9
|
+
import { DatePickerControl as q } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js";
|
|
10
|
+
import { cx as p } from "../../styled-system/css/cx.js";
|
|
11
|
+
import { DatePickerTrigger as B } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js";
|
|
12
|
+
import { css as t } from "../../styled-system/css/css.js";
|
|
13
|
+
import { DatePickerInput as h } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js";
|
|
14
|
+
import { DatePickerPositioner as J } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js";
|
|
15
|
+
import { DatePickerContent as Y } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js";
|
|
16
|
+
import { DatePickerView as _ } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js";
|
|
17
|
+
import { DatePickerContext as z } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js";
|
|
18
|
+
import { DatePickerViewControl as E } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js";
|
|
19
|
+
import { DatePickerYearSelect as G } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js";
|
|
20
|
+
import { DatePickerPrevTrigger as K } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js";
|
|
21
|
+
import { DatePickerMonthSelect as Q } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js";
|
|
22
|
+
import { DatePickerNextTrigger as U } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js";
|
|
23
|
+
import { DatePickerTable as X } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js";
|
|
24
|
+
import { DatePickerTableHead as Z } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js";
|
|
25
|
+
import { DatePickerTableRow as D } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js";
|
|
26
|
+
import { DatePickerTableHeader as $ } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js";
|
|
27
|
+
import { DatePickerTableBody as M } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js";
|
|
28
|
+
import { DatePickerTableCell as ee } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js";
|
|
29
|
+
import { DatePickerTableCellTrigger as re } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js";
|
|
30
|
+
const Ie = j(
|
|
31
|
+
({
|
|
32
|
+
placeholder: r = "日付を選択",
|
|
33
|
+
label: l,
|
|
34
|
+
required: m,
|
|
35
|
+
invalid: o,
|
|
36
|
+
invalidMessage: n,
|
|
37
|
+
selectionMode: s = "single",
|
|
38
|
+
startPlaceholder: v = "開始日",
|
|
39
|
+
endPlaceholder: x = "終了日",
|
|
40
|
+
locale: f = "ja-JP",
|
|
41
|
+
isCalendarOnly: S = !1,
|
|
42
|
+
...c
|
|
43
|
+
}, N) => {
|
|
44
|
+
const T = C(), i = A(), [g, d] = H(!1), w = s === "range";
|
|
45
|
+
return S ? /* @__PURE__ */ e(
|
|
46
|
+
k,
|
|
47
|
+
{
|
|
48
|
+
locale: f,
|
|
49
|
+
...c,
|
|
50
|
+
ref: N,
|
|
51
|
+
selectionMode: s,
|
|
52
|
+
open: !0,
|
|
53
|
+
className: i.root,
|
|
54
|
+
children: /* @__PURE__ */ e(b, {})
|
|
55
|
+
}
|
|
56
|
+
) : /* @__PURE__ */ a(
|
|
57
|
+
k,
|
|
58
|
+
{
|
|
59
|
+
locale: f,
|
|
60
|
+
...c,
|
|
61
|
+
ref: N,
|
|
62
|
+
selectionMode: s,
|
|
63
|
+
className: i.root,
|
|
64
|
+
open: g,
|
|
65
|
+
onOpenChange: (u) => {
|
|
66
|
+
var P;
|
|
67
|
+
d(u.open), (P = c.onOpenChange) == null || P.call(c, u);
|
|
68
|
+
},
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ a(y, { children: [
|
|
71
|
+
l && /* @__PURE__ */ a(V, { className: i.label, children: [
|
|
72
|
+
l,
|
|
73
|
+
m && /* @__PURE__ */ e("span", { className: i.labelRequired, children: "必須" })
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ a(
|
|
76
|
+
q,
|
|
77
|
+
{
|
|
78
|
+
className: p(
|
|
79
|
+
i.inputWrapper,
|
|
80
|
+
t({
|
|
81
|
+
_expanded: {
|
|
82
|
+
outlineWidth: "sd.system.dimension.border.thick",
|
|
83
|
+
outlineColor: "sd.system.color.impression.primary"
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
),
|
|
87
|
+
"data-expanded": g ? !0 : void 0,
|
|
88
|
+
"data-Invalid": o,
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ e("div", { className: i.leftContent, children: /* @__PURE__ */ e(B, { className: t({ display: "flex" }), children: /* @__PURE__ */ e(R, {}) }) }),
|
|
91
|
+
w ? /* @__PURE__ */ a(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
className: t({
|
|
95
|
+
display: "grid",
|
|
96
|
+
gridTemplateColumns: "1fr auto 1fr",
|
|
97
|
+
alignItems: "center"
|
|
98
|
+
}),
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
h,
|
|
102
|
+
{
|
|
103
|
+
index: 0,
|
|
104
|
+
placeholder: v,
|
|
105
|
+
className: p(
|
|
106
|
+
i.input,
|
|
107
|
+
t({
|
|
108
|
+
minWidth: "100%",
|
|
109
|
+
borderRadius: "sd.system.dimension.radius.medium"
|
|
110
|
+
})
|
|
111
|
+
),
|
|
112
|
+
onFocus: () => d(!0)
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ e(F, {}),
|
|
116
|
+
/* @__PURE__ */ e(
|
|
117
|
+
h,
|
|
118
|
+
{
|
|
119
|
+
index: 1,
|
|
120
|
+
placeholder: x,
|
|
121
|
+
className: p(
|
|
122
|
+
i.input,
|
|
123
|
+
t({
|
|
124
|
+
minWidth: "100%",
|
|
125
|
+
borderRadius: "sd.system.dimension.radius.medium"
|
|
126
|
+
})
|
|
127
|
+
),
|
|
128
|
+
onFocus: () => d(!0)
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
) : /* @__PURE__ */ e(
|
|
134
|
+
h,
|
|
135
|
+
{
|
|
136
|
+
placeholder: r,
|
|
137
|
+
className: i.input,
|
|
138
|
+
onFocus: () => d(!0)
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ e("div", {})
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
o && n && /* @__PURE__ */ e("div", { className: i.messageField, children: /* @__PURE__ */ e("p", { className: i.invalidMessage, children: n }) })
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(J, { className: T.positioner, children: /* @__PURE__ */ e(b, {}) }) })
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
), b = () => {
|
|
153
|
+
const r = C();
|
|
154
|
+
return /* @__PURE__ */ e(Y, { className: r.content, children: /* @__PURE__ */ e(_, { view: "day", className: r.view, children: /* @__PURE__ */ e(z, { children: (l) => /* @__PURE__ */ a(y, { children: [
|
|
155
|
+
/* @__PURE__ */ a(E, { className: r.viewControl, children: [
|
|
156
|
+
/* @__PURE__ */ a("div", { className: r.selectWrapper, children: [
|
|
157
|
+
/* @__PURE__ */ e(G, { className: r.select }),
|
|
158
|
+
/* @__PURE__ */ e(I, { className: r.selectIcon })
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ a("div", { className: t({ display: "flex", alignItems: "center" }), children: [
|
|
161
|
+
/* @__PURE__ */ e(K, { className: r.prevTrigger, children: /* @__PURE__ */ e(W, {}) }),
|
|
162
|
+
/* @__PURE__ */ e(
|
|
163
|
+
Q,
|
|
164
|
+
{
|
|
165
|
+
className: t({
|
|
166
|
+
appearance: "none",
|
|
167
|
+
textAlign: "center"
|
|
168
|
+
})
|
|
169
|
+
}
|
|
170
|
+
),
|
|
171
|
+
/* @__PURE__ */ e(U, { className: r.nextTrigger, children: /* @__PURE__ */ e(O, {}) })
|
|
172
|
+
] })
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ a(X, { className: r.table, children: [
|
|
175
|
+
/* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(D, { children: l.weekDays.map((m, o) => /* @__PURE__ */ e(
|
|
176
|
+
$,
|
|
177
|
+
{
|
|
178
|
+
className: r.tableHeader,
|
|
179
|
+
children: m.narrow
|
|
180
|
+
},
|
|
181
|
+
o
|
|
182
|
+
)) }) }),
|
|
183
|
+
/* @__PURE__ */ e(M, { children: l.weeks.map((m, o) => /* @__PURE__ */ e(D, { children: m.map((n, s) => /* @__PURE__ */ e(
|
|
184
|
+
ee,
|
|
185
|
+
{
|
|
186
|
+
value: n,
|
|
187
|
+
className: r.tableCell,
|
|
188
|
+
children: /* @__PURE__ */ e(
|
|
189
|
+
re,
|
|
190
|
+
{
|
|
191
|
+
className: r.tableCellTrigger,
|
|
192
|
+
children: n.day
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
},
|
|
196
|
+
s
|
|
197
|
+
)) }, o)) })
|
|
198
|
+
] })
|
|
199
|
+
] }) }) }) });
|
|
200
|
+
};
|
|
201
|
+
export {
|
|
202
|
+
Ie as DatePicker
|
|
203
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parseDate } from '@ark-ui/react/date-picker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const datePickerStyles: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "table" | "select" | "view" | "tableCell" | "positioner" | "viewControl" | "prevTrigger" | "nextTrigger" | "tableHeader" | "tableCellTrigger" | "selectWrapper" | "selectIcon", import('../../../styled-system/types').SlotRecipeVariantRecord<"content" | "table" | "select" | "view" | "tableCell" | "positioner" | "viewControl" | "prevTrigger" | "nextTrigger" | "tableHeader" | "tableCellTrigger" | "selectWrapper" | "selectIcon">>;
|