@serendie/ui 2.2.4 → 2.2.5-dev.202510301500
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 +3 -3
- package/dist/components/Button/Button.js +13 -13
- package/dist/components/DatePicker/DatePicker.d.ts +5 -5
- package/dist/components/DatePicker/DatePicker.js +79 -77
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +5 -5
- package/dist/components/IconButton/IconButton.js +6 -6
- 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/RadioButton/RadioButton.js +10 -10
- 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/node_modules/@serendie/design-token/dist/panda-tokens.js +20 -5
- package/dist/node_modules/@serendie/design-token/dist/tokens.js +10 -5
- package/dist/preset.d.ts +20 -8
- 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/styled-system/tokens/index.js +35 -15
- package/dist/styles.css +1 -1
- package/dist/tokens/getToken.d.ts +10 -5
- package/dist/tokens/index.d.ts +20 -5
- package/package.json +2 -2
- package/styled-system/themes/theme-asagi.json +1 -1
- package/styled-system/themes/theme-kurikawa.json +1 -1
- package/styled-system/themes/theme-sumire.json +1 -1
- package/styled-system/themes/theme-tsutsuji.json +1 -1
- package/styled-system/tokens/index.js +35 -15
- package/styled-system/tokens/tokens.d.ts +2 -2
- 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
|
@@ -7,7 +7,7 @@ import { css as g } from "../../styled-system/css/css.js";
|
|
|
7
7
|
import { RadioGroupItem as I } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js";
|
|
8
8
|
import { RadioGroupItemContext as S } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js";
|
|
9
9
|
import { RadioGroupItemControl as b } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js";
|
|
10
|
-
import { RadioGroupItemText as
|
|
10
|
+
import { RadioGroupItemText as m } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js";
|
|
11
11
|
import { RadioGroupItemHiddenInput as C } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js";
|
|
12
12
|
const k = {
|
|
13
13
|
flexShrink: 0,
|
|
@@ -22,11 +22,11 @@ const k = {
|
|
|
22
22
|
color: "color-mix(in srgb, {colors.sd.system.color.impression.primary}, {colors.sd.system.color.interaction.hoveredOnPrimary});"
|
|
23
23
|
}
|
|
24
24
|
}, _ = {
|
|
25
|
-
color: "sd.system.color.component.
|
|
25
|
+
color: "sd.system.color.component.outlineDim",
|
|
26
26
|
_disabled: {
|
|
27
|
-
color: "color-mix(in srgb, {colors.sd.system.color.component.
|
|
27
|
+
color: "color-mix(in srgb, {colors.sd.system.color.component.outlineDim}, {colors.sd.system.color.interaction.hoveredOnPrimary});"
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, c = f({
|
|
30
30
|
slots: [
|
|
31
31
|
"item",
|
|
32
32
|
"itemControl",
|
|
@@ -74,14 +74,14 @@ const k = {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
}),
|
|
77
|
+
}), V = ({
|
|
78
78
|
value: n,
|
|
79
79
|
label: t,
|
|
80
80
|
helperText: s,
|
|
81
81
|
className: d,
|
|
82
82
|
...a
|
|
83
83
|
}) => {
|
|
84
|
-
const [l, p] =
|
|
84
|
+
const [l, p] = c.splitVariantProps(a), o = c(l), y = i(
|
|
85
85
|
o.item,
|
|
86
86
|
s && g({ alignItems: "flex-start" })
|
|
87
87
|
);
|
|
@@ -94,8 +94,8 @@ const k = {
|
|
|
94
94
|
children: [
|
|
95
95
|
/* @__PURE__ */ e(S, { children: (u) => /* @__PURE__ */ e(b, { className: o.itemControl, asChild: !0, children: u.checked ? /* @__PURE__ */ e(x, { className: o.checkedIcon }) : /* @__PURE__ */ e(h, { className: o.unCheckedIcon }) }) }),
|
|
96
96
|
/* @__PURE__ */ r("div", { className: o.itemTextGroup, children: [
|
|
97
|
-
t && /* @__PURE__ */ e(
|
|
98
|
-
s && /* @__PURE__ */ e(
|
|
97
|
+
t && /* @__PURE__ */ e(m, { className: o.itemText, children: t }),
|
|
98
|
+
s && /* @__PURE__ */ e(m, { className: o.helperText, children: s })
|
|
99
99
|
] }),
|
|
100
100
|
/* @__PURE__ */ e(C, {})
|
|
101
101
|
]
|
|
@@ -103,8 +103,8 @@ const k = {
|
|
|
103
103
|
);
|
|
104
104
|
};
|
|
105
105
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
V as RadioButton,
|
|
107
|
+
c as RadioButtonStyle,
|
|
108
108
|
R as radioCheckedIconCss,
|
|
109
109
|
k as radioIconCss,
|
|
110
110
|
_ as radioUncheckedIconCss
|
|
@@ -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: {};
|
|
@@ -464,10 +464,13 @@ const e = {
|
|
|
464
464
|
inversePrimary: {
|
|
465
465
|
value: "#EFF2FC"
|
|
466
466
|
},
|
|
467
|
+
outlineBright: {
|
|
468
|
+
value: "#E4E4E3"
|
|
469
|
+
},
|
|
467
470
|
outline: {
|
|
468
471
|
value: "#D1D0CD"
|
|
469
472
|
},
|
|
470
|
-
|
|
473
|
+
outlineDim: {
|
|
471
474
|
value: "#8C8B87"
|
|
472
475
|
},
|
|
473
476
|
scrim: {
|
|
@@ -1481,10 +1484,13 @@ const e = {
|
|
|
1481
1484
|
inversePrimary: {
|
|
1482
1485
|
value: "#D9F6FC"
|
|
1483
1486
|
},
|
|
1487
|
+
outlineBright: {
|
|
1488
|
+
value: "#E4E4E3"
|
|
1489
|
+
},
|
|
1484
1490
|
outline: {
|
|
1485
1491
|
value: "#D1D0CD"
|
|
1486
1492
|
},
|
|
1487
|
-
|
|
1493
|
+
outlineDim: {
|
|
1488
1494
|
value: "#8C8B87"
|
|
1489
1495
|
},
|
|
1490
1496
|
scrim: {
|
|
@@ -1773,10 +1779,13 @@ const e = {
|
|
|
1773
1779
|
inversePrimary: {
|
|
1774
1780
|
value: "#FAECE6"
|
|
1775
1781
|
},
|
|
1782
|
+
outlineBright: {
|
|
1783
|
+
value: "#E4E4E3"
|
|
1784
|
+
},
|
|
1776
1785
|
outline: {
|
|
1777
1786
|
value: "#D1D0CD"
|
|
1778
1787
|
},
|
|
1779
|
-
|
|
1788
|
+
outlineDim: {
|
|
1780
1789
|
value: "#8C8B87"
|
|
1781
1790
|
},
|
|
1782
1791
|
scrim: {
|
|
@@ -2065,10 +2074,13 @@ const e = {
|
|
|
2065
2074
|
inversePrimary: {
|
|
2066
2075
|
value: "#F4ECF6"
|
|
2067
2076
|
},
|
|
2077
|
+
outlineBright: {
|
|
2078
|
+
value: "#E4E4E3"
|
|
2079
|
+
},
|
|
2068
2080
|
outline: {
|
|
2069
2081
|
value: "#D1D0CD"
|
|
2070
2082
|
},
|
|
2071
|
-
|
|
2083
|
+
outlineDim: {
|
|
2072
2084
|
value: "#8C8B87"
|
|
2073
2085
|
},
|
|
2074
2086
|
scrim: {
|
|
@@ -2357,10 +2369,13 @@ const e = {
|
|
|
2357
2369
|
inversePrimary: {
|
|
2358
2370
|
value: "#FFF4F8"
|
|
2359
2371
|
},
|
|
2372
|
+
outlineBright: {
|
|
2373
|
+
value: "#E4E4E3"
|
|
2374
|
+
},
|
|
2360
2375
|
outline: {
|
|
2361
2376
|
value: "#D1D0CD"
|
|
2362
2377
|
},
|
|
2363
|
-
|
|
2378
|
+
outlineDim: {
|
|
2364
2379
|
value: "#8C8B87"
|
|
2365
2380
|
},
|
|
2366
2381
|
scrim: {
|
|
@@ -269,8 +269,9 @@ const e = {
|
|
|
269
269
|
inverseSurface: "#232322",
|
|
270
270
|
inverseOnSurface: "#FFFFFF",
|
|
271
271
|
inversePrimary: "#EFF2FC",
|
|
272
|
+
outlineBright: "#E4E4E3",
|
|
272
273
|
outline: "#D1D0CD",
|
|
273
|
-
|
|
274
|
+
outlineDim: "#8C8B87",
|
|
274
275
|
scrim: "#00000033"
|
|
275
276
|
},
|
|
276
277
|
interaction: {
|
|
@@ -671,8 +672,9 @@ const e = {
|
|
|
671
672
|
inverseSurface: "#232322",
|
|
672
673
|
inverseOnSurface: "#FFFFFF",
|
|
673
674
|
inversePrimary: "#D9F6FC",
|
|
675
|
+
outlineBright: "#E4E4E3",
|
|
674
676
|
outline: "#D1D0CD",
|
|
675
|
-
|
|
677
|
+
outlineDim: "#8C8B87",
|
|
676
678
|
scrim: "#00000033"
|
|
677
679
|
},
|
|
678
680
|
interaction: {
|
|
@@ -791,8 +793,9 @@ const e = {
|
|
|
791
793
|
inverseSurface: "#232322",
|
|
792
794
|
inverseOnSurface: "#FFFFFF",
|
|
793
795
|
inversePrimary: "#FAECE6",
|
|
796
|
+
outlineBright: "#E4E4E3",
|
|
794
797
|
outline: "#D1D0CD",
|
|
795
|
-
|
|
798
|
+
outlineDim: "#8C8B87",
|
|
796
799
|
scrim: "#00000033"
|
|
797
800
|
},
|
|
798
801
|
interaction: {
|
|
@@ -911,8 +914,9 @@ const e = {
|
|
|
911
914
|
inverseSurface: "#232322",
|
|
912
915
|
inverseOnSurface: "#FFFFFF",
|
|
913
916
|
inversePrimary: "#F4ECF6",
|
|
917
|
+
outlineBright: "#E4E4E3",
|
|
914
918
|
outline: "#D1D0CD",
|
|
915
|
-
|
|
919
|
+
outlineDim: "#8C8B87",
|
|
916
920
|
scrim: "#00000033"
|
|
917
921
|
},
|
|
918
922
|
interaction: {
|
|
@@ -1031,8 +1035,9 @@ const e = {
|
|
|
1031
1035
|
inverseSurface: "#232322",
|
|
1032
1036
|
inverseOnSurface: "#FFFFFF",
|
|
1033
1037
|
inversePrimary: "#FFF4F8",
|
|
1038
|
+
outlineBright: "#E4E4E3",
|
|
1034
1039
|
outline: "#D1D0CD",
|
|
1035
|
-
|
|
1040
|
+
outlineDim: "#8C8B87",
|
|
1036
1041
|
scrim: "#00000033"
|
|
1037
1042
|
},
|
|
1038
1043
|
interaction: {
|
package/dist/preset.d.ts
CHANGED
|
@@ -116,10 +116,13 @@ declare const themes: {
|
|
|
116
116
|
inversePrimary: {
|
|
117
117
|
value: string;
|
|
118
118
|
};
|
|
119
|
+
outlineBright: {
|
|
120
|
+
value: string;
|
|
121
|
+
};
|
|
119
122
|
outline: {
|
|
120
123
|
value: string;
|
|
121
124
|
};
|
|
122
|
-
|
|
125
|
+
outlineDim: {
|
|
123
126
|
value: string;
|
|
124
127
|
};
|
|
125
128
|
scrim: {
|
|
@@ -408,10 +411,13 @@ declare const themes: {
|
|
|
408
411
|
inversePrimary: {
|
|
409
412
|
value: string;
|
|
410
413
|
};
|
|
414
|
+
outlineBright: {
|
|
415
|
+
value: string;
|
|
416
|
+
};
|
|
411
417
|
outline: {
|
|
412
418
|
value: string;
|
|
413
419
|
};
|
|
414
|
-
|
|
420
|
+
outlineDim: {
|
|
415
421
|
value: string;
|
|
416
422
|
};
|
|
417
423
|
scrim: {
|
|
@@ -700,10 +706,13 @@ declare const themes: {
|
|
|
700
706
|
inversePrimary: {
|
|
701
707
|
value: string;
|
|
702
708
|
};
|
|
709
|
+
outlineBright: {
|
|
710
|
+
value: string;
|
|
711
|
+
};
|
|
703
712
|
outline: {
|
|
704
713
|
value: string;
|
|
705
714
|
};
|
|
706
|
-
|
|
715
|
+
outlineDim: {
|
|
707
716
|
value: string;
|
|
708
717
|
};
|
|
709
718
|
scrim: {
|
|
@@ -992,10 +1001,13 @@ declare const themes: {
|
|
|
992
1001
|
inversePrimary: {
|
|
993
1002
|
value: string;
|
|
994
1003
|
};
|
|
1004
|
+
outlineBright: {
|
|
1005
|
+
value: string;
|
|
1006
|
+
};
|
|
995
1007
|
outline: {
|
|
996
1008
|
value: string;
|
|
997
1009
|
};
|
|
998
|
-
|
|
1010
|
+
outlineDim: {
|
|
999
1011
|
value: string;
|
|
1000
1012
|
};
|
|
1001
1013
|
scrim: {
|
|
@@ -1177,9 +1189,6 @@ export declare const SerendiePreset: {
|
|
|
1177
1189
|
breakpoints: {
|
|
1178
1190
|
expanded: string;
|
|
1179
1191
|
};
|
|
1180
|
-
recipes: {
|
|
1181
|
-
textFieldRecipe: import('../styled-system/types').SlotRecipeConfig;
|
|
1182
|
-
};
|
|
1183
1192
|
tokens: {
|
|
1184
1193
|
sizes: {
|
|
1185
1194
|
sd: {
|
|
@@ -1788,10 +1797,13 @@ export declare const SerendiePreset: {
|
|
|
1788
1797
|
inversePrimary: {
|
|
1789
1798
|
value: string;
|
|
1790
1799
|
};
|
|
1800
|
+
outlineBright: {
|
|
1801
|
+
value: string;
|
|
1802
|
+
};
|
|
1791
1803
|
outline: {
|
|
1792
1804
|
value: string;
|
|
1793
1805
|
};
|
|
1794
|
-
|
|
1806
|
+
outlineDim: {
|
|
1795
1807
|
value: string;
|
|
1796
1808
|
};
|
|
1797
1809
|
scrim: {
|
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
|
+
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { sva as e } from "../styled-system/css/sva.js";
|
|
2
|
+
const o = e({
|
|
2
3
|
className: "input",
|
|
3
4
|
slots: [
|
|
4
5
|
"root",
|
|
@@ -100,8 +101,17 @@ const e = {
|
|
|
100
101
|
invalidMessage: {
|
|
101
102
|
color: "sd.system.color.impression.negative"
|
|
102
103
|
}
|
|
104
|
+
},
|
|
105
|
+
variants: {
|
|
106
|
+
fullWidth: {
|
|
107
|
+
true: {
|
|
108
|
+
root: {
|
|
109
|
+
width: "100%"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
103
113
|
}
|
|
104
|
-
};
|
|
114
|
+
});
|
|
105
115
|
export {
|
|
106
|
-
|
|
116
|
+
o as textFieldRecipe
|
|
107
117
|
};
|
|
@@ -1,65 +1,60 @@
|
|
|
1
|
-
import { memo as y, compact as C, splitProps as
|
|
2
|
-
import { mergeCss as
|
|
3
|
-
const
|
|
1
|
+
import { memo as y, compact as C, splitProps as P, uniq as h, mergeProps as E } from "../helpers.js";
|
|
2
|
+
import { mergeCss as u, css as K } from "./css.js";
|
|
3
|
+
const j = (n) => ({
|
|
4
4
|
base: {},
|
|
5
5
|
variants: {},
|
|
6
6
|
defaultVariants: {},
|
|
7
7
|
compoundVariants: [],
|
|
8
|
-
...
|
|
8
|
+
...n
|
|
9
9
|
});
|
|
10
|
-
function
|
|
11
|
-
const { base:
|
|
12
|
-
function
|
|
13
|
-
var
|
|
14
|
-
const r =
|
|
15
|
-
let
|
|
16
|
-
for (const [
|
|
17
|
-
(
|
|
18
|
-
const
|
|
19
|
-
return
|
|
10
|
+
function M(n) {
|
|
11
|
+
const { base: f, variants: s, defaultVariants: e, compoundVariants: m } = j(n), o = (t) => ({ ...e, ...C(t) });
|
|
12
|
+
function a(t = {}) {
|
|
13
|
+
var d;
|
|
14
|
+
const r = o(t);
|
|
15
|
+
let i = { ...f };
|
|
16
|
+
for (const [l, V] of Object.entries(r))
|
|
17
|
+
(d = s[l]) != null && d[V] && (i = u(i, s[l][V]));
|
|
18
|
+
const c = A(m, r);
|
|
19
|
+
return u(i, c);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
const r =
|
|
23
|
-
return
|
|
24
|
-
base: f
|
|
21
|
+
function v(t) {
|
|
22
|
+
const r = j(t.config), i = h(t.variantKeys, Object.keys(s));
|
|
23
|
+
return M({
|
|
24
|
+
base: u(f, r.base),
|
|
25
25
|
variants: Object.fromEntries(
|
|
26
|
-
|
|
26
|
+
i.map((c) => [c, u(s[c], r.variants[c])])
|
|
27
27
|
),
|
|
28
28
|
defaultVariants: E(e, r.defaultVariants),
|
|
29
29
|
compoundVariants: [...m, ...r.compoundVariants]
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function p(
|
|
33
|
-
return
|
|
32
|
+
function p(t) {
|
|
33
|
+
return K(a(t));
|
|
34
34
|
}
|
|
35
|
-
const b = Object.keys(
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
const b = Object.keys(s);
|
|
36
|
+
function O(t) {
|
|
37
|
+
return P(t, b);
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const g = Object.fromEntries(Object.entries(s).map(([t, r]) => [t, Object.keys(r)]));
|
|
40
40
|
return Object.assign(y(p), {
|
|
41
41
|
__cva__: !0,
|
|
42
|
-
variantMap:
|
|
42
|
+
variantMap: g,
|
|
43
43
|
variantKeys: b,
|
|
44
|
-
raw:
|
|
45
|
-
config:
|
|
46
|
-
merge:
|
|
47
|
-
splitVariantProps:
|
|
48
|
-
getVariantProps:
|
|
44
|
+
raw: a,
|
|
45
|
+
config: n,
|
|
46
|
+
merge: v,
|
|
47
|
+
splitVariantProps: O,
|
|
48
|
+
getVariantProps: o
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
let
|
|
53
|
-
return
|
|
54
|
-
Object.entries(e).every(([
|
|
55
|
-
}),
|
|
56
|
-
}
|
|
57
|
-
function $(s, a, t, e) {
|
|
58
|
-
if (a.length > 0 && typeof (t == null ? void 0 : t[e]) == "object")
|
|
59
|
-
throw new Error(`[recipe:${s}:${e}] Conditions are not supported when using compound variants.`);
|
|
51
|
+
function A(n, f) {
|
|
52
|
+
let s = {};
|
|
53
|
+
return n.forEach((e) => {
|
|
54
|
+
Object.entries(e).every(([o, a]) => o === "css" ? !0 : (Array.isArray(a) ? a : [a]).some((p) => f[o] === p)) && (s = u(s, e.css));
|
|
55
|
+
}), s;
|
|
60
56
|
}
|
|
61
57
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
M as getCompoundVariantCss
|
|
58
|
+
M as cva,
|
|
59
|
+
A as getCompoundVariantCss
|
|
65
60
|
};
|