@cashdoc/cashdoc-cms-design-system 2.2.0 → 2.2.1

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.
@@ -45,8 +45,14 @@ declare const filterToggleGroupIntentDotClassMap: {
45
45
  readonly danger: "bg-cms-red-500";
46
46
  readonly muted: "bg-cms-gray-400";
47
47
  };
48
+ declare const filterToggleGroupAlignClassMap: {
49
+ readonly left: "items-start text-left";
50
+ readonly center: "items-center text-center";
51
+ readonly right: "items-end text-right";
52
+ };
48
53
  export type FilterToggleGroupSize = keyof typeof filterToggleGroupSizeClassMap;
49
54
  export type FilterToggleGroupIntent = keyof typeof filterToggleGroupIntentDotClassMap;
55
+ export type FilterToggleGroupAlign = keyof typeof filterToggleGroupAlignClassMap;
50
56
  export type FilterToggleGroupItem<T extends string | number> = {
51
57
  value: T;
52
58
  count: number | string;
@@ -65,6 +71,12 @@ export type FilterToggleGroupProps<T extends string | number> = {
65
71
  className?: string;
66
72
  itemClassName?: string;
67
73
  size?: FilterToggleGroupSize;
74
+ /**
75
+ * 카드 내부 콘텐츠(caption / count / label) 정렬.
76
+ * 숫자만 가운데·우측으로 옮기면 라벨과 어긋나기 때문에 3줄을 하나의
77
+ * 단위로 함께 정렬합니다. default: "right"
78
+ */
79
+ align?: FilterToggleGroupAlign;
68
80
  showIcon?: boolean;
69
81
  ariaLabel?: string;
70
82
  };
@@ -125,7 +137,7 @@ export type FilterToggleGroupProps<T extends string | number> = {
125
137
  * ![](<https://raw.githubusercontent.com/AlmSmartDoctor/ccds-screenshots/main/screenshots/Forms/FilterToggleGroup/For%20Jsdoc.png?raw=true>)
126
138
  */
127
139
  export declare const FilterToggleGroup: {
128
- <T extends string | number>({ items, value, onValueChange, className, itemClassName, size, showIcon, ariaLabel, }: FilterToggleGroupProps<T>): import("react/jsx-runtime").JSX.Element;
140
+ <T extends string | number>({ items, value, onValueChange, className, itemClassName, size, align, showIcon, ariaLabel, }: FilterToggleGroupProps<T>): import("react/jsx-runtime").JSX.Element;
129
141
  displayName: string;
130
142
  };
131
143
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashdoc/cashdoc-cms-design-system",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Cashdoc CMS Design System",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",