@1d1s/design-system 1.2.1 → 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.
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const Gamepad2: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const GraduationCap: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const Music: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const Wallet: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -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
@@ -11623,7 +11623,7 @@ function ml({
11623
11623
  children: e.content
11624
11624
  }
11625
11625
  ),
11626
- y ? /* @__PURE__ */ s("ul", { className: "mt-2 space-y-0 border-l border-gray-100 pl-3", children: A.map((E, _) => /* @__PURE__ */ s(
11626
+ y ? /* @__PURE__ */ s("ul", { className: "mt-2 -ml-5 space-y-0 border-l border-gray-100 pl-3", children: A.map((E, _) => /* @__PURE__ */ s(
11627
11627
  ml,
11628
11628
  {
11629
11629
  comment: E,
@@ -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
- children: r,
15021
- type: o = "button",
15022
- ...a
15020
+ icon: r,
15021
+ children: o,
15022
+ type: a = "button",
15023
+ ...i
15023
15024
  }) {
15024
- return /* @__PURE__ */ s(
15025
+ return /* @__PURE__ */ k(
15025
15026
  "button",
15026
15027
  {
15027
15028
  "data-slot": "filter-chip",
15028
- type: o,
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
- ...a,
15033
- children: r
15033
+ ...i,
15034
+ children: [
15035
+ r,
15036
+ o
15037
+ ]
15034
15038
  }
15035
15039
  );
15036
15040
  }