@moyeorak/design-system 0.1.1 → 0.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/README.md +16 -0
- package/dist/index.d.ts +135 -202
- package/dist/index.js +1 -45
- package/dist/index.mjs +481 -2511
- package/dist/style.css +1 -1
- package/dist/tailwind-plugin.d.ts +6 -0
- package/dist/tailwind-plugin.js +1 -0
- package/dist/tailwind-plugin.mjs +155 -0
- package/package.json +24 -6
package/README.md
CHANGED
|
@@ -189,6 +189,22 @@ import "@moyeorak/design-system/dist/style.css"
|
|
|
189
189
|
import { Button } from "@moyeorak/design-system"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
+
### 폰트 (Pretendard)
|
|
193
|
+
|
|
194
|
+
라이브러리는 폰트 파일을 번들링하지 않고 `font-family: 'Pretendard Variable', Pretendard, sans-serif`로 이름만 참조해요. Pretendard를 직접 적용하려면 소비 앱에서 폰트를 로드해야 해요.
|
|
195
|
+
|
|
196
|
+
```tsx
|
|
197
|
+
// Next.js의 경우 next/font/local 사용 권장
|
|
198
|
+
import localFont from "next/font/local"
|
|
199
|
+
|
|
200
|
+
const pretendard = localFont({
|
|
201
|
+
src: "../fonts/PretendardVariable.woff2",
|
|
202
|
+
variable: "--font-pretendard",
|
|
203
|
+
})
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
폰트를 로드하지 않으면 시스템 sans-serif 폰트로 자동 폴백돼요.
|
|
207
|
+
|
|
192
208
|
## Panda CSS 코드 생성
|
|
193
209
|
|
|
194
210
|
`panda.config.ts`를 수정하면 반드시 codegen을 다시 실행해야 해요.
|
package/dist/index.d.ts
CHANGED
|
@@ -56,20 +56,18 @@ export declare type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & RecipeV
|
|
|
56
56
|
|
|
57
57
|
declare const badgeStyles: RecipeRuntimeFn< {
|
|
58
58
|
variant: {
|
|
59
|
-
brand: {
|
|
59
|
+
"brand-weak": {
|
|
60
60
|
bg: "fill.brand.subtler";
|
|
61
61
|
color: "fg.brand.default";
|
|
62
62
|
};
|
|
63
|
-
neutral: {
|
|
64
|
-
bg: "
|
|
65
|
-
color: "fg.neutral.
|
|
63
|
+
"neutral-weak": {
|
|
64
|
+
bg: "fill.neutral.subtler";
|
|
65
|
+
color: "fg.neutral.subtle";
|
|
66
66
|
};
|
|
67
|
-
|
|
68
|
-
bg: "fill.neutral.
|
|
69
|
-
color: "fg.neutral.
|
|
70
|
-
|
|
71
|
-
borderStyle: "solid";
|
|
72
|
-
borderColor: "stroke.neutral.subtle";
|
|
67
|
+
outline: {
|
|
68
|
+
bg: "fill.neutral.faintest";
|
|
69
|
+
color: "fg.neutral.subtle";
|
|
70
|
+
boxShadow: "inset 0 0 0 1px {colors.stroke.neutral.subtle}";
|
|
73
71
|
};
|
|
74
72
|
};
|
|
75
73
|
size: {
|
|
@@ -84,51 +82,26 @@ textStyle: "body4";
|
|
|
84
82
|
|
|
85
83
|
declare type BreakpointToken = "sm" | "md" | "lg" | "xl" | "2xl"
|
|
86
84
|
|
|
87
|
-
export declare function Button({ variant, size,
|
|
88
|
-
|
|
89
|
-
export declare function ButtonCta({ variant, asChild, className, children, ...props }: ButtonCtaProps): JSX.Element;
|
|
90
|
-
|
|
91
|
-
export declare type ButtonCtaProps = React.ButtonHTMLAttributes<HTMLButtonElement> & RecipeVariantProps<typeof buttonCtaStyles> & {
|
|
92
|
-
asChild?: boolean;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
declare const buttonCtaStyles: RecipeRuntimeFn< {
|
|
96
|
-
variant: {
|
|
97
|
-
default: {
|
|
98
|
-
bg: "fill.inverted.default";
|
|
99
|
-
color: "fg.inverted.default";
|
|
100
|
-
_active: {
|
|
101
|
-
bg: "fill.inverted.default-pressed";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
brand: {
|
|
105
|
-
bg: "fill.brand.default";
|
|
106
|
-
color: "fg.inverted.default";
|
|
107
|
-
_active: {
|
|
108
|
-
bg: "fill.brand.default-pressed";
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}>;
|
|
85
|
+
export declare function Button({ variant, size, display, leadingIcon, trailingIcon, asChild, className, children, ...props }: ButtonProps): JSX.Element;
|
|
113
86
|
|
|
114
87
|
export declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & RecipeVariantProps<typeof buttonStyles> & {
|
|
115
|
-
|
|
116
|
-
|
|
88
|
+
leadingIcon?: React.ReactNode;
|
|
89
|
+
trailingIcon?: React.ReactNode;
|
|
117
90
|
asChild?: boolean;
|
|
118
91
|
};
|
|
119
92
|
|
|
120
93
|
declare const buttonStyles: RecipeRuntimeFn< {
|
|
121
94
|
variant: {
|
|
122
95
|
default: {
|
|
123
|
-
bg: "fill.
|
|
124
|
-
color: "fg.
|
|
96
|
+
bg: "fill.neutral.default";
|
|
97
|
+
color: "fg.neutral.faintest";
|
|
125
98
|
_active: {
|
|
126
|
-
bg: "fill.
|
|
99
|
+
bg: "fill.neutral.default-pressed";
|
|
127
100
|
};
|
|
128
101
|
};
|
|
129
102
|
brand: {
|
|
130
103
|
bg: "fill.brand.default";
|
|
131
|
-
color: "fg.
|
|
104
|
+
color: "fg.neutral.faintest";
|
|
132
105
|
_active: {
|
|
133
106
|
bg: "fill.brand.default-pressed";
|
|
134
107
|
};
|
|
@@ -140,29 +113,36 @@ _active: {
|
|
|
140
113
|
bg: "fill.brand.subtle-pressed";
|
|
141
114
|
};
|
|
142
115
|
};
|
|
143
|
-
|
|
144
|
-
bg: "fill.neutral.
|
|
145
|
-
color: "fg.neutral.
|
|
146
|
-
|
|
147
|
-
borderStyle: "solid";
|
|
148
|
-
borderColor: "stroke.neutral.subtle";
|
|
116
|
+
outline: {
|
|
117
|
+
bg: "fill.neutral.faintest";
|
|
118
|
+
color: "fg.neutral.default";
|
|
119
|
+
boxShadow: "inset 0 0 0 1px {colors.stroke.neutral.subtle}";
|
|
149
120
|
_active: {
|
|
150
|
-
bg: "fill.neutral.
|
|
121
|
+
bg: "fill.neutral.subtler";
|
|
151
122
|
};
|
|
152
123
|
};
|
|
153
124
|
ghost: {
|
|
154
125
|
bg: "transparent";
|
|
155
|
-
color: "fg.neutral.
|
|
126
|
+
color: "fg.neutral.default";
|
|
156
127
|
_active: {
|
|
157
|
-
bg: "fill.neutral.
|
|
128
|
+
bg: "fill.neutral.subtler";
|
|
158
129
|
};
|
|
159
130
|
};
|
|
160
131
|
"ghost-brand": {
|
|
161
132
|
bg: "transparent";
|
|
162
133
|
color: "fg.brand.default";
|
|
163
134
|
_active: {
|
|
164
|
-
bg: "fill.neutral.
|
|
135
|
+
bg: "fill.neutral.subtler";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
display: {
|
|
140
|
+
inline: {
|
|
141
|
+
display: "inline-flex";
|
|
165
142
|
};
|
|
143
|
+
full: {
|
|
144
|
+
display: "flex";
|
|
145
|
+
width: "100%";
|
|
166
146
|
};
|
|
167
147
|
};
|
|
168
148
|
size: {
|
|
@@ -200,33 +180,20 @@ declare const chipStyles: RecipeRuntimeFn< {
|
|
|
200
180
|
variant: {
|
|
201
181
|
brand: {
|
|
202
182
|
bg: "fill.brand.default";
|
|
203
|
-
color: "fg.
|
|
183
|
+
color: "fg.neutral.faintest";
|
|
204
184
|
};
|
|
205
|
-
"brand
|
|
185
|
+
"outlined-brand": {
|
|
206
186
|
bg: "fill.brand.subtle";
|
|
207
187
|
color: "fg.brand.default";
|
|
208
|
-
|
|
209
|
-
borderStyle: "solid";
|
|
210
|
-
borderColor: "stroke.brand.default";
|
|
188
|
+
boxShadow: "inset 0 0 0 1px {colors.stroke.brand.default}";
|
|
211
189
|
};
|
|
212
190
|
neutral: {
|
|
213
|
-
bg: "fill.inverted.default";
|
|
214
|
-
color: "fg.inverted.default";
|
|
215
|
-
_disabled: {
|
|
216
|
-
bg: "fill.neutral.stronger";
|
|
217
|
-
color: "fg.neutral.subtler";
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
inverted: {
|
|
221
191
|
bg: "fill.neutral.default";
|
|
222
|
-
color: "fg.neutral.
|
|
192
|
+
color: "fg.neutral.faintest";
|
|
223
193
|
};
|
|
224
|
-
"
|
|
225
|
-
bg: "fill.neutral.
|
|
194
|
+
"neutral-weak": {
|
|
195
|
+
bg: "fill.neutral.subtler";
|
|
226
196
|
color: "fg.neutral.subtler";
|
|
227
|
-
borderWidth: "1px";
|
|
228
|
-
borderStyle: "solid";
|
|
229
|
-
borderColor: "stroke.neutral.subtle";
|
|
230
197
|
};
|
|
231
198
|
};
|
|
232
199
|
shape: {
|
|
@@ -241,7 +208,7 @@ px: "14px";
|
|
|
241
208
|
};
|
|
242
209
|
}>;
|
|
243
210
|
|
|
244
|
-
declare type ColorToken = "
|
|
211
|
+
declare type ColorToken = "gray.0" | "gray.50" | "gray.100" | "gray.200" | "gray.300" | "gray.400" | "gray.500" | "gray.600" | "gray.700" | "gray.800" | "gray.900" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "grayOpacity.100" | "grayOpacity.200" | "grayOpacity.300" | "grayOpacity.400" | "grayOpacity.500" | "grayOpacity.600" | "grayOpacity.700" | "grayOpacity.800" | "grayOpacity.900" | "red" | "green" | "fill.neutral.default" | "fill.neutral.default-pressed" | "fill.neutral.default-disabled" | "fill.neutral.subtle" | "fill.neutral.subtler" | "fill.neutral.subtlest" | "fill.neutral.faintest" | "fill.brand.default" | "fill.brand.default-pressed" | "fill.brand.subtle" | "fill.brand.subtle-pressed" | "fill.brand.subtler" | "fill.brand.subtlest" | "bg.neutral.strongest" | "bg.neutral.strong" | "bg.neutral.default" | "overlay.neutral.stronger" | "overlay.neutral.strong" | "overlay.neutral.default" | "overlay.neutral.subtle" | "overlay.neutral.subtler" | "stroke.neutral.strong" | "stroke.neutral.default" | "stroke.neutral.subtle" | "stroke.neutral.subtler" | "stroke.brand.default" | "stroke.brand.subtle" | "stroke.negative.default" | "shadow.neutral.stronger" | "shadow.neutral.strong" | "shadow.neutral.default" | "shadow.neutral.subtle" | "fg.neutral.stronger" | "fg.neutral.strong" | "fg.neutral.default" | "fg.neutral.subtle" | "fg.neutral.subtler" | "fg.neutral.subtlest" | "fg.neutral.faintest" | "fg.brand.default" | "fg.brand.subtle" | "fg.brand.subtlest" | "fg.positive.default" | "fg.negative.default" | "colorPalette.0" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette" | "colorPalette.neutral.default" | "colorPalette.default" | "colorPalette.neutral.default-pressed" | "colorPalette.default-pressed" | "colorPalette.neutral.default-disabled" | "colorPalette.default-disabled" | "colorPalette.neutral.subtle" | "colorPalette.subtle" | "colorPalette.neutral.subtler" | "colorPalette.subtler" | "colorPalette.neutral.subtlest" | "colorPalette.subtlest" | "colorPalette.neutral.faintest" | "colorPalette.faintest" | "colorPalette.brand.default" | "colorPalette.brand.default-pressed" | "colorPalette.brand.subtle" | "colorPalette.brand.subtle-pressed" | "colorPalette.subtle-pressed" | "colorPalette.brand.subtler" | "colorPalette.brand.subtlest" | "colorPalette.neutral.strongest" | "colorPalette.strongest" | "colorPalette.neutral.strong" | "colorPalette.strong" | "colorPalette.neutral.stronger" | "colorPalette.stronger" | "colorPalette.negative.default" | "colorPalette.positive.default"
|
|
245
212
|
|
|
246
213
|
declare type ConditionalValue<V> =
|
|
247
214
|
| V
|
|
@@ -982,102 +949,107 @@ declare namespace DataType {
|
|
|
982
949
|
type VisualBox = "border-box" | "content-box" | "padding-box";
|
|
983
950
|
}
|
|
984
951
|
|
|
952
|
+
declare type DecorativeIconProps = {
|
|
953
|
+
type: DecorativeIconType;
|
|
954
|
+
size?: IconSize;
|
|
955
|
+
variant?: IconStyle;
|
|
956
|
+
className?: string;
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
declare type DecorativeIconType = Exclude<IconType, SemanticIconType>;
|
|
960
|
+
|
|
985
961
|
declare type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
|
|
986
962
|
|
|
987
963
|
declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
|
|
988
964
|
|
|
989
|
-
export declare function FloatingButton({
|
|
965
|
+
export declare function FloatingButton({ type, className, ...props }: FloatingButtonProps): JSX.Element;
|
|
990
966
|
|
|
991
|
-
export declare type FloatingButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
992
|
-
|
|
967
|
+
export declare type FloatingButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "aria-label"> & {
|
|
968
|
+
type: FloatingButtonType;
|
|
969
|
+
/** 텍스트 라벨이 없는 아이콘 전용 버튼이므로, 스크린 리더를 위한 접근 가능한 이름을 필수로 전달해야 해요. */
|
|
970
|
+
"aria-label": string;
|
|
993
971
|
};
|
|
994
972
|
|
|
995
|
-
export declare type
|
|
973
|
+
export declare type FloatingButtonType = "up" | "back";
|
|
996
974
|
|
|
997
975
|
declare type FontSizeToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
|
998
976
|
|
|
977
|
+
declare type FontToken = "sans"
|
|
978
|
+
|
|
999
979
|
declare type FontWeightToken = "regular" | "medium" | "semibold" | "bold"
|
|
1000
980
|
|
|
1001
981
|
declare type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
|
|
1002
982
|
|
|
1003
|
-
export declare function
|
|
983
|
+
export declare function Icon({ type, size, variant, className }: IconProps): JSX.Element;
|
|
1004
984
|
|
|
1005
|
-
export declare
|
|
1006
|
-
title: string;
|
|
1007
|
-
onBack?: () => void;
|
|
1008
|
-
actionLabel?: string;
|
|
1009
|
-
onAction?: () => void;
|
|
1010
|
-
className?: string;
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
export declare function Icon({ type, size, style, className }: IconProps): JSX.Element;
|
|
985
|
+
export declare function IconButton({ size, variant, className, children, ...props }: IconButtonProps): JSX.Element;
|
|
1014
986
|
|
|
1015
|
-
export declare
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
icon: IconType;
|
|
1019
|
-
iconStyle?: IconStyle;
|
|
1020
|
-
iconSize?: IconSize;
|
|
987
|
+
export declare type IconButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & RecipeVariantProps<typeof iconButtonStyles> & {
|
|
988
|
+
/** 텍스트 라벨이 없는 아이콘 전용 버튼이므로, 스크린 리더를 위한 접근 가능한 이름을 필수로 전달해야 해요. */
|
|
989
|
+
"aria-label": string;
|
|
1021
990
|
};
|
|
1022
991
|
|
|
1023
992
|
declare const iconButtonStyles: RecipeRuntimeFn< {
|
|
993
|
+
variant: {
|
|
994
|
+
clear: {
|
|
995
|
+
bg: "transparent";
|
|
996
|
+
color: "fg.neutral.subtle";
|
|
997
|
+
_active: {
|
|
998
|
+
color: "fg.neutral.subtler";
|
|
999
|
+
};
|
|
1000
|
+
_disabled: {
|
|
1001
|
+
color: "fg.neutral.subtlest";
|
|
1002
|
+
bg: "transparent";
|
|
1003
|
+
_active: {
|
|
1004
|
+
color: "fg.neutral.subtlest";
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
1008
|
+
fill: {
|
|
1009
|
+
bg: "fill.neutral.default";
|
|
1010
|
+
color: "fg.neutral.faintest";
|
|
1011
|
+
_active: {
|
|
1012
|
+
bg: "fill.neutral.default-pressed";
|
|
1013
|
+
};
|
|
1014
|
+
_disabled: {
|
|
1015
|
+
bg: "fill.neutral.default-disabled";
|
|
1016
|
+
color: "fg.neutral.subtler";
|
|
1017
|
+
_active: {
|
|
1018
|
+
bg: "fill.neutral.default-disabled";
|
|
1019
|
+
color: "fg.neutral.subtler";
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
1024
|
size: {
|
|
1025
1025
|
sm: {
|
|
1026
1026
|
width: "36px";
|
|
1027
1027
|
height: "36px";
|
|
1028
|
+
borderRadius: "xs";
|
|
1028
1029
|
};
|
|
1029
1030
|
md: {
|
|
1030
1031
|
width: "48px";
|
|
1031
1032
|
height: "48px";
|
|
1033
|
+
borderRadius: "sm";
|
|
1034
|
+
};
|
|
1035
|
+
lg: {
|
|
1036
|
+
width: "54px";
|
|
1037
|
+
height: "54px";
|
|
1038
|
+
borderRadius: "sm";
|
|
1032
1039
|
};
|
|
1033
1040
|
};
|
|
1034
1041
|
}>;
|
|
1035
1042
|
|
|
1036
|
-
export declare type IconProps =
|
|
1037
|
-
type: IconType;
|
|
1038
|
-
size?: IconSize;
|
|
1039
|
-
style?: IconStyle;
|
|
1040
|
-
className?: string;
|
|
1041
|
-
};
|
|
1043
|
+
export declare type IconProps = SemanticIconProps | DecorativeIconProps;
|
|
1042
1044
|
|
|
1043
|
-
export declare type IconSize = "
|
|
1045
|
+
export declare type IconSize = "xs" | "sm" | "md" | "lg";
|
|
1044
1046
|
|
|
1045
|
-
export declare type IconStyle = "default" | "weak" | "brand" | "inverted";
|
|
1046
|
-
|
|
1047
|
-
declare const iconStyles: RecipeRuntimeFn< {
|
|
1048
|
-
iconStyle: {
|
|
1049
|
-
default: {
|
|
1050
|
-
color: "fg.neutral.default";
|
|
1051
|
-
};
|
|
1052
|
-
weak: {
|
|
1053
|
-
color: "fg.neutral.subtlest";
|
|
1054
|
-
};
|
|
1055
|
-
brand: {
|
|
1056
|
-
color: "fg.brand.default";
|
|
1057
|
-
};
|
|
1058
|
-
inverted: {
|
|
1059
|
-
color: "fg.inverted.default";
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
}>;
|
|
1047
|
+
export declare type IconStyle = "default" | "weak" | "weakest" | "brand" | "inverted";
|
|
1063
1048
|
|
|
1064
1049
|
export declare type IconType = "arrow_up" | "blank" | "cafe" | "calendar" | "car" | "check" | "chevron_down" | "chevron_left" | "chevron_right" | "chevron_up" | "clock" | "dash" | "delete" | "error" | "invalid" | "location" | "meetingroom" | "member" | "restaurant" | "search" | "share" | "studyroom" | "success" | "traffic" | "valid";
|
|
1065
1050
|
|
|
1066
1051
|
declare type LetterSpacingToken = "tight" | "tighter"
|
|
1067
1052
|
|
|
1068
|
-
export declare function Modal({ open, onOpenChange, title, subtitle, confirmLabel, onConfirm, cancelLabel, onCancel, }: ModalProps): JSX.Element;
|
|
1069
|
-
|
|
1070
|
-
export declare type ModalProps = {
|
|
1071
|
-
open: boolean;
|
|
1072
|
-
onOpenChange: (open: boolean) => void;
|
|
1073
|
-
title: string;
|
|
1074
|
-
subtitle?: string;
|
|
1075
|
-
confirmLabel: string;
|
|
1076
|
-
onConfirm: () => void;
|
|
1077
|
-
cancelLabel?: string;
|
|
1078
|
-
onCancel?: () => void;
|
|
1079
|
-
};
|
|
1080
|
-
|
|
1081
1053
|
declare interface ModernCssProperties {
|
|
1082
1054
|
anchorName?: Globals | 'none' | DashedIdent | StringToMultiple<DashedIdent>
|
|
1083
1055
|
anchorScope?: Globals | 'none' | 'all' | DashedIdent | StringToMultiple<DashedIdent>
|
|
@@ -1094,6 +1066,11 @@ declare interface ModernCssProperties {
|
|
|
1094
1066
|
textWrapStyle?: Globals | 'auto' | 'balance' | 'pretty' | 'stable'
|
|
1095
1067
|
}
|
|
1096
1068
|
|
|
1069
|
+
declare type NegativeToastProps = {
|
|
1070
|
+
variant: "negative";
|
|
1071
|
+
message: string;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1097
1074
|
declare type Nested<P> = P & {
|
|
1098
1075
|
[K in Selectors]?: Nested<P>
|
|
1099
1076
|
} & {
|
|
@@ -1102,6 +1079,12 @@ declare type Nested<P> = P & {
|
|
|
1102
1079
|
[K in keyof Conditions]?: Nested<P>
|
|
1103
1080
|
}
|
|
1104
1081
|
|
|
1082
|
+
declare type NeutralToastProps = {
|
|
1083
|
+
variant: "neutral";
|
|
1084
|
+
icon?: DecorativeIconType;
|
|
1085
|
+
message: string;
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1105
1088
|
declare type Number_2 = number & {}
|
|
1106
1089
|
|
|
1107
1090
|
declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
@@ -2165,43 +2148,6 @@ declare type OneOrMore<T> = T | Array<T>
|
|
|
2165
2148
|
|
|
2166
2149
|
declare type ParentSelector = `${DataAttributes | AriaAttributes} &`
|
|
2167
2150
|
|
|
2168
|
-
export declare function PinFacility({ type, selected, className }: PinFacilityProps): JSX.Element;
|
|
2169
|
-
|
|
2170
|
-
export declare type PinFacilityProps = {
|
|
2171
|
-
type: PinFacilityType;
|
|
2172
|
-
selected?: boolean;
|
|
2173
|
-
className?: string;
|
|
2174
|
-
};
|
|
2175
|
-
|
|
2176
|
-
export declare type PinFacilityType = "studyroom" | "meetingroom" | "restaurant" | "cafe";
|
|
2177
|
-
|
|
2178
|
-
export declare function PinLogo({ size, className }: PinLogoProps): JSX.Element;
|
|
2179
|
-
|
|
2180
|
-
export declare type PinLogoProps = {
|
|
2181
|
-
size?: PinLogoSize;
|
|
2182
|
-
className?: string;
|
|
2183
|
-
};
|
|
2184
|
-
|
|
2185
|
-
export declare type PinLogoSize = "small" | "large";
|
|
2186
|
-
|
|
2187
|
-
export declare function PinLogoText({ size, text, className }: PinLogoTextProps): JSX.Element;
|
|
2188
|
-
|
|
2189
|
-
export declare type PinLogoTextProps = {
|
|
2190
|
-
size?: PinLogoSize;
|
|
2191
|
-
text: string;
|
|
2192
|
-
className?: string;
|
|
2193
|
-
};
|
|
2194
|
-
|
|
2195
|
-
export declare function PinText({ style, text, className }: PinTextProps): JSX.Element;
|
|
2196
|
-
|
|
2197
|
-
export declare type PinTextProps = {
|
|
2198
|
-
style?: PinTextStyle;
|
|
2199
|
-
text: string;
|
|
2200
|
-
className?: string;
|
|
2201
|
-
};
|
|
2202
|
-
|
|
2203
|
-
export declare type PinTextStyle = "brand" | "neutral";
|
|
2204
|
-
|
|
2205
2151
|
declare type PositionAreaAxis =
|
|
2206
2152
|
| 'left'
|
|
2207
2153
|
| 'center'
|
|
@@ -2266,6 +2212,11 @@ declare type PositionTry =
|
|
|
2266
2212
|
| 'inline-end'
|
|
2267
2213
|
| DashedIdent
|
|
2268
2214
|
|
|
2215
|
+
declare type PositiveToastProps = {
|
|
2216
|
+
variant: "positive";
|
|
2217
|
+
message: string;
|
|
2218
|
+
};
|
|
2219
|
+
|
|
2269
2220
|
declare type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
2270
2221
|
|
|
2271
2222
|
declare interface PropertiesFallback<TLength = (string & {}) | 0, TTime = string & {}>
|
|
@@ -4123,26 +4074,18 @@ T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, Slo
|
|
|
4123
4074
|
|
|
4124
4075
|
declare type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>
|
|
4125
4076
|
|
|
4126
|
-
export declare function Search({ className, placeholder, value, defaultValue, onChange, onClear, onFocus, onBlur, ...props }: SearchProps): JSX.Element;
|
|
4127
|
-
|
|
4128
|
-
export declare type SearchProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
4129
|
-
onClear?: () => void;
|
|
4130
|
-
};
|
|
4131
|
-
|
|
4132
4077
|
declare type Selectors = AttributeSelector | ParentSelector
|
|
4133
4078
|
|
|
4134
|
-
declare type
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
export declare type ShareButtonProps = {
|
|
4139
|
-
variant: ShareButtonVariant;
|
|
4140
|
-
selected?: boolean;
|
|
4141
|
-
onClick?: () => void;
|
|
4079
|
+
declare type SemanticIconProps = {
|
|
4080
|
+
type: SemanticIconType;
|
|
4081
|
+
size?: IconSize;
|
|
4082
|
+
variant?: never;
|
|
4142
4083
|
className?: string;
|
|
4143
4084
|
};
|
|
4144
4085
|
|
|
4145
|
-
|
|
4086
|
+
declare type SemanticIconType = "check" | "valid" | "success" | "error" | "invalid";
|
|
4087
|
+
|
|
4088
|
+
declare type ShadowToken = "strong"
|
|
4146
4089
|
|
|
4147
4090
|
declare type SimplePseudos =
|
|
4148
4091
|
| ":-khtml-any-link"
|
|
@@ -12791,7 +12734,7 @@ declare interface SystemProperties {
|
|
|
12791
12734
|
*
|
|
12792
12735
|
* @see https://developer.mozilla.org/docs/Web/CSS/font-family
|
|
12793
12736
|
*/
|
|
12794
|
-
fontFamily?: ConditionalValue<CssProperties["fontFamily"] | AnyString>
|
|
12737
|
+
fontFamily?: ConditionalValue<UtilityValues["fontFamily"] | CssVars | CssProperties["fontFamily"] | AnyString>
|
|
12795
12738
|
/**
|
|
12796
12739
|
* The **`font-feature-settings`** CSS property controls advanced typographic features in OpenType fonts.
|
|
12797
12740
|
*
|
|
@@ -17925,28 +17868,17 @@ declare interface SystemProperties {
|
|
|
17925
17868
|
|
|
17926
17869
|
export declare type SystemStyleObject = Omit<Nested<SystemProperties & CssVarProperties>, 'base'>
|
|
17927
17870
|
|
|
17928
|
-
export declare function
|
|
17929
|
-
|
|
17930
|
-
export declare type TabBarProps = {
|
|
17931
|
-
tabs: string[];
|
|
17932
|
-
selectedIndex: number;
|
|
17933
|
-
onChange: (index: number) => void;
|
|
17934
|
-
className?: string;
|
|
17935
|
-
};
|
|
17936
|
-
|
|
17937
|
-
export declare function Toast({ type, message }: ToastProps): JSX.Element;
|
|
17871
|
+
export declare function Toast(props: ToastProps): JSX.Element;
|
|
17938
17872
|
|
|
17939
|
-
export declare type ToastProps =
|
|
17940
|
-
type: ToastType;
|
|
17941
|
-
message: string;
|
|
17942
|
-
};
|
|
17873
|
+
export declare type ToastProps = NeutralToastProps | NegativeToastProps | PositiveToastProps;
|
|
17943
17874
|
|
|
17944
|
-
export declare type
|
|
17875
|
+
export declare type ToastVariant = "neutral" | "negative" | "positive";
|
|
17945
17876
|
|
|
17946
|
-
declare type Token = "colors.
|
|
17877
|
+
declare type Token = "colors.gray.0" | "colors.gray.50" | "colors.gray.100" | "colors.gray.200" | "colors.gray.300" | "colors.gray.400" | "colors.gray.500" | "colors.gray.600" | "colors.gray.700" | "colors.gray.800" | "colors.gray.900" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.grayOpacity.100" | "colors.grayOpacity.200" | "colors.grayOpacity.300" | "colors.grayOpacity.400" | "colors.grayOpacity.500" | "colors.grayOpacity.600" | "colors.grayOpacity.700" | "colors.grayOpacity.800" | "colors.grayOpacity.900" | "colors.red" | "colors.green" | "fonts.sans" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontWeights.regular" | "fontWeights.medium" | "fontWeights.semibold" | "fontWeights.bold" | "letterSpacings.tight" | "letterSpacings.tighter" | "radii.2xs" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.xl" | "radii.full" | "shadows.strong" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "breakpoints.2xl" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "sizes.breakpoint-2xl" | "colors.fill.neutral.default" | "colors.fill.neutral.default-pressed" | "colors.fill.neutral.default-disabled" | "colors.fill.neutral.subtle" | "colors.fill.neutral.subtler" | "colors.fill.neutral.subtlest" | "colors.fill.neutral.faintest" | "colors.fill.brand.default" | "colors.fill.brand.default-pressed" | "colors.fill.brand.subtle" | "colors.fill.brand.subtle-pressed" | "colors.fill.brand.subtler" | "colors.fill.brand.subtlest" | "colors.bg.neutral.strongest" | "colors.bg.neutral.strong" | "colors.bg.neutral.default" | "colors.overlay.neutral.stronger" | "colors.overlay.neutral.strong" | "colors.overlay.neutral.default" | "colors.overlay.neutral.subtle" | "colors.overlay.neutral.subtler" | "colors.stroke.neutral.strong" | "colors.stroke.neutral.default" | "colors.stroke.neutral.subtle" | "colors.stroke.neutral.subtler" | "colors.stroke.brand.default" | "colors.stroke.brand.subtle" | "colors.stroke.negative.default" | "colors.shadow.neutral.stronger" | "colors.shadow.neutral.strong" | "colors.shadow.neutral.default" | "colors.shadow.neutral.subtle" | "colors.fg.neutral.stronger" | "colors.fg.neutral.strong" | "colors.fg.neutral.default" | "colors.fg.neutral.subtle" | "colors.fg.neutral.subtler" | "colors.fg.neutral.subtlest" | "colors.fg.neutral.faintest" | "colors.fg.brand.default" | "colors.fg.brand.subtle" | "colors.fg.brand.subtlest" | "colors.fg.positive.default" | "colors.fg.negative.default" | "colors.colorPalette.0" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette" | "colors.colorPalette.neutral.default" | "colors.colorPalette.default" | "colors.colorPalette.neutral.default-pressed" | "colors.colorPalette.default-pressed" | "colors.colorPalette.neutral.default-disabled" | "colors.colorPalette.default-disabled" | "colors.colorPalette.neutral.subtle" | "colors.colorPalette.subtle" | "colors.colorPalette.neutral.subtler" | "colors.colorPalette.subtler" | "colors.colorPalette.neutral.subtlest" | "colors.colorPalette.subtlest" | "colors.colorPalette.neutral.faintest" | "colors.colorPalette.faintest" | "colors.colorPalette.brand.default" | "colors.colorPalette.brand.default-pressed" | "colors.colorPalette.brand.subtle" | "colors.colorPalette.brand.subtle-pressed" | "colors.colorPalette.subtle-pressed" | "colors.colorPalette.brand.subtler" | "colors.colorPalette.brand.subtlest" | "colors.colorPalette.neutral.strongest" | "colors.colorPalette.strongest" | "colors.colorPalette.neutral.strong" | "colors.colorPalette.strong" | "colors.colorPalette.neutral.stronger" | "colors.colorPalette.stronger" | "colors.colorPalette.negative.default" | "colors.colorPalette.positive.default"
|
|
17947
17878
|
|
|
17948
17879
|
declare type Tokens = {
|
|
17949
17880
|
colors: ColorToken
|
|
17881
|
+
fonts: FontToken
|
|
17950
17882
|
fontSizes: FontSizeToken
|
|
17951
17883
|
fontWeights: FontWeightToken
|
|
17952
17884
|
letterSpacings: LetterSpacingToken
|
|
@@ -17994,6 +17926,7 @@ declare interface UtilityValues {
|
|
|
17994
17926
|
maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
17995
17927
|
maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
17996
17928
|
color: Tokens["colors"];
|
|
17929
|
+
fontFamily: Tokens["fonts"];
|
|
17997
17930
|
fontSize: Tokens["fontSizes"];
|
|
17998
17931
|
fontWeight: Tokens["fontWeights"];
|
|
17999
17932
|
fontSmoothing: "antialiased" | "subpixel-antialiased";
|
|
@@ -18065,8 +17998,8 @@ declare interface UtilityValues {
|
|
|
18065
17998
|
srOnly: boolean;
|
|
18066
17999
|
debug: boolean;
|
|
18067
18000
|
containerName: CssProperties["containerName"];
|
|
18068
|
-
colorPalette: "
|
|
18069
|
-
textStyle: "head1" | "head2" | "head3" | "title1" | "title2" | "title3" | "body1" | "body2" | "body3" | "body4" | "body5" | "caption1" | "caption2" | "caption3";
|
|
18001
|
+
colorPalette: "gray" | "blue" | "grayOpacity" | "red" | "green" | "fill" | "fill.neutral" | "fill.brand" | "bg" | "bg.neutral" | "overlay" | "overlay.neutral" | "stroke" | "stroke.neutral" | "stroke.brand" | "stroke.negative" | "shadow" | "shadow.neutral" | "fg" | "fg.neutral" | "fg.brand" | "fg.positive" | "fg.negative";
|
|
18002
|
+
textStyle: "head1" | "head2" | "head3" | "head4" | "title1" | "title2" | "title3" | "body1" | "body2" | "body3" | "body4" | "body5" | "caption1" | "caption2" | "caption3";
|
|
18070
18003
|
}
|
|
18071
18004
|
|
|
18072
18005
|
declare interface VendorLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
@@ -19985,6 +19918,6 @@ declare interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
19985
19918
|
|
|
19986
19919
|
declare type VendorShorthandPropertiesFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandProperties<TLength, TTime>>;
|
|
19987
19920
|
|
|
19988
|
-
export declare const version = "0.1.
|
|
19921
|
+
export declare const version = "0.1.3";
|
|
19989
19922
|
|
|
19990
19923
|
export { }
|