@serendie/ui 2.1.3-dev.202509030422 → 2.1.3
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 +65 -67
- 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/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 +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 +156 -59
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/TopAppBar/TopAppBar.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +65 -67
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +12 -11
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +4 -5
- package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +1 -0
- 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 +235 -238
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +83 -88
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +67 -68
- package/dist/node_modules/@zag-js/anatomy/dist/index.js +14 -15
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +23 -23
- package/dist/node_modules/@zag-js/collection/dist/index.js +71 -102
- package/dist/node_modules/@zag-js/combobox/dist/index.js +426 -482
- package/dist/node_modules/@zag-js/dialog/dist/index.js +64 -66
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +69 -94
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +300 -359
- package/dist/node_modules/@zag-js/menu/dist/index.js +340 -357
- package/dist/node_modules/@zag-js/popper/dist/index.js +120 -123
- package/dist/node_modules/@zag-js/presence/dist/index.js +17 -17
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +117 -118
- package/dist/node_modules/@zag-js/react/dist/index.js +121 -124
- package/dist/node_modules/@zag-js/select/dist/index.js +197 -211
- package/dist/node_modules/@zag-js/store/dist/index.js +131 -0
- package/dist/node_modules/@zag-js/toast/dist/index.js +71 -73
- package/dist/node_modules/@zag-js/tooltip/dist/index.js +30 -31
- package/dist/node_modules/@zag-js/utils/dist/index.js +104 -150
- package/dist/node_modules/proxy-compare/dist/index.js +7 -0
- package/dist/preset.d.ts +1 -3
- package/dist/recipes/index.d.ts +2 -3
- package/dist/recipes/index.js +2 -5
- package/dist/styled-system/css/cva.js +38 -43
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/dist/components/DatePicker/DatePicker.d.ts +0 -13
- package/dist/components/DatePicker/DatePicker.js +0 -203
- package/dist/components/DatePicker/index.d.ts +0 -1
- package/dist/components/DatePicker/index.js +0 -4
- package/dist/components/DatePicker/styles.d.ts +0 -1
- package/dist/components/DatePicker/styles.js +0 -224
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +0 -15
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +0 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +0 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +0 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +0 -55
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +0 -19
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +0 -26
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +0 -16
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +0 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +0 -14
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +0 -23
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +0 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +0 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +0 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +0 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +0 -12
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +0 -18
- package/dist/node_modules/@internationalized/date/dist/CalendarDate.js +0 -178
- package/dist/node_modules/@internationalized/date/dist/DateFormatter.js +0 -99
- package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +0 -98
- package/dist/node_modules/@internationalized/date/dist/conversion.js +0 -135
- package/dist/node_modules/@internationalized/date/dist/manipulation.js +0 -205
- package/dist/node_modules/@internationalized/date/dist/queries.js +0 -202
- package/dist/node_modules/@internationalized/date/dist/string.js +0 -27
- package/dist/node_modules/@internationalized/date/dist/utils.js +0 -6
- package/dist/node_modules/@internationalized/date/dist/weekStartData.js +0 -100
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +0 -7
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.js +0 -7
- package/dist/node_modules/@zag-js/date-picker/dist/index.js +0 -1820
- package/dist/node_modules/@zag-js/date-utils/dist/index.js +0 -366
- package/dist/node_modules/@zag-js/live-region/dist/index.js +0 -39
- package/dist/recipes/textFieldRecipe.d.ts +0 -6
- package/dist/recipes/textFieldRecipe.js +0 -107
- package/dist/styled-system/recipes/create-recipe.js +0 -37
- package/dist/styled-system/recipes/text-field-recipe.js +0 -61
- package/styled-system/recipes/create-recipe.js +0 -82
- package/styled-system/recipes/index.d.ts +0 -2
- package/styled-system/recipes/index.js +0 -1
- package/styled-system/recipes/text-field-recipe.d.ts +0 -28
- package/styled-system/recipes/text-field-recipe.js +0 -72
package/dist/client.js
CHANGED
|
@@ -14,31 +14,30 @@ 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 {
|
|
41
|
-
import { DataTableComponent as nr } from "./components/DataTable/DataTableComponent.js";
|
|
17
|
+
import { Divider as Z, DividerStyle as _ } from "./components/Divider/Divider.js";
|
|
18
|
+
import { Drawer as oo } from "./components/Drawer/Drawer.js";
|
|
19
|
+
import { DropdownMenu as eo, DropdownMenuStyle as to } from "./components/DropdownMenu/DropdownMenu.js";
|
|
20
|
+
import { IconButton as po, IconButtonStyle as mo } from "./components/IconButton/IconButton.js";
|
|
21
|
+
import { List as xo } from "./components/List/List.js";
|
|
22
|
+
import { ListItem as co, ListItemStyle as fo } from "./components/List/ListItem.js";
|
|
23
|
+
import { ModalDialog as lo } from "./components/ModalDialog/ModalDialog.js";
|
|
24
|
+
import { NotificationBadge as Co } from "./components/NotificationBadge/NotificationBadge.js";
|
|
25
|
+
import { Pagination as Bo, PaginationStyle as go } from "./components/Pagination/Pagination.js";
|
|
26
|
+
import { PasswordField as uo } from "./components/PasswordField/PasswordField.js";
|
|
27
|
+
import { ProgressIndicator as To, ProgressIndicatorStyle as Po } from "./components/ProgressIndicator/ProgressIndicator.js";
|
|
28
|
+
import { RadioButton as ko, RadioButtonStyle as Do, radioCheckedIconCss as vo, radioIconCss as Mo, radioUncheckedIconCss as wo } from "./components/RadioButton/RadioButton.js";
|
|
29
|
+
import { RadioGroup as Lo } from "./components/RadioButton/RadioGroup.js";
|
|
30
|
+
import { Search as Ro, SearchStyle as Fo } from "./components/Search/Search.js";
|
|
31
|
+
import { Select as Uo, SelectStyle as Wo } from "./components/Select/Select.js";
|
|
32
|
+
import { Switch as qo, SwitchStyle as zo } from "./components/Switch/Switch.js";
|
|
33
|
+
import { Tabs as Ho, TabsStyle as Jo } from "./components/Tabs/Tabs.js";
|
|
34
|
+
import { TabItem as Oo, TabItemStyle as Qo } from "./components/Tabs/TabItem.js";
|
|
35
|
+
import { TextArea as Xo } from "./components/TextArea/TextArea.js";
|
|
36
|
+
import { TextField as Zo } from "./components/TextField/TextField.js";
|
|
37
|
+
import { Toast as $o, ToastStyle as or, toaster as rr } from "./components/Toast/Toast.js";
|
|
38
|
+
import { Tooltip as tr } from "./components/Tooltip/Tooltip.js";
|
|
39
|
+
import { TopAppBar as pr } from "./components/TopAppBar/TopAppBar.js";
|
|
40
|
+
import { DataTableComponent as ir } from "./components/DataTable/DataTableComponent.js";
|
|
42
41
|
export {
|
|
43
42
|
a as Accordion,
|
|
44
43
|
m as AccordionGroup,
|
|
@@ -59,46 +58,45 @@ export {
|
|
|
59
58
|
K as ChoiceBoxStyle,
|
|
60
59
|
Q as DashboardWidget,
|
|
61
60
|
X as DataTable,
|
|
62
|
-
|
|
63
|
-
Z as
|
|
64
|
-
|
|
65
|
-
oo as
|
|
66
|
-
eo as
|
|
67
|
-
|
|
68
|
-
po as
|
|
69
|
-
|
|
70
|
-
xo as
|
|
71
|
-
co as
|
|
72
|
-
|
|
73
|
-
lo as
|
|
74
|
-
Co as
|
|
75
|
-
Bo as
|
|
76
|
-
|
|
77
|
-
uo as
|
|
78
|
-
To as
|
|
79
|
-
|
|
80
|
-
ko as
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Ro as
|
|
84
|
-
|
|
85
|
-
Uo as
|
|
86
|
-
|
|
87
|
-
qo as SelectStyle,
|
|
61
|
+
ir as DataTableComponent,
|
|
62
|
+
Z as Divider,
|
|
63
|
+
_ as DividerStyle,
|
|
64
|
+
oo as Drawer,
|
|
65
|
+
eo as DropdownMenu,
|
|
66
|
+
to as DropdownMenuStyle,
|
|
67
|
+
po as IconButton,
|
|
68
|
+
mo as IconButtonStyle,
|
|
69
|
+
xo as List,
|
|
70
|
+
co as ListItem,
|
|
71
|
+
fo as ListItemStyle,
|
|
72
|
+
lo as ModalDialog,
|
|
73
|
+
Co as NotificationBadge,
|
|
74
|
+
Bo as Pagination,
|
|
75
|
+
go as PaginationStyle,
|
|
76
|
+
uo as PasswordField,
|
|
77
|
+
To as ProgressIndicator,
|
|
78
|
+
Po as ProgressIndicatorStyle,
|
|
79
|
+
ko as RadioButton,
|
|
80
|
+
Do as RadioButtonStyle,
|
|
81
|
+
Lo as RadioGroup,
|
|
82
|
+
Ro as Search,
|
|
83
|
+
Fo as SearchStyle,
|
|
84
|
+
Uo as Select,
|
|
85
|
+
Wo as SelectStyle,
|
|
88
86
|
b as SerendieChartTheme,
|
|
89
87
|
e as SerendiePreset,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
88
|
+
qo as Switch,
|
|
89
|
+
zo as SwitchStyle,
|
|
90
|
+
Oo as TabItem,
|
|
91
|
+
Qo as TabItemStyle,
|
|
92
|
+
Ho as Tabs,
|
|
93
|
+
Jo as TabsStyle,
|
|
94
|
+
Xo as TextArea,
|
|
95
|
+
Zo as TextField,
|
|
96
|
+
$o as Toast,
|
|
97
|
+
or as ToastStyle,
|
|
98
|
+
tr as Tooltip,
|
|
99
|
+
pr as TopAppBar,
|
|
102
100
|
q as checkboxCheckedIconCss,
|
|
103
101
|
z as checkboxIconCss,
|
|
104
102
|
E as checkboxUncheckedIconCss,
|
|
@@ -107,11 +105,11 @@ export {
|
|
|
107
105
|
M as getChartColor,
|
|
108
106
|
w as getChartColors,
|
|
109
107
|
A as legendChartMargin,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
vo as radioCheckedIconCss,
|
|
109
|
+
Mo as radioIconCss,
|
|
110
|
+
wo as radioUncheckedIconCss,
|
|
113
111
|
L as spaciousChartMargin,
|
|
114
|
-
|
|
112
|
+
rr as toaster,
|
|
115
113
|
N as useBarChartProps,
|
|
116
114
|
R as useChartProps,
|
|
117
115
|
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<"item" | "title" | "itemIndicator" | "icon" | "description", {
|
|
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<"image" | "root" | "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" | "title" | "icon" | "description", {
|
|
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<"icon" | "label" | "root" | "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?: "small" | "medium" | 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?: "small" | "medium" | undefined;
|
|
128
128
|
} & {
|
|
129
129
|
leftIcon?: never;
|
|
130
130
|
} & {
|
|
@@ -92,19 +92,19 @@ type CircleLargeProps = {
|
|
|
92
92
|
export declare const IconButton: React.ForwardRefExoticComponent<(Omit<{
|
|
93
93
|
shape?: "circle" | "rectangle" | undefined;
|
|
94
94
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
95
|
-
size?: "
|
|
95
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
96
96
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
97
97
|
icon: React.ReactElement;
|
|
98
98
|
} & RectangleProps, "ref"> | Omit<{
|
|
99
99
|
shape?: "circle" | "rectangle" | undefined;
|
|
100
100
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
101
|
-
size?: "
|
|
101
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
102
102
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
103
103
|
icon: React.ReactElement;
|
|
104
104
|
} & CircleProps, "ref"> | Omit<{
|
|
105
105
|
shape?: "circle" | "rectangle" | undefined;
|
|
106
106
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
107
|
-
size?: "
|
|
107
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
108
108
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
109
109
|
icon: React.ReactElement;
|
|
110
110
|
} & CircleLargeProps, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export declare const ListItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
2
|
+
export declare const ListItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"title" | "description" | "root" | "badge" | "leftIcon" | "rightIcon" | "wrapper" | "textGroup", {
|
|
3
3
|
isLargeLeftIcon: {
|
|
4
4
|
true: {
|
|
5
5
|
leftIcon: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialogRootProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
declare const ModalDialogStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "
|
|
3
|
+
declare const ModalDialogStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "title" | "description" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper", import('../../../styled-system/types').SlotRecipeVariantRecord<"content" | "title" | "description" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper">>;
|
|
4
4
|
type Props = {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
declare const NotificationBadgeStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
declare const NotificationBadgeStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"text" | "root", {
|
|
4
4
|
size: {
|
|
5
5
|
small: {
|
|
6
6
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, ComponentProps } from 'react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const PaginationStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const PaginationStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"item" | "root" | "ellipsis" | "prevTrigger" | "nextTrigger", {
|
|
4
4
|
size: {
|
|
5
5
|
medium: {
|
|
6
6
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComboboxRootProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const SearchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const SearchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "input" | "combobox" | "control" | "comboboxItem" | "iconBox" | "closeIcon", {
|
|
4
4
|
size: {
|
|
5
5
|
medium: {
|
|
6
6
|
iconBox: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectRootProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const SelectStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "
|
|
3
|
+
export declare const SelectStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "item" | "root" | "valueText" | "iconBox" | "trigger", {
|
|
4
4
|
size: {
|
|
5
5
|
medium: {
|
|
6
6
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Switch as ArkSwitch, SwitchRootProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const SwitchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const SwitchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb", import('../../../styled-system/types').SlotRecipeVariantRecord<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb">>;
|
|
4
4
|
type SwitchItemProps = {
|
|
5
5
|
label: string;
|
|
6
6
|
helperText?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Tabs as ArkTabs } from '@ark-ui/react';
|
|
2
|
-
export declare const TabsStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
2
|
+
export declare const TabsStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"list" | "root", import('../../../styled-system/types').SlotRecipeVariantRecord<"list" | "root">>;
|
|
3
3
|
export declare const Tabs: ({ children, className, ...props }: ArkTabs.RootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,92 +1,189 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { SerendieSymbolAlertCircle as
|
|
3
|
-
import
|
|
4
|
-
import m, { forwardRef as
|
|
5
|
-
import {
|
|
6
|
-
import { cx as
|
|
7
|
-
import { css as
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { SerendieSymbolAlertCircle as P, SerendieSymbolClose as j } from "@serendie/symbols";
|
|
3
|
+
import q from "../../node_modules/merge-refs/dist/esm/index.js";
|
|
4
|
+
import m, { forwardRef as L } from "react";
|
|
5
|
+
import { sva as M } from "../../styled-system/css/sva.js";
|
|
6
|
+
import { cx as A } from "../../styled-system/css/cx.js";
|
|
7
|
+
import { css as v } from "../../styled-system/css/css.js";
|
|
8
|
+
const S = M({
|
|
9
|
+
slots: [
|
|
10
|
+
"root",
|
|
11
|
+
"label",
|
|
12
|
+
"required",
|
|
13
|
+
"inputWrapper",
|
|
14
|
+
"leftContent",
|
|
15
|
+
"rightContent",
|
|
16
|
+
"input",
|
|
17
|
+
"icon",
|
|
18
|
+
"messageField",
|
|
19
|
+
"description",
|
|
20
|
+
"invalidMessage"
|
|
21
|
+
],
|
|
22
|
+
base: {
|
|
23
|
+
root: {
|
|
24
|
+
display: "inline-grid",
|
|
25
|
+
// 後から指定したCSSからwidthが上書きできないため、@layer componentsを指定
|
|
26
|
+
"@layer components": {
|
|
27
|
+
width: "min(100%, 300px)"
|
|
28
|
+
},
|
|
29
|
+
gridTemplateColumns: "auto",
|
|
30
|
+
rowGap: "sd.system.dimension.spacing.extraSmall",
|
|
31
|
+
textStyle: {
|
|
32
|
+
base: "sd.system.typography.body.medium_compact",
|
|
33
|
+
expanded: "sd.system.typography.body.medium_expanded"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
label: {
|
|
37
|
+
textStyle: {
|
|
38
|
+
base: "sd.system.typography.label.medium_compact",
|
|
39
|
+
expanded: "sd.system.typography.label.medium_expanded"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
inputWrapper: {
|
|
43
|
+
height: 48,
|
|
44
|
+
display: "grid",
|
|
45
|
+
gridTemplateColumns: "auto 1fr auto auto",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
outlineStyle: "solid",
|
|
48
|
+
outlineWidth: "sd.system.dimension.border.medium",
|
|
49
|
+
outlineColor: "sd.system.color.component.outline",
|
|
50
|
+
borderRadius: "sd.system.dimension.radius.medium",
|
|
51
|
+
backgroundColor: "sd.system.color.component.surface",
|
|
52
|
+
'&:has([data-focus="true"])': {
|
|
53
|
+
outlineWidth: "sd.system.dimension.border.thick",
|
|
54
|
+
outlineColor: "sd.system.color.impression.primary"
|
|
55
|
+
},
|
|
56
|
+
_focusWithin: {
|
|
57
|
+
outlineWidth: "sd.system.dimension.border.thick",
|
|
58
|
+
outlineColor: "sd.system.color.impression.primary"
|
|
59
|
+
},
|
|
60
|
+
_disabled: {
|
|
61
|
+
backgroundColor: "sd.system.color.interaction.disabled",
|
|
62
|
+
cursor: "not-allowed"
|
|
63
|
+
},
|
|
64
|
+
_invalid: {
|
|
65
|
+
outlineColor: "sd.system.color.impression.negative"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
leftContent: {
|
|
69
|
+
paddingLeft: "sd.system.dimension.spacing.medium"
|
|
70
|
+
},
|
|
71
|
+
rightContent: {
|
|
72
|
+
paddingRight: "sd.system.dimension.spacing.medium"
|
|
73
|
+
},
|
|
74
|
+
input: {
|
|
75
|
+
outline: "none",
|
|
76
|
+
paddingTop: "sd.system.dimension.spacing.extraSmall",
|
|
77
|
+
paddingRight: "sd.system.dimension.spacing.twoExtraSmall",
|
|
78
|
+
paddingBottom: "sd.system.dimension.spacing.extraSmall",
|
|
79
|
+
paddingLeft: "sd.system.dimension.spacing.medium"
|
|
80
|
+
},
|
|
81
|
+
icon: {
|
|
82
|
+
display: "grid",
|
|
83
|
+
placeItems: "center",
|
|
84
|
+
w: "48px",
|
|
85
|
+
h: "48px",
|
|
86
|
+
expanded: {
|
|
87
|
+
w: "44px",
|
|
88
|
+
h: "44px"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
required: {
|
|
92
|
+
pl: "sd.system.dimension.spacing.extraSmall",
|
|
93
|
+
color: "sd.system.color.impression.negative"
|
|
94
|
+
},
|
|
95
|
+
messageField: {
|
|
96
|
+
textStyle: {
|
|
97
|
+
base: "sd.system.typography.body.extraSmall_compact",
|
|
98
|
+
expanded: "sd.system.typography.body.extraSmall_expanded"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
invalidMessage: {
|
|
102
|
+
color: "sd.system.color.impression.negative"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}), K = L(
|
|
9
106
|
({
|
|
10
|
-
placeholder:
|
|
11
|
-
label:
|
|
12
|
-
description:
|
|
13
|
-
required:
|
|
14
|
-
invalidMessage:
|
|
15
|
-
invalid:
|
|
16
|
-
type:
|
|
17
|
-
disabled:
|
|
18
|
-
onChange:
|
|
19
|
-
value:
|
|
20
|
-
className:
|
|
21
|
-
leftContent:
|
|
22
|
-
rightContent:
|
|
23
|
-
...
|
|
107
|
+
placeholder: C,
|
|
108
|
+
label: c,
|
|
109
|
+
description: a,
|
|
110
|
+
required: p,
|
|
111
|
+
invalidMessage: d,
|
|
112
|
+
invalid: o,
|
|
113
|
+
type: N = "text",
|
|
114
|
+
disabled: l,
|
|
115
|
+
onChange: u,
|
|
116
|
+
value: y,
|
|
117
|
+
className: _,
|
|
118
|
+
leftContent: g,
|
|
119
|
+
rightContent: h,
|
|
120
|
+
...t
|
|
24
121
|
}, w) => {
|
|
25
|
-
const
|
|
26
|
-
var
|
|
27
|
-
const
|
|
122
|
+
const r = m.useRef(null), R = q(r, w), [F, W] = S.splitVariantProps(t), s = S(F), k = a || o && d, [T, V] = m.useState(t.defaultValue || y), x = t.id || m.useId(), I = () => {
|
|
123
|
+
var b;
|
|
124
|
+
const i = {
|
|
28
125
|
target: { value: "" }
|
|
29
126
|
};
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
127
|
+
f(i), (b = t.onReset) == null || b.call(t, i), r.current && (r.current.value = "");
|
|
128
|
+
}, f = (i) => {
|
|
129
|
+
V(i.target.value), u && u(i);
|
|
33
130
|
};
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
131
|
+
return /* @__PURE__ */ n("div", { className: A(s.root, _), children: [
|
|
132
|
+
c ? /* @__PURE__ */ n("label", { className: s.label, htmlFor: x, children: [
|
|
133
|
+
c,
|
|
134
|
+
p && /* @__PURE__ */ e("span", { className: s.required, children: "必須" })
|
|
38
135
|
] }) : null,
|
|
39
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ n(
|
|
40
137
|
"div",
|
|
41
138
|
{
|
|
42
|
-
className:
|
|
43
|
-
"data-invalid":
|
|
44
|
-
"data-disabled":
|
|
139
|
+
className: s.inputWrapper,
|
|
140
|
+
"data-invalid": o ? !0 : void 0,
|
|
141
|
+
"data-disabled": l ? !0 : void 0,
|
|
45
142
|
children: [
|
|
46
|
-
|
|
143
|
+
g ? /* @__PURE__ */ e("div", { className: s.leftContent, children: g }) : /* @__PURE__ */ e("div", {}),
|
|
47
144
|
/* @__PURE__ */ e(
|
|
48
145
|
"input",
|
|
49
146
|
{
|
|
50
|
-
ref:
|
|
51
|
-
id:
|
|
52
|
-
placeholder:
|
|
53
|
-
required:
|
|
54
|
-
disabled:
|
|
55
|
-
value:
|
|
56
|
-
type:
|
|
57
|
-
className:
|
|
58
|
-
onChange:
|
|
59
|
-
...
|
|
147
|
+
ref: R,
|
|
148
|
+
id: x,
|
|
149
|
+
placeholder: C,
|
|
150
|
+
required: p,
|
|
151
|
+
disabled: l,
|
|
152
|
+
value: y,
|
|
153
|
+
type: N,
|
|
154
|
+
className: s.input,
|
|
155
|
+
onChange: f,
|
|
156
|
+
...W
|
|
60
157
|
}
|
|
61
158
|
),
|
|
62
|
-
|
|
63
|
-
(
|
|
159
|
+
h ? /* @__PURE__ */ e("div", { className: s.rightContent, children: h }) : /* @__PURE__ */ e("div", { className: s.icon, children: !l && /* disabledの場合はアイコンを表示しない */
|
|
160
|
+
(o ? /* @__PURE__ */ e(
|
|
64
161
|
"span",
|
|
65
162
|
{
|
|
66
|
-
className:
|
|
163
|
+
className: v({
|
|
67
164
|
color: "sd.system.color.impression.negative"
|
|
68
165
|
}),
|
|
69
|
-
children: /* @__PURE__ */ e(
|
|
166
|
+
children: /* @__PURE__ */ e(P, { width: 20, height: 20 })
|
|
70
167
|
}
|
|
71
|
-
) :
|
|
168
|
+
) : T ? /* @__PURE__ */ e(
|
|
72
169
|
"button",
|
|
73
170
|
{
|
|
74
|
-
className:
|
|
75
|
-
onClick:
|
|
171
|
+
className: v({ cursor: "pointer" }),
|
|
172
|
+
onClick: I,
|
|
76
173
|
"aria-label": "値をクリア",
|
|
77
|
-
children: /* @__PURE__ */ e(
|
|
174
|
+
children: /* @__PURE__ */ e(j, { width: 20, height: 20 })
|
|
78
175
|
}
|
|
79
176
|
) : null) })
|
|
80
177
|
]
|
|
81
178
|
}
|
|
82
179
|
),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
180
|
+
k && /* @__PURE__ */ n("div", { className: s.messageField, children: [
|
|
181
|
+
a && /* @__PURE__ */ e("p", { className: s.description, children: a }),
|
|
182
|
+
o && d && /* @__PURE__ */ e("p", { className: s.invalidMessage, children: d })
|
|
86
183
|
] })
|
|
87
184
|
] });
|
|
88
185
|
}
|
|
89
186
|
);
|
|
90
187
|
export {
|
|
91
|
-
|
|
188
|
+
K as TextField
|
|
92
189
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createToaster } from '@ark-ui/react';
|
|
2
|
-
export declare const ToastStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
2
|
+
export declare const ToastStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "text" | "root" | "textGroup", {
|
|
3
3
|
variant: {
|
|
4
4
|
default: {
|
|
5
5
|
root: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
3
|
import { NotificationBadgeProps } from '../NotificationBadge';
|
|
4
|
-
declare const topAppBarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "left" | "
|
|
4
|
+
declare const topAppBarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "left" | "title" | "root" | "buttonContainer", {
|
|
5
5
|
type: {
|
|
6
6
|
navbar: {};
|
|
7
7
|
titleBar: {};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './components/CheckBox/index.ts';
|
|
|
10
10
|
export * from './components/ChoiceBox/index.ts';
|
|
11
11
|
export * from './components/DashboardWidget/index.ts';
|
|
12
12
|
export * from './components/DataTable/index.ts';
|
|
13
|
-
export * from './components/DatePicker/index.ts';
|
|
14
13
|
export * from './components/Divider/index.ts';
|
|
15
14
|
export * from './components/Drawer/index.ts';
|
|
16
15
|
export * from './components/DropdownMenu/index.ts';
|