@1d1s/design-system 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Icons/Gamepad2.d.ts +2 -0
- package/dist/components/Icons/GraduationCap.d.ts +2 -0
- package/dist/components/Icons/Music.d.ts +2 -0
- package/dist/components/Icons/Wallet.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +4 -0
- package/dist/components/Tag/FilterChip.d.ts +4 -1
- package/dist/index.es.js +14 -10
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -6,9 +6,12 @@ export * from './Dumbbell';
|
|
|
6
6
|
export * from './Flag';
|
|
7
7
|
export * from './Flame';
|
|
8
8
|
export * from './Code2';
|
|
9
|
+
export * from './Gamepad2';
|
|
10
|
+
export * from './GraduationCap';
|
|
9
11
|
export * from './Icon';
|
|
10
12
|
export * from './Laptop';
|
|
11
13
|
export * from './LogIn';
|
|
14
|
+
export * from './Music';
|
|
12
15
|
export * from './Palette';
|
|
13
16
|
export * from './PencilLine';
|
|
14
17
|
export * from './Plane';
|
|
@@ -17,6 +20,7 @@ export * from './Salad';
|
|
|
17
20
|
export * from './Settings';
|
|
18
21
|
export * from './Target';
|
|
19
22
|
export * from './Trophy';
|
|
23
|
+
export * from './Wallet';
|
|
20
24
|
export * from './Check';
|
|
21
25
|
export * from './Chevron';
|
|
22
26
|
export * from './ChevronDown';
|
|
@@ -4,6 +4,8 @@ declare const filterChipVariants: (props?: ({
|
|
|
4
4
|
active?: boolean | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface FilterChipProps extends Omit<React.ComponentProps<"button">, "size">, VariantProps<typeof filterChipVariants> {
|
|
7
|
+
/** 라벨 좌측 아이콘/이모지 */
|
|
8
|
+
icon?: React.ReactNode;
|
|
7
9
|
children: React.ReactNode;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
@@ -12,6 +14,7 @@ export interface FilterChipProps extends Omit<React.ComponentProps<"button">, "s
|
|
|
12
14
|
*
|
|
13
15
|
* @param active 선택 상태 (default `false`)
|
|
14
16
|
* @param size `sm` · `md` (default) · `lg`
|
|
17
|
+
* @param icon 라벨 좌측 아이콘 또는 이모지
|
|
15
18
|
*
|
|
16
19
|
* @example
|
|
17
20
|
* ```tsx
|
|
@@ -21,5 +24,5 @@ export interface FilterChipProps extends Omit<React.ComponentProps<"button">, "s
|
|
|
21
24
|
* ))}
|
|
22
25
|
* ```
|
|
23
26
|
*/
|
|
24
|
-
export declare function FilterChip({ className, size, active, children, type, ...props }: FilterChipProps): React.ReactElement;
|
|
27
|
+
export declare function FilterChip({ className, size, active, icon, children, type, ...props }: FilterChipProps): React.ReactElement;
|
|
25
28
|
export {};
|
package/dist/index.es.js
CHANGED
|
@@ -14998,9 +14998,9 @@ const Sb = Pe(
|
|
|
14998
14998
|
{
|
|
14999
14999
|
variants: {
|
|
15000
15000
|
size: {
|
|
15001
|
-
sm: "text-[11px] py-1.5 px-3",
|
|
15002
|
-
md: "text-xs py-[7px] px-3.5",
|
|
15003
|
-
lg: "text-sm py-2 px-4"
|
|
15001
|
+
sm: "text-[11px] py-1.5 px-3 gap-1",
|
|
15002
|
+
md: "text-xs py-[7px] px-3.5 gap-1",
|
|
15003
|
+
lg: "text-sm py-2 px-4 gap-1.5"
|
|
15004
15004
|
},
|
|
15005
15005
|
active: {
|
|
15006
15006
|
true: "bg-brand text-white border-brand",
|
|
@@ -15017,20 +15017,24 @@ function Rx({
|
|
|
15017
15017
|
className: e,
|
|
15018
15018
|
size: t,
|
|
15019
15019
|
active: n,
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15020
|
+
icon: r,
|
|
15021
|
+
children: o,
|
|
15022
|
+
type: a = "button",
|
|
15023
|
+
...i
|
|
15023
15024
|
}) {
|
|
15024
|
-
return /* @__PURE__ */
|
|
15025
|
+
return /* @__PURE__ */ k(
|
|
15025
15026
|
"button",
|
|
15026
15027
|
{
|
|
15027
15028
|
"data-slot": "filter-chip",
|
|
15028
|
-
type:
|
|
15029
|
+
type: a,
|
|
15029
15030
|
"data-active": n ? "true" : "false",
|
|
15030
15031
|
"aria-pressed": n ?? !1,
|
|
15031
15032
|
className: N(Sb({ size: t, active: n, className: e })),
|
|
15032
|
-
...
|
|
15033
|
-
children:
|
|
15033
|
+
...i,
|
|
15034
|
+
children: [
|
|
15035
|
+
r,
|
|
15036
|
+
o
|
|
15037
|
+
]
|
|
15034
15038
|
}
|
|
15035
15039
|
);
|
|
15036
15040
|
}
|