@serendie/ui 2.1.2 → 2.1.3-dev.202509030422
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 +67 -65
- 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/DatePicker/DatePicker.d.ts +13 -0
- package/dist/components/DatePicker/DatePicker.js +203 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.js +4 -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/Search/Search.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +3 -2
- 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 +67 -65
- 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 +27 -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 +1820 -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 +3 -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/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/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
|
@@ -14,30 +14,31 @@ import { CheckBox as W, CheckBoxStyle as j, checkboxCheckedIconCss as q, checkbo
|
|
|
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 co } from "./components/List/List.js";
|
|
23
|
+
import { ListItem as so, 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 yo, PaginationStyle as uo } from "./components/Pagination/Pagination.js";
|
|
27
|
+
import { PasswordField as To } from "./components/PasswordField/PasswordField.js";
|
|
28
|
+
import { ProgressIndicator as bo, ProgressIndicatorStyle as ko } from "./components/ProgressIndicator/ProgressIndicator.js";
|
|
29
|
+
import { RadioButton as vo, RadioButtonStyle as Mo, radioCheckedIconCss as wo, radioIconCss as Ao, radioUncheckedIconCss as Lo } from "./components/RadioButton/RadioButton.js";
|
|
30
|
+
import { RadioGroup as Ro } from "./components/RadioButton/RadioGroup.js";
|
|
31
|
+
import { Search as Go, SearchStyle as Uo } from "./components/Search/Search.js";
|
|
32
|
+
import { Select as jo, SelectStyle as qo } from "./components/Select/Select.js";
|
|
33
|
+
import { Switch as Eo, SwitchStyle as Ho } from "./components/Switch/Switch.js";
|
|
34
|
+
import { Tabs as Ko, TabsStyle as Oo } from "./components/Tabs/Tabs.js";
|
|
35
|
+
import { TabItem as Vo, TabItemStyle as Xo } from "./components/Tabs/TabItem.js";
|
|
36
|
+
import { TextArea as Zo } from "./components/TextArea/TextArea.js";
|
|
37
|
+
import { TextField as $o } from "./components/TextField/TextField.js";
|
|
38
|
+
import { Toast as rr, ToastStyle as er, toaster as tr } from "./components/Toast/Toast.js";
|
|
39
|
+
import { Tooltip as pr } from "./components/Tooltip/Tooltip.js";
|
|
40
|
+
import { TopAppBar as ir } from "./components/TopAppBar/TopAppBar.js";
|
|
41
|
+
import { DataTableComponent as nr } from "./components/DataTable/DataTableComponent.js";
|
|
41
42
|
export {
|
|
42
43
|
a as Accordion,
|
|
43
44
|
m as AccordionGroup,
|
|
@@ -58,45 +59,46 @@ export {
|
|
|
58
59
|
K as ChoiceBoxStyle,
|
|
59
60
|
Q as DashboardWidget,
|
|
60
61
|
X as DataTable,
|
|
61
|
-
|
|
62
|
-
Z as
|
|
63
|
-
|
|
64
|
-
oo as
|
|
65
|
-
eo as
|
|
66
|
-
|
|
67
|
-
po as
|
|
68
|
-
|
|
69
|
-
xo as
|
|
70
|
-
co as
|
|
71
|
-
|
|
72
|
-
lo as
|
|
73
|
-
Co as
|
|
74
|
-
Bo as
|
|
75
|
-
|
|
76
|
-
uo as
|
|
77
|
-
To as
|
|
78
|
-
|
|
79
|
-
ko as
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Ro as
|
|
83
|
-
|
|
84
|
-
Uo as
|
|
85
|
-
|
|
62
|
+
nr as DataTableComponent,
|
|
63
|
+
Z as DatePicker,
|
|
64
|
+
$ as Divider,
|
|
65
|
+
oo as DividerStyle,
|
|
66
|
+
eo as Drawer,
|
|
67
|
+
ao as DropdownMenu,
|
|
68
|
+
po as DropdownMenuStyle,
|
|
69
|
+
io as IconButton,
|
|
70
|
+
xo as IconButtonStyle,
|
|
71
|
+
co as List,
|
|
72
|
+
so as ListItem,
|
|
73
|
+
lo as ListItemStyle,
|
|
74
|
+
Co as ModalDialog,
|
|
75
|
+
Bo as NotificationBadge,
|
|
76
|
+
yo as Pagination,
|
|
77
|
+
uo as PaginationStyle,
|
|
78
|
+
To as PasswordField,
|
|
79
|
+
bo as ProgressIndicator,
|
|
80
|
+
ko as ProgressIndicatorStyle,
|
|
81
|
+
vo as RadioButton,
|
|
82
|
+
Mo as RadioButtonStyle,
|
|
83
|
+
Ro as RadioGroup,
|
|
84
|
+
Go as Search,
|
|
85
|
+
Uo as SearchStyle,
|
|
86
|
+
jo as Select,
|
|
87
|
+
qo as SelectStyle,
|
|
86
88
|
b as SerendieChartTheme,
|
|
87
89
|
e as SerendiePreset,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
Eo as Switch,
|
|
91
|
+
Ho as SwitchStyle,
|
|
92
|
+
Vo as TabItem,
|
|
93
|
+
Xo as TabItemStyle,
|
|
94
|
+
Ko as Tabs,
|
|
95
|
+
Oo as TabsStyle,
|
|
96
|
+
Zo as TextArea,
|
|
97
|
+
$o as TextField,
|
|
98
|
+
rr as Toast,
|
|
99
|
+
er as ToastStyle,
|
|
100
|
+
pr as Tooltip,
|
|
101
|
+
ir as TopAppBar,
|
|
100
102
|
q as checkboxCheckedIconCss,
|
|
101
103
|
z as checkboxIconCss,
|
|
102
104
|
E as checkboxUncheckedIconCss,
|
|
@@ -105,11 +107,11 @@ export {
|
|
|
105
107
|
M as getChartColor,
|
|
106
108
|
w as getChartColors,
|
|
107
109
|
A as legendChartMargin,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
wo as radioCheckedIconCss,
|
|
111
|
+
Ao as radioIconCss,
|
|
112
|
+
Lo as radioUncheckedIconCss,
|
|
111
113
|
L as spaciousChartMargin,
|
|
112
|
-
|
|
114
|
+
tr as toaster,
|
|
113
115
|
N as useBarChartProps,
|
|
114
116
|
R as useChartProps,
|
|
115
117
|
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
|
} & {
|
|
@@ -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 { DatePicker } from './DatePicker';
|
|
@@ -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">>;
|