@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
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { sva as e } from "../../styled-system/css/sva.js";
|
|
2
|
+
const o = e({
|
|
3
|
+
slots: [
|
|
4
|
+
"positioner",
|
|
5
|
+
"content",
|
|
6
|
+
"view",
|
|
7
|
+
"viewControl",
|
|
8
|
+
"prevTrigger",
|
|
9
|
+
"nextTrigger",
|
|
10
|
+
"table",
|
|
11
|
+
"tableHeader",
|
|
12
|
+
"tableCell",
|
|
13
|
+
"tableCellTrigger",
|
|
14
|
+
"select",
|
|
15
|
+
"selectWrapper",
|
|
16
|
+
"selectIcon"
|
|
17
|
+
],
|
|
18
|
+
base: {
|
|
19
|
+
positioner: {
|
|
20
|
+
position: "relative",
|
|
21
|
+
zIndex: "sd.system.elevation.zIndex.dropdown"
|
|
22
|
+
},
|
|
23
|
+
content: {
|
|
24
|
+
background: "sd.system.color.component.surface",
|
|
25
|
+
borderRadius: "sd.system.dimension.radius.medium",
|
|
26
|
+
boxShadow: "sd.system.elevation.shadow.level1",
|
|
27
|
+
flexDirection: "column",
|
|
28
|
+
gap: "sd.system.dimension.spacing.small",
|
|
29
|
+
p: "sd.system.dimension.spacing.small",
|
|
30
|
+
width: "fit-content",
|
|
31
|
+
zIndex: "sd.system.elevation.zIndex.dropdown",
|
|
32
|
+
_open: {
|
|
33
|
+
display: "flex",
|
|
34
|
+
animation: "fadeIn 0.25s ease-out"
|
|
35
|
+
},
|
|
36
|
+
_closed: {
|
|
37
|
+
display: "none",
|
|
38
|
+
animation: "fadeOut 0.2s ease-out"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
view: {
|
|
42
|
+
display: "flex",
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
gap: "sd.system.dimension.spacing.small",
|
|
45
|
+
_hidden: {
|
|
46
|
+
display: "none"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
viewControl: {
|
|
50
|
+
display: "flex",
|
|
51
|
+
gap: "sd.system.dimension.spacing.extraSmall",
|
|
52
|
+
justifyContent: "space-between",
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
h: "40px",
|
|
55
|
+
px: "sd.system.dimension.spacing.twoExtraSmall"
|
|
56
|
+
},
|
|
57
|
+
select: {
|
|
58
|
+
appearance: "none",
|
|
59
|
+
paddingRight: "30px"
|
|
60
|
+
},
|
|
61
|
+
selectWrapper: {
|
|
62
|
+
position: "relative",
|
|
63
|
+
display: "flex",
|
|
64
|
+
justifyContent: "space-between",
|
|
65
|
+
alignItems: "center"
|
|
66
|
+
},
|
|
67
|
+
selectIcon: {
|
|
68
|
+
position: "absolute",
|
|
69
|
+
right: "0",
|
|
70
|
+
top: "50%",
|
|
71
|
+
transform: "translateY(-50%)",
|
|
72
|
+
pointerEvents: "none"
|
|
73
|
+
},
|
|
74
|
+
prevTrigger: {
|
|
75
|
+
alignItems: "center",
|
|
76
|
+
cursor: "pointer",
|
|
77
|
+
display: "inline-flex",
|
|
78
|
+
justifyContent: "center",
|
|
79
|
+
borderRadius: "sd.system.dimension.radius.medium",
|
|
80
|
+
color: "sd.system.color.component.onSurface",
|
|
81
|
+
_hover: {
|
|
82
|
+
bg: "sd.system.color.interaction.hoveredVariant"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
nextTrigger: {
|
|
86
|
+
alignItems: "center",
|
|
87
|
+
cursor: "pointer",
|
|
88
|
+
display: "inline-flex",
|
|
89
|
+
justifyContent: "center",
|
|
90
|
+
borderRadius: "sd.system.dimension.radius.medium",
|
|
91
|
+
color: "sd.system.color.component.onSurface",
|
|
92
|
+
_hover: {
|
|
93
|
+
bg: "sd.system.color.interaction.hoveredVariant"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
table: {
|
|
97
|
+
width: "full",
|
|
98
|
+
borderCollapse: "separate",
|
|
99
|
+
borderSpacing: "0"
|
|
100
|
+
},
|
|
101
|
+
tableHeader: {
|
|
102
|
+
color: "sd.system.color.component.onSurfaceVariant",
|
|
103
|
+
fontWeight: "normal",
|
|
104
|
+
h: "40px",
|
|
105
|
+
textStyle: "sd.system.typography.body.small_compact",
|
|
106
|
+
textAlign: "center"
|
|
107
|
+
},
|
|
108
|
+
tableCell: {
|
|
109
|
+
textAlign: "center",
|
|
110
|
+
p: "0",
|
|
111
|
+
position: "relative"
|
|
112
|
+
},
|
|
113
|
+
tableCellTrigger: {
|
|
114
|
+
alignItems: "center",
|
|
115
|
+
borderRadius: "sd.system.dimension.radius.full",
|
|
116
|
+
cursor: "pointer",
|
|
117
|
+
display: "inline-flex",
|
|
118
|
+
fontVariantNumeric: "tabular-nums",
|
|
119
|
+
justifyContent: "center",
|
|
120
|
+
h: "40px",
|
|
121
|
+
w: "40px",
|
|
122
|
+
position: "relative",
|
|
123
|
+
color: "sd.system.color.component.onSurface",
|
|
124
|
+
border: "none",
|
|
125
|
+
background: "transparent",
|
|
126
|
+
textStyle: "sd.system.typography.body.small_compact",
|
|
127
|
+
zIndex: "2",
|
|
128
|
+
_hover: {
|
|
129
|
+
_before: {
|
|
130
|
+
bg: "sd.system.color.interaction.hoveredVariant"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
_before: {
|
|
134
|
+
content: "''",
|
|
135
|
+
position: "absolute",
|
|
136
|
+
inset: "0",
|
|
137
|
+
zIndex: "-1",
|
|
138
|
+
borderRadius: "sd.system.dimension.radius.full"
|
|
139
|
+
},
|
|
140
|
+
_today: {
|
|
141
|
+
_before: {
|
|
142
|
+
borderWidth: "sd.system.dimension.border.medium",
|
|
143
|
+
borderColor: "sd.system.color.component.outline",
|
|
144
|
+
borderStyle: "solid"
|
|
145
|
+
},
|
|
146
|
+
"&[data-in-range]": {
|
|
147
|
+
_before: {
|
|
148
|
+
borderColor: "sd.reference.color.scale.white.1000"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"&[data-in-range]": {
|
|
153
|
+
bg: "sd.system.color.interaction.selectedSurface",
|
|
154
|
+
borderRadius: "0px"
|
|
155
|
+
},
|
|
156
|
+
"&[data-in-range]&[data-in-hover-range]": {
|
|
157
|
+
bg: "sd.system.color.interaction.hoveredVariant"
|
|
158
|
+
},
|
|
159
|
+
"&[data-hover-range-start]": {
|
|
160
|
+
bg: "sd.system.color.interaction.hoveredVariant",
|
|
161
|
+
borderTopLeftRadius: "sd.system.dimension.radius.full",
|
|
162
|
+
borderBottomLeftRadius: "sd.system.dimension.radius.full",
|
|
163
|
+
borderTopRightRadius: "0px",
|
|
164
|
+
borderBottomRightRadius: "0px"
|
|
165
|
+
},
|
|
166
|
+
"&[data-hover-range-end]": {
|
|
167
|
+
bg: "sd.system.color.interaction.hoveredVariant",
|
|
168
|
+
borderTopRightRadius: "sd.system.dimension.radius.full",
|
|
169
|
+
borderBottomRightRadius: "sd.system.dimension.radius.full",
|
|
170
|
+
borderTopLeftRadius: "0px",
|
|
171
|
+
borderBottomLeftRadius: "0px"
|
|
172
|
+
},
|
|
173
|
+
"&[data-hover-range-start]&[data-hover-range-end]": {
|
|
174
|
+
borderTopLeftRadius: "sd.system.dimension.radius.full",
|
|
175
|
+
borderBottomLeftRadius: "sd.system.dimension.radius.full",
|
|
176
|
+
borderTopRightRadius: "sd.system.dimension.radius.full",
|
|
177
|
+
borderBottomRightRadius: "sd.system.dimension.radius.full"
|
|
178
|
+
},
|
|
179
|
+
"&[data-range-start]": {
|
|
180
|
+
borderTopLeftRadius: "sd.system.dimension.radius.full",
|
|
181
|
+
borderBottomLeftRadius: "sd.system.dimension.radius.full"
|
|
182
|
+
},
|
|
183
|
+
"&[data-range-end]": {
|
|
184
|
+
borderTopRightRadius: "sd.system.dimension.radius.full",
|
|
185
|
+
borderBottomRightRadius: "sd.system.dimension.radius.full"
|
|
186
|
+
},
|
|
187
|
+
_selected: {
|
|
188
|
+
color: "sd.system.color.impression.onPrimaryContainer",
|
|
189
|
+
_hover: {
|
|
190
|
+
_before: {
|
|
191
|
+
background: "sd.system.color.impression.primaryContainer"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
_before: {
|
|
195
|
+
background: "sd.system.color.impression.primaryContainer"
|
|
196
|
+
},
|
|
197
|
+
zIndex: "100"
|
|
198
|
+
},
|
|
199
|
+
_disabled: {
|
|
200
|
+
color: "sd.system.color.interaction.disabledOnSurface",
|
|
201
|
+
cursor: "not-allowed",
|
|
202
|
+
_hover: {
|
|
203
|
+
_before: {
|
|
204
|
+
background: "transparent"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
_unavailable: {
|
|
209
|
+
color: "sd.system.color.interaction.disabledOnSurface",
|
|
210
|
+
cursor: "not-allowed",
|
|
211
|
+
textDecoration: "line-through",
|
|
212
|
+
_hover: {
|
|
213
|
+
_before: {
|
|
214
|
+
background: "transparent"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
defaultVariants: {}
|
|
221
|
+
});
|
|
222
|
+
export {
|
|
223
|
+
o as datePickerStyles
|
|
224
|
+
};
|
|
@@ -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?: "medium" | "small" | "large" | 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?: "medium" | "small" | "large" | 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?: "medium" | "small" | "large" | 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<"root" | "description" | "title" | "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" | "description" | "title" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper", import('../../../styled-system/types').SlotRecipeVariantRecord<"content" | "description" | "title" | "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<"root" | "text", {
|
|
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<"root" | "item" | "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<"input" | "icon" | "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" | "root" | "item" | "valueText" | "iconBox" | "trigger", {
|
|
4
4
|
size: {
|
|
5
5
|
medium: {
|
|
6
6
|
root: {
|
|
@@ -56,11 +56,12 @@ type Props = {
|
|
|
56
56
|
required?: boolean;
|
|
57
57
|
invalidMessage?: string;
|
|
58
58
|
items?: selectItem[];
|
|
59
|
+
collection?: SelectRootProps<selectItem>["collection"];
|
|
59
60
|
};
|
|
60
61
|
type selectItem = {
|
|
61
62
|
label: string;
|
|
62
63
|
value: string;
|
|
63
64
|
};
|
|
64
|
-
type SelectStyleProps = Props & SelectRootProps<selectItem> & RecipeVariantProps<typeof SelectStyle>;
|
|
65
|
+
type SelectStyleProps = Props & Omit<SelectRootProps<selectItem>, "collection"> & RecipeVariantProps<typeof SelectStyle>;
|
|
65
66
|
export declare const Select: React.FC<SelectStyleProps>;
|
|
66
67
|
export {};
|
|
@@ -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<"root" | "label" | "helperText" | "textGroup" | "control" | "thumb", import('../../../styled-system/types').SlotRecipeVariantRecord<"root" | "label" | "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<"root" | "list", import('../../../styled-system/types').SlotRecipeVariantRecord<"root" | "list">>;
|
|
3
3
|
export declare const Tabs: ({ children, className, ...props }: ArkTabs.RootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,189 +1,92 @@
|
|
|
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
|
|
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(
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { SerendieSymbolAlertCircle as A, SerendieSymbolClose as T } from "@serendie/symbols";
|
|
3
|
+
import W from "../../node_modules/merge-refs/dist/esm/index.js";
|
|
4
|
+
import m, { forwardRef as q } from "react";
|
|
5
|
+
import { textFieldRecipe as x } from "../../styled-system/recipes/text-field-recipe.js";
|
|
6
|
+
import { cx as z } from "../../styled-system/css/cx.js";
|
|
7
|
+
import { css as b } from "../../styled-system/css/css.js";
|
|
8
|
+
const L = q(
|
|
106
9
|
({
|
|
107
|
-
placeholder:
|
|
108
|
-
label:
|
|
109
|
-
description:
|
|
110
|
-
required:
|
|
111
|
-
invalidMessage:
|
|
112
|
-
invalid:
|
|
113
|
-
type:
|
|
114
|
-
disabled:
|
|
115
|
-
onChange:
|
|
116
|
-
value:
|
|
117
|
-
className:
|
|
118
|
-
leftContent:
|
|
119
|
-
rightContent:
|
|
120
|
-
...
|
|
10
|
+
placeholder: F,
|
|
11
|
+
label: d,
|
|
12
|
+
description: i,
|
|
13
|
+
required: u,
|
|
14
|
+
invalidMessage: c,
|
|
15
|
+
invalid: a,
|
|
16
|
+
type: S = "text",
|
|
17
|
+
disabled: n,
|
|
18
|
+
onChange: h,
|
|
19
|
+
value: f,
|
|
20
|
+
className: V,
|
|
21
|
+
leftContent: N,
|
|
22
|
+
rightContent: p,
|
|
23
|
+
...l
|
|
121
24
|
}, w) => {
|
|
122
|
-
const
|
|
123
|
-
var
|
|
124
|
-
const
|
|
25
|
+
const o = m.useRef(null), y = W(o, w), [C, P] = x.splitVariantProps(l), t = x(C), _ = i || a && c, [j, I] = m.useState(l.defaultValue || f), v = l.id || m.useId(), k = () => {
|
|
26
|
+
var R;
|
|
27
|
+
const s = {
|
|
125
28
|
target: { value: "" }
|
|
126
29
|
};
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
|
|
30
|
+
g(s), (R = l.onReset) == null || R.call(l, s), o.current && (o.current.value = "");
|
|
31
|
+
}, g = (s) => {
|
|
32
|
+
I(s.target.value), h && h(s);
|
|
130
33
|
};
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
34
|
+
return /* @__PURE__ */ r("div", { className: z(t.root, V), children: [
|
|
35
|
+
d ? /* @__PURE__ */ r("label", { className: t.label, htmlFor: v, children: [
|
|
36
|
+
d,
|
|
37
|
+
u && /* @__PURE__ */ e("span", { className: t.labelRequired, children: "必須" })
|
|
135
38
|
] }) : null,
|
|
136
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ r(
|
|
137
40
|
"div",
|
|
138
41
|
{
|
|
139
|
-
className:
|
|
140
|
-
"data-invalid":
|
|
141
|
-
"data-disabled":
|
|
42
|
+
className: t.inputWrapper,
|
|
43
|
+
"data-invalid": a ? !0 : void 0,
|
|
44
|
+
"data-disabled": n ? !0 : void 0,
|
|
142
45
|
children: [
|
|
143
|
-
|
|
46
|
+
N ? /* @__PURE__ */ e("div", { className: t.leftContent, children: N }) : /* @__PURE__ */ e("div", {}),
|
|
144
47
|
/* @__PURE__ */ e(
|
|
145
48
|
"input",
|
|
146
49
|
{
|
|
147
|
-
ref:
|
|
148
|
-
id:
|
|
149
|
-
placeholder:
|
|
150
|
-
required:
|
|
151
|
-
disabled:
|
|
152
|
-
value:
|
|
153
|
-
type:
|
|
154
|
-
className:
|
|
155
|
-
onChange:
|
|
156
|
-
...
|
|
50
|
+
ref: y,
|
|
51
|
+
id: v,
|
|
52
|
+
placeholder: F,
|
|
53
|
+
required: u,
|
|
54
|
+
disabled: n,
|
|
55
|
+
value: f,
|
|
56
|
+
type: S,
|
|
57
|
+
className: t.input,
|
|
58
|
+
onChange: g,
|
|
59
|
+
...P
|
|
157
60
|
}
|
|
158
61
|
),
|
|
159
|
-
|
|
160
|
-
(
|
|
62
|
+
p ? /* @__PURE__ */ e("div", { className: t.rightContent, children: p }) : /* @__PURE__ */ e("div", { className: t.icon, children: !n && /* disabledの場合はアイコンを表示しない */
|
|
63
|
+
(a ? /* @__PURE__ */ e(
|
|
161
64
|
"span",
|
|
162
65
|
{
|
|
163
|
-
className:
|
|
66
|
+
className: b({
|
|
164
67
|
color: "sd.system.color.impression.negative"
|
|
165
68
|
}),
|
|
166
|
-
children: /* @__PURE__ */ e(
|
|
69
|
+
children: /* @__PURE__ */ e(A, { width: 20, height: 20 })
|
|
167
70
|
}
|
|
168
|
-
) :
|
|
71
|
+
) : j ? /* @__PURE__ */ e(
|
|
169
72
|
"button",
|
|
170
73
|
{
|
|
171
|
-
className:
|
|
172
|
-
onClick:
|
|
74
|
+
className: b({ cursor: "pointer" }),
|
|
75
|
+
onClick: k,
|
|
173
76
|
"aria-label": "値をクリア",
|
|
174
|
-
children: /* @__PURE__ */ e(
|
|
77
|
+
children: /* @__PURE__ */ e(T, { width: 20, height: 20 })
|
|
175
78
|
}
|
|
176
79
|
) : null) })
|
|
177
80
|
]
|
|
178
81
|
}
|
|
179
82
|
),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
83
|
+
_ && /* @__PURE__ */ r("div", { className: t.messageField, children: [
|
|
84
|
+
i && /* @__PURE__ */ e("p", { className: t.description, children: i }),
|
|
85
|
+
a && c && /* @__PURE__ */ e("p", { className: t.invalidMessage, children: c })
|
|
183
86
|
] })
|
|
184
87
|
] });
|
|
185
88
|
}
|
|
186
89
|
);
|
|
187
90
|
export {
|
|
188
|
-
|
|
91
|
+
L as TextField
|
|
189
92
|
};
|
|
@@ -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<"root" | "icon" | "text" | "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" | "root" | "title" | "buttonContainer", {
|
|
5
5
|
type: {
|
|
6
6
|
navbar: {};
|
|
7
7
|
titleBar: {};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ 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';
|
|
13
14
|
export * from './components/Divider/index.ts';
|
|
14
15
|
export * from './components/Drawer/index.ts';
|
|
15
16
|
export * from './components/DropdownMenu/index.ts';
|