@serendie/ui 2.2.4 → 2.2.5-dev.202510160458
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/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 +5 -5
- package/dist/components/DatePicker/DatePicker.js +79 -77
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- 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/TextArea/TextArea.d.ts +1 -0
- package/dist/components/TextArea/TextArea.js +15 -8
- package/dist/components/TextField/TextField.d.ts +2 -0
- package/dist/components/TextField/TextField.js +4 -2
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/TopAppBar/TopAppBar.d.ts +1 -1
- package/dist/preset.d.ts +0 -3
- package/dist/preset.js +7 -9
- package/dist/recipes/textFieldRecipe.d.ts +9 -2
- package/dist/recipes/textFieldRecipe.js +13 -3
- package/dist/styled-system/css/cva.js +38 -43
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/recipes/index.d.ts +0 -3
- package/dist/recipes/index.js +0 -7
- 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
|
@@ -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<"
|
|
3
|
+
declare const BannerStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"title" | "icon" | "description" | "container", {
|
|
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
|
} & {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DatePicker as ArkDatePicker } from '@ark-ui/react';
|
|
2
|
+
export declare const DatePicker: import('react').ForwardRefExoticComponent<ArkDatePicker.RootProps & {
|
|
3
|
+
fullWidth?: boolean | undefined;
|
|
4
|
+
} & {
|
|
3
5
|
placeholder?: string;
|
|
4
6
|
label?: string;
|
|
5
7
|
required?: boolean;
|
|
@@ -9,6 +11,4 @@ interface DatePickerProps extends DatePickerRootProps {
|
|
|
9
11
|
startPlaceholder?: string;
|
|
10
12
|
endPlaceholder?: string;
|
|
11
13
|
isCalendarOnly?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const DatePicker: import('react').ForwardRefExoticComponent<DatePickerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export {};
|
|
14
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,80 +1,82 @@
|
|
|
1
|
-
import { jsx as e, jsxs as a, Fragment as
|
|
2
|
-
import { SerendieSymbolCalendar as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { datePickerStyles as
|
|
5
|
-
import { textFieldRecipe as
|
|
6
|
-
import { Portal as
|
|
7
|
-
import { DatePickerRoot as
|
|
8
|
-
import { DatePickerLabel as
|
|
9
|
-
import { DatePickerControl as
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { SerendieSymbolCalendar as O, SerendieSymbolArrowRight as j, SerendieSymbolChevronDown as H, SerendieSymbolChevronLeft as V, SerendieSymbolChevronRight as A } from "@serendie/symbols";
|
|
3
|
+
import { forwardRef as L, useState as q } from "react";
|
|
4
|
+
import { datePickerStyles as x } from "./styles.js";
|
|
5
|
+
import { textFieldRecipe as D } from "../../recipes/textFieldRecipe.js";
|
|
6
|
+
import { Portal as B } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
|
|
7
|
+
import { DatePickerRoot as b } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js";
|
|
8
|
+
import { DatePickerLabel as J } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js";
|
|
9
|
+
import { DatePickerControl as Y } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js";
|
|
10
10
|
import { cx as h } from "../../styled-system/css/cx.js";
|
|
11
|
-
import { DatePickerTrigger as
|
|
11
|
+
import { DatePickerTrigger as _ } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js";
|
|
12
12
|
import { css as t } from "../../styled-system/css/css.js";
|
|
13
13
|
import { DatePickerInput as f } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js";
|
|
14
|
-
import { DatePickerPositioner as
|
|
15
|
-
import { DatePickerContent as
|
|
16
|
-
import { DatePickerView as
|
|
17
|
-
import { DatePickerContext as
|
|
18
|
-
import { DatePickerViewControl as
|
|
19
|
-
import { DatePickerYearSelect as
|
|
20
|
-
import { DatePickerPrevTrigger as
|
|
21
|
-
import { DatePickerMonthSelect as
|
|
22
|
-
import { DatePickerNextTrigger as
|
|
23
|
-
import { DatePickerTable as
|
|
24
|
-
import { DatePickerTableHead as
|
|
25
|
-
import { DatePickerTableRow as
|
|
26
|
-
import { DatePickerTableHeader as
|
|
27
|
-
import { DatePickerTableBody as
|
|
28
|
-
import { DatePickerTableCell as
|
|
29
|
-
import { DatePickerTableCellTrigger as
|
|
30
|
-
const
|
|
14
|
+
import { DatePickerPositioner as z } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js";
|
|
15
|
+
import { DatePickerContent as E } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js";
|
|
16
|
+
import { DatePickerView as G } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js";
|
|
17
|
+
import { DatePickerContext as K } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js";
|
|
18
|
+
import { DatePickerViewControl as Q } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js";
|
|
19
|
+
import { DatePickerYearSelect as U } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js";
|
|
20
|
+
import { DatePickerPrevTrigger as X } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js";
|
|
21
|
+
import { DatePickerMonthSelect as Z } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js";
|
|
22
|
+
import { DatePickerNextTrigger as $ } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js";
|
|
23
|
+
import { DatePickerTable as M } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js";
|
|
24
|
+
import { DatePickerTableHead as ee } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js";
|
|
25
|
+
import { DatePickerTableRow as y } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js";
|
|
26
|
+
import { DatePickerTableHeader as re } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js";
|
|
27
|
+
import { DatePickerTableBody as ie } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js";
|
|
28
|
+
import { DatePickerTableCell as ae } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js";
|
|
29
|
+
import { DatePickerTableCellTrigger as te } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js";
|
|
30
|
+
const je = L(
|
|
31
31
|
({
|
|
32
32
|
placeholder: r = "日付を選択",
|
|
33
33
|
label: o,
|
|
34
34
|
required: l,
|
|
35
|
-
requiredLabel:
|
|
35
|
+
requiredLabel: s,
|
|
36
36
|
invalid: n,
|
|
37
37
|
invalidMessage: c,
|
|
38
38
|
selectionMode: p = "single",
|
|
39
|
-
startPlaceholder:
|
|
40
|
-
endPlaceholder:
|
|
41
|
-
locale:
|
|
42
|
-
isCalendarOnly:
|
|
43
|
-
...
|
|
44
|
-
},
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
startPlaceholder: S = "開始日",
|
|
40
|
+
endPlaceholder: T = "終了日",
|
|
41
|
+
locale: P = "ja-JP",
|
|
42
|
+
isCalendarOnly: w = !1,
|
|
43
|
+
...m
|
|
44
|
+
}, N) => {
|
|
45
|
+
const R = x(), [F, I] = D.splitVariantProps({
|
|
46
|
+
...m
|
|
47
|
+
}), i = D(F), [g, d] = q(!1), W = p === "range";
|
|
48
|
+
return w ? /* @__PURE__ */ e(
|
|
49
|
+
b,
|
|
48
50
|
{
|
|
49
|
-
locale:
|
|
50
|
-
...
|
|
51
|
-
ref:
|
|
51
|
+
locale: P,
|
|
52
|
+
...I,
|
|
53
|
+
ref: N,
|
|
52
54
|
selectionMode: p,
|
|
53
55
|
open: !0,
|
|
54
56
|
className: i.root,
|
|
55
|
-
children: /* @__PURE__ */ e(
|
|
57
|
+
children: /* @__PURE__ */ e(C, {})
|
|
56
58
|
}
|
|
57
59
|
) : /* @__PURE__ */ a(
|
|
58
|
-
|
|
60
|
+
b,
|
|
59
61
|
{
|
|
60
|
-
locale:
|
|
61
|
-
...
|
|
62
|
-
ref:
|
|
62
|
+
locale: P,
|
|
63
|
+
...m,
|
|
64
|
+
ref: N,
|
|
63
65
|
selectionMode: p,
|
|
64
66
|
className: i.root,
|
|
65
|
-
open:
|
|
66
|
-
onOpenChange: (
|
|
67
|
+
open: g,
|
|
68
|
+
onOpenChange: (u) => {
|
|
67
69
|
var k;
|
|
68
|
-
d(
|
|
70
|
+
d(u.open), (k = m.onOpenChange) == null || k.call(m, u);
|
|
69
71
|
},
|
|
70
72
|
children: [
|
|
71
|
-
/* @__PURE__ */ a(
|
|
72
|
-
o && /* @__PURE__ */ a(
|
|
73
|
+
/* @__PURE__ */ a(v, { children: [
|
|
74
|
+
o && /* @__PURE__ */ a(J, { className: i.label, children: [
|
|
73
75
|
o,
|
|
74
|
-
l && /* @__PURE__ */ e("span", { className: i.labelRequired, children:
|
|
76
|
+
l && /* @__PURE__ */ e("span", { className: i.labelRequired, children: s ?? "必須" })
|
|
75
77
|
] }),
|
|
76
78
|
/* @__PURE__ */ a(
|
|
77
|
-
|
|
79
|
+
Y,
|
|
78
80
|
{
|
|
79
81
|
className: h(
|
|
80
82
|
i.inputWrapper,
|
|
@@ -85,11 +87,11 @@ const We = H(
|
|
|
85
87
|
}
|
|
86
88
|
})
|
|
87
89
|
),
|
|
88
|
-
"data-expanded":
|
|
90
|
+
"data-expanded": g ? !0 : void 0,
|
|
89
91
|
"data-Invalid": n,
|
|
90
92
|
children: [
|
|
91
|
-
/* @__PURE__ */ e("div", { className: i.leftContent, children: /* @__PURE__ */ e(
|
|
92
|
-
|
|
93
|
+
/* @__PURE__ */ e("div", { className: i.leftContent, children: /* @__PURE__ */ e(_, { className: t({ display: "flex" }), children: /* @__PURE__ */ e(O, {}) }) }),
|
|
94
|
+
W ? /* @__PURE__ */ a(
|
|
93
95
|
"div",
|
|
94
96
|
{
|
|
95
97
|
className: t({
|
|
@@ -102,7 +104,7 @@ const We = H(
|
|
|
102
104
|
f,
|
|
103
105
|
{
|
|
104
106
|
index: 0,
|
|
105
|
-
placeholder:
|
|
107
|
+
placeholder: S,
|
|
106
108
|
className: h(
|
|
107
109
|
i.input,
|
|
108
110
|
t({
|
|
@@ -113,12 +115,12 @@ const We = H(
|
|
|
113
115
|
onFocus: () => d(!0)
|
|
114
116
|
}
|
|
115
117
|
),
|
|
116
|
-
/* @__PURE__ */ e(
|
|
118
|
+
/* @__PURE__ */ e(j, {}),
|
|
117
119
|
/* @__PURE__ */ e(
|
|
118
120
|
f,
|
|
119
121
|
{
|
|
120
122
|
index: 1,
|
|
121
|
-
placeholder:
|
|
123
|
+
placeholder: T,
|
|
122
124
|
className: h(
|
|
123
125
|
i.input,
|
|
124
126
|
t({
|
|
@@ -145,23 +147,23 @@ const We = H(
|
|
|
145
147
|
),
|
|
146
148
|
n && c && /* @__PURE__ */ e("div", { className: i.messageField, children: /* @__PURE__ */ e("p", { className: i.invalidMessage, children: c }) })
|
|
147
149
|
] }),
|
|
148
|
-
/* @__PURE__ */ e(
|
|
150
|
+
/* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { className: R.positioner, children: /* @__PURE__ */ e(C, {}) }) })
|
|
149
151
|
]
|
|
150
152
|
}
|
|
151
153
|
);
|
|
152
154
|
}
|
|
153
|
-
),
|
|
154
|
-
const r =
|
|
155
|
-
return /* @__PURE__ */ e(
|
|
156
|
-
/* @__PURE__ */ a(
|
|
155
|
+
), C = () => {
|
|
156
|
+
const r = x();
|
|
157
|
+
return /* @__PURE__ */ e(E, { className: r.content, children: /* @__PURE__ */ e(G, { view: "day", className: r.view, children: /* @__PURE__ */ e(K, { children: (o) => /* @__PURE__ */ a(v, { children: [
|
|
158
|
+
/* @__PURE__ */ a(Q, { className: r.viewControl, children: [
|
|
157
159
|
/* @__PURE__ */ a("div", { className: r.selectWrapper, children: [
|
|
158
|
-
/* @__PURE__ */ e(
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
+
/* @__PURE__ */ e(U, { className: r.select }),
|
|
161
|
+
/* @__PURE__ */ e(H, { className: r.selectIcon })
|
|
160
162
|
] }),
|
|
161
163
|
/* @__PURE__ */ a("div", { className: t({ display: "flex", alignItems: "center" }), children: [
|
|
162
|
-
/* @__PURE__ */ e(
|
|
164
|
+
/* @__PURE__ */ e(X, { className: r.prevTrigger, children: /* @__PURE__ */ e(V, {}) }),
|
|
163
165
|
/* @__PURE__ */ e(
|
|
164
|
-
|
|
166
|
+
Z,
|
|
165
167
|
{
|
|
166
168
|
className: t({
|
|
167
169
|
appearance: "none",
|
|
@@ -169,25 +171,25 @@ const We = H(
|
|
|
169
171
|
})
|
|
170
172
|
}
|
|
171
173
|
),
|
|
172
|
-
/* @__PURE__ */ e(
|
|
174
|
+
/* @__PURE__ */ e($, { className: r.nextTrigger, children: /* @__PURE__ */ e(A, {}) })
|
|
173
175
|
] })
|
|
174
176
|
] }),
|
|
175
|
-
/* @__PURE__ */ a(
|
|
176
|
-
/* @__PURE__ */ e(
|
|
177
|
-
|
|
177
|
+
/* @__PURE__ */ a(M, { className: r.table, children: [
|
|
178
|
+
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(y, { children: o.weekDays.map((l, s) => /* @__PURE__ */ e(
|
|
179
|
+
re,
|
|
178
180
|
{
|
|
179
181
|
className: r.tableHeader,
|
|
180
182
|
children: l.narrow
|
|
181
183
|
},
|
|
182
|
-
|
|
184
|
+
s
|
|
183
185
|
)) }) }),
|
|
184
|
-
/* @__PURE__ */ e(
|
|
185
|
-
|
|
186
|
+
/* @__PURE__ */ e(ie, { children: o.weeks.map((l, s) => /* @__PURE__ */ e(y, { children: l.map((n, c) => /* @__PURE__ */ e(
|
|
187
|
+
ae,
|
|
186
188
|
{
|
|
187
189
|
value: n,
|
|
188
190
|
className: r.tableCell,
|
|
189
191
|
children: /* @__PURE__ */ e(
|
|
190
|
-
|
|
192
|
+
te,
|
|
191
193
|
{
|
|
192
194
|
className: r.tableCellTrigger,
|
|
193
195
|
children: n.day
|
|
@@ -195,10 +197,10 @@ const We = H(
|
|
|
195
197
|
)
|
|
196
198
|
},
|
|
197
199
|
c
|
|
198
|
-
)) },
|
|
200
|
+
)) }, s)) })
|
|
199
201
|
] })
|
|
200
202
|
] }) }) }) });
|
|
201
203
|
};
|
|
202
204
|
export {
|
|
203
|
-
|
|
205
|
+
je as DatePicker
|
|
204
206
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuRootProps } from '@ark-ui/react';
|
|
2
|
-
export declare const DropdownMenuStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
2
|
+
export declare const DropdownMenuStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"item" | "content" | "button" | "itemGroup" | "itemIcon" | "buttonIcon", import('../../../styled-system/types').SlotRecipeVariantRecord<"item" | "content" | "button" | "itemGroup" | "itemIcon" | "buttonIcon">>;
|
|
3
3
|
export type MenuItemProps = {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
@@ -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<"
|
|
3
|
+
declare const ModalDialogStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"title" | "description" | "content" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper", import('../../../styled-system/types').SlotRecipeVariantRecord<"title" | "description" | "content" | "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<"
|
|
3
|
+
export declare const SelectStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"item" | "content" | "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;
|
|
@@ -6,4 +6,5 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
|
6
6
|
invalidMessage?: string;
|
|
7
7
|
autoAdjustHeight?: boolean;
|
|
8
8
|
requiredLabel?: string;
|
|
9
|
+
fullWidth?: boolean;
|
|
9
10
|
} & Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -93,9 +93,16 @@ const p = C({
|
|
|
93
93
|
minHeight: "2lh"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
},
|
|
97
|
+
fullWidth: {
|
|
98
|
+
true: {
|
|
99
|
+
root: {
|
|
100
|
+
width: "100%"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
|
-
}),
|
|
105
|
+
}), A = w(
|
|
99
106
|
({
|
|
100
107
|
placeholder: y,
|
|
101
108
|
label: r,
|
|
@@ -104,11 +111,11 @@ const p = C({
|
|
|
104
111
|
requiredLabel: u,
|
|
105
112
|
invalidMessage: o,
|
|
106
113
|
invalid: a,
|
|
107
|
-
disabled:
|
|
114
|
+
disabled: l,
|
|
108
115
|
className: g,
|
|
109
|
-
...
|
|
110
|
-
},
|
|
111
|
-
const
|
|
116
|
+
...n
|
|
117
|
+
}, h) => {
|
|
118
|
+
const x = c.useRef(null), b = _(x, h), [f, S] = p.splitVariantProps(n), e = p(f), v = t || a && o, m = n.id || c.useId();
|
|
112
119
|
return /* @__PURE__ */ i("div", { className: N(e.root, g), children: [
|
|
113
120
|
r ? /* @__PURE__ */ i("label", { className: e.label, htmlFor: m, children: [
|
|
114
121
|
r,
|
|
@@ -119,7 +126,7 @@ const p = C({
|
|
|
119
126
|
{
|
|
120
127
|
className: e.wrapper,
|
|
121
128
|
"data-invalid": a ? !0 : void 0,
|
|
122
|
-
"data-disabled":
|
|
129
|
+
"data-disabled": l ? !0 : void 0,
|
|
123
130
|
children: /* @__PURE__ */ s(
|
|
124
131
|
"textarea",
|
|
125
132
|
{
|
|
@@ -127,7 +134,7 @@ const p = C({
|
|
|
127
134
|
id: m,
|
|
128
135
|
placeholder: y,
|
|
129
136
|
required: d,
|
|
130
|
-
disabled:
|
|
137
|
+
disabled: l,
|
|
131
138
|
className: e.textarea,
|
|
132
139
|
...S
|
|
133
140
|
}
|
|
@@ -142,5 +149,5 @@ const p = C({
|
|
|
142
149
|
}
|
|
143
150
|
);
|
|
144
151
|
export {
|
|
145
|
-
|
|
152
|
+
A as TextArea
|
|
146
153
|
};
|
|
@@ -7,4 +7,6 @@ export declare const TextField: React.ForwardRefExoticComponent<{
|
|
|
7
7
|
leftContent?: React.ReactNode;
|
|
8
8
|
rightContent?: React.ReactNode;
|
|
9
9
|
requiredLabel?: string;
|
|
10
|
+
} & {
|
|
11
|
+
fullWidth?: boolean | undefined;
|
|
10
12
|
} & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { SerendieSymbolAlertCircle as T, SerendieSymbolClose as W } from "@serendie/symbols";
|
|
3
3
|
import q from "../../node_modules/merge-refs/dist/esm/index.js";
|
|
4
4
|
import m, { forwardRef as z } from "react";
|
|
5
|
-
import { textFieldRecipe as x } from "../../
|
|
5
|
+
import { textFieldRecipe as x } from "../../recipes/textFieldRecipe.js";
|
|
6
6
|
import { cx as B } from "../../styled-system/css/cx.js";
|
|
7
7
|
import { css as b } from "../../styled-system/css/css.js";
|
|
8
8
|
const M = z(
|
|
@@ -23,7 +23,9 @@ const M = z(
|
|
|
23
23
|
rightContent: p,
|
|
24
24
|
...l
|
|
25
25
|
}, y) => {
|
|
26
|
-
const o = m.useRef(null), C = q(o, y), [P, _] = x.splitVariantProps(
|
|
26
|
+
const o = m.useRef(null), C = q(o, y), [P, _] = x.splitVariantProps({
|
|
27
|
+
...l
|
|
28
|
+
}), t = x(P), j = i || a && c, [I, k] = m.useState(l.defaultValue || f), v = l.id || m.useId(), A = () => {
|
|
27
29
|
var R;
|
|
28
30
|
const s = {
|
|
29
31
|
target: { value: "" }
|
|
@@ -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<"
|
|
4
|
+
declare const topAppBarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"title" | "container" | "left" | "root" | "buttonContainer", {
|
|
5
5
|
type: {
|
|
6
6
|
navbar: {};
|
|
7
7
|
titleBar: {};
|
package/dist/preset.d.ts
CHANGED
package/dist/preset.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SerendieTypography as r, SerendieTokens as n } from "./tokens/index.js";
|
|
1
|
+
import { SerendieTypography as e, SerendieTokens as n } from "./tokens/index.js";
|
|
3
2
|
import { getToken as t } from "./tokens/getToken.js";
|
|
4
3
|
import { SerendieKeyframes as o } from "./tokens/keyframes/index.js";
|
|
5
|
-
const { sd:
|
|
4
|
+
const { sd: r } = t(), { themes: p, ...s } = n, a = {
|
|
6
5
|
name: "serendie",
|
|
7
6
|
theme: {
|
|
8
7
|
extend: {
|
|
9
8
|
breakpoints: {
|
|
10
|
-
expanded:
|
|
9
|
+
expanded: r.system.dimension.breakpoint.expanded
|
|
11
10
|
},
|
|
12
|
-
recipes: e,
|
|
13
11
|
tokens: {
|
|
14
|
-
...
|
|
12
|
+
...s
|
|
15
13
|
},
|
|
16
14
|
textStyles: {
|
|
17
|
-
...
|
|
15
|
+
...e
|
|
18
16
|
},
|
|
19
17
|
keyframes: {
|
|
20
18
|
...o
|
|
@@ -23,6 +21,6 @@ const { sd: s } = t(), { themes: f, ...i } = n, k = {
|
|
|
23
21
|
}
|
|
24
22
|
};
|
|
25
23
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
a as SerendiePreset,
|
|
25
|
+
p as themes
|
|
28
26
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { SlotRecipeConfig } from '../../styled-system/types';
|
|
2
1
|
/**
|
|
3
2
|
* 共通フォームスタイルレシピ
|
|
4
3
|
* TextField、DatePicker、Select、TextAreaなどのフォームコンポーネントで共通のスタイルを定義
|
|
5
4
|
*/
|
|
6
|
-
export declare const textFieldRecipe:
|
|
5
|
+
export declare const textFieldRecipe: import('../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "description" | "input" | "label" | "root" | "labelRequired" | "inputWrapper" | "leftContent" | "rightContent" | "messageField" | "invalidMessage", {
|
|
6
|
+
fullWidth: {
|
|
7
|
+
true: {
|
|
8
|
+
root: {
|
|
9
|
+
width: "100%";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}>;
|