@tipp/ui 1.0.52 → 1.0.54
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/atoms/alert-dialog.d.cts +1 -0
- package/dist/atoms/alert-dialog.d.ts +1 -0
- package/dist/atoms/aspect-ratio.d.cts +1 -0
- package/dist/atoms/aspect-ratio.d.ts +1 -0
- package/dist/atoms/avatar.d.cts +11 -0
- package/dist/atoms/avatar.d.ts +11 -0
- package/dist/atoms/badge.cjs +1 -1
- package/dist/atoms/badge.cjs.map +1 -1
- package/dist/atoms/badge.d.cts +13 -0
- package/dist/atoms/badge.d.ts +13 -0
- package/dist/atoms/badge.js +1 -1
- package/dist/atoms/blockquote.d.cts +1 -0
- package/dist/atoms/blockquote.d.ts +1 -0
- package/dist/atoms/box.d.cts +1 -0
- package/dist/atoms/box.d.ts +1 -0
- package/dist/atoms/button.d.cts +11 -0
- package/dist/atoms/button.d.ts +11 -0
- package/dist/atoms/call-out.d.cts +1 -0
- package/dist/atoms/call-out.d.ts +1 -0
- package/dist/atoms/card.d.cts +23 -0
- package/dist/atoms/card.d.ts +23 -0
- package/dist/atoms/check-box-card.d.cts +1 -0
- package/dist/atoms/check-box-card.d.ts +1 -0
- package/dist/atoms/check-box-group.d.cts +11 -0
- package/dist/atoms/check-box-group.d.ts +11 -0
- package/dist/atoms/check-box.d.cts +11 -0
- package/dist/atoms/check-box.d.ts +11 -0
- package/dist/atoms/code.d.cts +1 -0
- package/dist/atoms/code.d.ts +1 -0
- package/dist/atoms/collapse.d.cts +12 -0
- package/dist/atoms/collapse.d.ts +12 -0
- package/dist/atoms/container.d.cts +1 -0
- package/dist/atoms/container.d.ts +1 -0
- package/dist/atoms/data-list.d.cts +1 -0
- package/dist/atoms/data-list.d.ts +1 -0
- package/dist/atoms/dialog.d.cts +1 -0
- package/dist/atoms/dialog.d.ts +1 -0
- package/dist/atoms/drawer.d.cts +20 -0
- package/dist/atoms/drawer.d.ts +20 -0
- package/dist/atoms/dropdown-menu.d.cts +23 -0
- package/dist/atoms/dropdown-menu.d.ts +23 -0
- package/dist/atoms/ellipsis-tooltip.d.cts +11 -0
- package/dist/atoms/ellipsis-tooltip.d.ts +11 -0
- package/dist/atoms/em.d.cts +1 -0
- package/dist/atoms/em.d.ts +1 -0
- package/dist/atoms/field-error-wrapper.d.cts +9 -0
- package/dist/atoms/field-error-wrapper.d.ts +9 -0
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/flex.d.cts +1 -0
- package/dist/atoms/flex.d.ts +1 -0
- package/dist/atoms/form.d.cts +13 -0
- package/dist/atoms/form.d.ts +13 -0
- package/dist/atoms/grid.d.cts +1 -0
- package/dist/atoms/grid.d.ts +1 -0
- package/dist/atoms/heading.d.cts +9 -0
- package/dist/atoms/heading.d.ts +9 -0
- package/dist/atoms/hover-card.d.cts +1 -0
- package/dist/atoms/hover-card.d.ts +1 -0
- package/dist/atoms/icon-button.d.cts +1 -0
- package/dist/atoms/icon-button.d.ts +1 -0
- package/dist/atoms/index.cjs +1 -1
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +23 -0
- package/dist/atoms/index.d.ts +23 -0
- package/dist/atoms/index.js +52 -52
- package/dist/atoms/inset.d.cts +1 -0
- package/dist/atoms/inset.d.ts +1 -0
- package/dist/atoms/kbd.d.cts +1 -0
- package/dist/atoms/kbd.d.ts +1 -0
- package/dist/atoms/link.d.cts +9 -0
- package/dist/atoms/link.d.ts +9 -0
- package/dist/atoms/pagination.d.cts +16 -0
- package/dist/atoms/pagination.d.ts +16 -0
- package/dist/atoms/pagination.js +3 -3
- package/dist/atoms/popover.d.cts +1 -0
- package/dist/atoms/popover.d.ts +1 -0
- package/dist/atoms/progress.d.cts +1 -0
- package/dist/atoms/progress.d.ts +1 -0
- package/dist/atoms/quote.d.cts +1 -0
- package/dist/atoms/quote.d.ts +1 -0
- package/dist/atoms/radio-cards.d.cts +1 -0
- package/dist/atoms/radio-cards.d.ts +1 -0
- package/dist/atoms/radio-group.d.cts +1 -0
- package/dist/atoms/radio-group.d.ts +1 -0
- package/dist/atoms/radio.d.cts +1 -0
- package/dist/atoms/radio.d.ts +1 -0
- package/dist/atoms/scroll-area.d.cts +1 -0
- package/dist/atoms/scroll-area.d.ts +1 -0
- package/dist/atoms/section.d.cts +1 -0
- package/dist/atoms/section.d.ts +1 -0
- package/dist/atoms/segmented-control.d.cts +1 -0
- package/dist/atoms/segmented-control.d.ts +1 -0
- package/dist/atoms/select.d.cts +19 -0
- package/dist/atoms/select.d.ts +19 -0
- package/dist/atoms/separator.d.cts +1 -0
- package/dist/atoms/separator.d.ts +1 -0
- package/dist/atoms/skeleton.d.cts +1 -0
- package/dist/atoms/skeleton.d.ts +1 -0
- package/dist/atoms/spinner.d.cts +1 -0
- package/dist/atoms/spinner.d.ts +1 -0
- package/dist/atoms/strong.d.cts +1 -0
- package/dist/atoms/strong.d.ts +1 -0
- package/dist/atoms/switch.d.cts +1 -0
- package/dist/atoms/switch.d.ts +1 -0
- package/dist/atoms/tab-nav.d.cts +1 -0
- package/dist/atoms/tab-nav.d.ts +1 -0
- package/dist/atoms/tabs.d.cts +1 -0
- package/dist/atoms/tabs.d.ts +1 -0
- package/dist/atoms/text-area.d.cts +1 -0
- package/dist/atoms/text-area.d.ts +1 -0
- package/dist/atoms/text-field.d.cts +1 -0
- package/dist/atoms/text-field.d.ts +1 -0
- package/dist/atoms/toast.d.cts +6 -0
- package/dist/atoms/toast.d.ts +6 -0
- package/dist/atoms/tooltip.d.cts +1 -0
- package/dist/atoms/tooltip.d.ts +1 -0
- package/dist/atoms/typo.d.cts +9 -0
- package/dist/atoms/typo.d.ts +9 -0
- package/dist/charts/chart-default-props.d.cts +85 -0
- package/dist/charts/chart-default-props.d.ts +85 -0
- package/dist/charts/horizontal-bar-chart.d.cts +17 -0
- package/dist/charts/horizontal-bar-chart.d.ts +17 -0
- package/dist/charts/index.d.cts +3 -0
- package/dist/charts/index.d.ts +3 -0
- package/dist/chunk-5JJ3GWKF.js +47 -0
- package/dist/chunk-5JJ3GWKF.js.map +1 -0
- package/dist/chunk-7A7J457W.js +63 -0
- package/dist/chunk-7A7J457W.js.map +1 -0
- package/dist/chunk-A7CXRZIO.js +18 -0
- package/dist/chunk-A7CXRZIO.js.map +1 -0
- package/dist/chunk-CNQ7RNNY.js +23 -0
- package/dist/chunk-CNQ7RNNY.js.map +1 -0
- package/dist/chunk-FUSEDVWI.js +130 -0
- package/dist/chunk-FUSEDVWI.js.map +1 -0
- package/dist/chunk-G4FN6FJG.js +91 -0
- package/dist/chunk-G4FN6FJG.js.map +1 -0
- package/dist/chunk-HXJPG3ZO.js +130 -0
- package/dist/chunk-HXJPG3ZO.js.map +1 -0
- package/dist/chunk-ONYSO7Y2.js +49 -0
- package/dist/chunk-ONYSO7Y2.js.map +1 -0
- package/dist/chunk-YZZS2HN7.js +123 -0
- package/dist/chunk-YZZS2HN7.js.map +1 -0
- package/dist/icon.d.cts +3 -0
- package/dist/icon.d.ts +3 -0
- package/dist/icons/down.d.cts +6 -0
- package/dist/icons/down.d.ts +6 -0
- package/dist/icons/types.d.cts +6 -0
- package/dist/icons/types.d.ts +6 -0
- package/dist/icons/up.d.cts +6 -0
- package/dist/icons/up.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +63 -63
- package/dist/molecules/date-picker/index.d.cts +10 -0
- package/dist/molecules/date-picker/index.d.ts +10 -0
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.d.cts +23 -0
- package/dist/molecules/expand-table/index.d.ts +23 -0
- package/dist/molecules/expand-table/index.js +22 -22
- package/dist/molecules/expand-table/row.d.cts +18 -0
- package/dist/molecules/expand-table/row.d.ts +18 -0
- package/dist/molecules/expand-table/row.js +21 -21
- package/dist/molecules/index.d.cts +8 -0
- package/dist/molecules/index.d.ts +8 -0
- package/dist/molecules/index.js +24 -24
- package/dist/molecules/navigation.d.cts +19 -0
- package/dist/molecules/navigation.d.ts +19 -0
- package/dist/molecules/navigation.js +22 -22
- package/dist/theme/theme-provider.d.cts +10 -0
- package/dist/theme/theme-provider.d.ts +10 -0
- package/dist/theme/use-theme.d.cts +1 -0
- package/dist/theme/use-theme.d.ts +1 -0
- package/dist/types/react-table.d.d.cts +19 -0
- package/dist/types/react-table.d.d.ts +19 -0
- package/dist/ui-props/index.d.cts +2 -0
- package/dist/ui-props/index.d.ts +2 -0
- package/dist/utils/get-cell-align.cjs.map +1 -1
- package/dist/utils/get-cell-align.d.cts +9 -0
- package/dist/utils/get-cell-align.d.ts +9 -0
- package/dist/utils/get-cell-align.js +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +1 -1
- package/package.json +3 -3
- package/src/atoms/badge.tsx +3 -3
- package/src/utils/get-cell-align.ts +1 -3
|
@@ -1,34 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Navigation
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7A7J457W.js";
|
|
4
4
|
import "../chunk-2ANGYYEV.js";
|
|
5
|
+
import "../chunk-JPIZP2PZ.js";
|
|
6
|
+
import "../chunk-HYITAA4J.js";
|
|
7
|
+
import "../chunk-5H3YPCZK.js";
|
|
8
|
+
import "../chunk-FR2GDOU2.js";
|
|
5
9
|
import "../chunk-74DX4CU7.js";
|
|
6
10
|
import "../chunk-OYM4XCHQ.js";
|
|
7
11
|
import "../chunk-YJ7ZFOYL.js";
|
|
8
12
|
import "../chunk-5ZITU5L7.js";
|
|
9
13
|
import "../chunk-ILRUXI2E.js";
|
|
10
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-YO3BQW6S.js";
|
|
15
|
+
import "../chunk-6IVCARWS.js";
|
|
16
|
+
import "../chunk-6DJOIRMF.js";
|
|
11
17
|
import "../chunk-FPD73OHW.js";
|
|
12
18
|
import "../chunk-ZKZDVS7G.js";
|
|
13
19
|
import "../chunk-MUNMDHRF.js";
|
|
14
20
|
import "../chunk-TVDKGMBI.js";
|
|
15
21
|
import "../chunk-3JRNKBMN.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-5H3YPCZK.js";
|
|
18
|
-
import "../chunk-FR2GDOU2.js";
|
|
22
|
+
import "../chunk-XQOL7UBI.js";
|
|
19
23
|
import "../chunk-TULWX7D6.js";
|
|
20
24
|
import "../chunk-XQOZWYUA.js";
|
|
21
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-HXJPG3ZO.js";
|
|
22
26
|
import "../chunk-5AVBYDPB.js";
|
|
23
27
|
import "../chunk-365QMK4D.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-4IKPNQV5.js";
|
|
29
|
+
import "../chunk-ACVANQJ4.js";
|
|
30
|
+
import "../chunk-2DZ2Y3JI.js";
|
|
31
|
+
import "../chunk-CNQ7RNNY.js";
|
|
32
|
+
import "../chunk-O3XTRD7R.js";
|
|
33
|
+
import "../chunk-25HMMI7R.js";
|
|
27
34
|
import "../chunk-2CVXGGI5.js";
|
|
28
35
|
import "../chunk-EGEQY3KT.js";
|
|
29
36
|
import "../chunk-HLOY6BIP.js";
|
|
30
37
|
import "../chunk-O3T3TM3V.js";
|
|
31
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-JEHDCZQU.js";
|
|
39
|
+
import "../chunk-OHMOP5PV.js";
|
|
40
|
+
import "../chunk-KGLIAFTI.js";
|
|
32
41
|
import "../chunk-Q37G2GS6.js";
|
|
33
42
|
import "../chunk-VTJZMOSP.js";
|
|
34
43
|
import "../chunk-P6B2PNYI.js";
|
|
@@ -37,27 +46,18 @@ import "../chunk-BVBX6IJ3.js";
|
|
|
37
46
|
import "../chunk-NJ2U2TVS.js";
|
|
38
47
|
import "../chunk-O3DNDMV3.js";
|
|
39
48
|
import "../chunk-4WFMOFN2.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-CHHLIPDN.js";
|
|
44
|
-
import "../chunk-25HMMI7R.js";
|
|
45
|
-
import "../chunk-O3XTRD7R.js";
|
|
49
|
+
import "../chunk-5JJ3GWKF.js";
|
|
50
|
+
import "../chunk-YGL6SWKN.js";
|
|
51
|
+
import "../chunk-4Y5BEXVN.js";
|
|
46
52
|
import "../chunk-AQX7DQLI.js";
|
|
47
53
|
import "../chunk-B6XJN6EC.js";
|
|
48
54
|
import "../chunk-UVKNLJDZ.js";
|
|
49
55
|
import "../chunk-MIMJ7LON.js";
|
|
50
56
|
import "../chunk-IQEEPHOY.js";
|
|
51
|
-
import "../chunk-JEHDCZQU.js";
|
|
52
|
-
import "../chunk-OHMOP5PV.js";
|
|
53
|
-
import "../chunk-KGLIAFTI.js";
|
|
54
57
|
import "../chunk-TSVWEPRP.js";
|
|
55
58
|
import "../chunk-J242TTFH.js";
|
|
56
59
|
import "../chunk-EAXUQEO5.js";
|
|
57
60
|
import "../chunk-CZEGRZBK.js";
|
|
58
|
-
import "../chunk-ALOPZ54P.js";
|
|
59
|
-
import "../chunk-YGL6SWKN.js";
|
|
60
|
-
import "../chunk-4Y5BEXVN.js";
|
|
61
61
|
import "../chunk-N552FDTV.js";
|
|
62
62
|
export {
|
|
63
63
|
Navigation
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import react__default from 'react';
|
|
2
|
+
import { Theme } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type ThemeProps = react__default.ComponentProps<typeof Theme>;
|
|
5
|
+
interface ThemeProviderProps extends ThemeProps {
|
|
6
|
+
children: react__default.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function ThemeProvider(props: ThemeProviderProps): react__default.ReactElement;
|
|
9
|
+
|
|
10
|
+
export { ThemeProvider };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import react__default from 'react';
|
|
2
|
+
import { Theme } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type ThemeProps = react__default.ComponentProps<typeof Theme>;
|
|
5
|
+
interface ThemeProviderProps extends ThemeProps {
|
|
6
|
+
children: react__default.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function ThemeProvider(props: ThemeProviderProps): react__default.ReactElement;
|
|
9
|
+
|
|
10
|
+
export { ThemeProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useThemeContext } from '@radix-ui/themes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useThemeContext } from '@radix-ui/themes';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare module '@tanstack/react-table' {
|
|
2
|
+
type ExpandButtonComp = <Data extends RowData>(props: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setIsOpen: (value: boolean) => void;
|
|
5
|
+
data: Data;
|
|
6
|
+
}) => React.ReactNode;
|
|
7
|
+
|
|
8
|
+
/** OpenBtn을 전달한 경우 open과 setIsOpen 상태 관리 props를 전달해 렌더함 */
|
|
9
|
+
|
|
10
|
+
interface ColumnMeta {
|
|
11
|
+
OpenBtn?: ExpandButtonComp;
|
|
12
|
+
/** 셀의 가로 너비 지정을 number가 아닌 auto로 사용하고 싶을 경우.
|
|
13
|
+
* 테이블 당 하나의 셀에만 사용하기를 권장
|
|
14
|
+
*/
|
|
15
|
+
autoSize?: boolean;
|
|
16
|
+
/** 좌/우/중앙 정렬 설정, default값은 left */
|
|
17
|
+
align?: 'left' | 'right' | 'center';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare module '@tanstack/react-table' {
|
|
2
|
+
type ExpandButtonComp = <Data extends RowData>(props: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setIsOpen: (value: boolean) => void;
|
|
5
|
+
data: Data;
|
|
6
|
+
}) => React.ReactNode;
|
|
7
|
+
|
|
8
|
+
/** OpenBtn을 전달한 경우 open과 setIsOpen 상태 관리 props를 전달해 렌더함 */
|
|
9
|
+
|
|
10
|
+
interface ColumnMeta {
|
|
11
|
+
OpenBtn?: ExpandButtonComp;
|
|
12
|
+
/** 셀의 가로 너비 지정을 number가 아닌 auto로 사용하고 싶을 경우.
|
|
13
|
+
* 테이블 당 하나의 셀에만 사용하기를 권장
|
|
14
|
+
*/
|
|
15
|
+
autoSize?: boolean;
|
|
16
|
+
/** 좌/우/중앙 정렬 설정, default값은 left */
|
|
17
|
+
align?: 'left' | 'right' | 'center';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/get-cell-align.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/utils/get-cell-align.ts"],"sourcesContent":["export type CellDataType = 'number' | 'date' | 'time' | 'string' | 'button';\nexport type CellAlign = 'left' | 'center' | 'right';\n\nexport const getCellAlign = (arg: { dataType: CellDataType }): CellAlign => {\n const { dataType } = arg;\n\n switch (dataType) {\n case 'number':\n case 'date':\n case 'time':\n return 'right';\n case 'string':\n default:\n return 'left';\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,IAAM,eAAe,CAAC,QAA+C;AAC1E,QAAM,EAAE,SAAS,IAAI;AAErB,UAAQ,UAAU;AAAA,IAChB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL;AACE,aAAO;AAAA,EACX;AACF;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnMeta } from '@tanstack/react-table';
|
|
2
|
+
|
|
3
|
+
type CellDataType = 'number' | 'date' | 'time' | 'string' | 'button';
|
|
4
|
+
type CellAlign = NonNullable<ColumnMeta<unknown, unknown>['align']>;
|
|
5
|
+
declare const getCellAlign: (arg: {
|
|
6
|
+
dataType: CellDataType;
|
|
7
|
+
}) => CellAlign;
|
|
8
|
+
|
|
9
|
+
export { type CellAlign, type CellDataType, getCellAlign };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnMeta } from '@tanstack/react-table';
|
|
2
|
+
|
|
3
|
+
type CellDataType = 'number' | 'date' | 'time' | 'string' | 'button';
|
|
4
|
+
type CellAlign = NonNullable<ColumnMeta<unknown, unknown>['align']>;
|
|
5
|
+
declare const getCellAlign: (arg: {
|
|
6
|
+
dataType: CellDataType;
|
|
7
|
+
}) => CellAlign;
|
|
8
|
+
|
|
9
|
+
export { type CellAlign, type CellDataType, getCellAlign };
|
package/dist/utils/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/index.ts","../../src/utils/get-cell-align.ts"],"sourcesContent":["export * from './get-cell-align';\n","
|
|
1
|
+
{"version":3,"sources":["../../src/utils/index.ts","../../src/utils/get-cell-align.ts"],"sourcesContent":["export * from './get-cell-align';\n","export type CellDataType = 'number' | 'date' | 'time' | 'string' | 'button';\nexport type CellAlign = 'left' | 'center' | 'right';\n\nexport const getCellAlign = (arg: { dataType: CellDataType }): CellAlign => {\n const { dataType } = arg;\n\n switch (dataType) {\n case 'number':\n case 'date':\n case 'time':\n return 'right';\n case 'string':\n default:\n return 'left';\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAM,eAAe,CAAC,QAA+C;AAC1E,QAAM,EAAE,SAAS,IAAI;AAErB,UAAQ,UAAU;AAAA,IAChB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL;AACE,aAAO;AAAA,EACX;AACF;","names":[]}
|
package/dist/utils/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tipp/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"postcss-nesting": "12.0.2",
|
|
54
54
|
"tsup": "^8.0.2",
|
|
55
55
|
"typescript": "^5.3.3",
|
|
56
|
-
"@tipp/
|
|
57
|
-
"@tipp/
|
|
56
|
+
"@tipp/typescript-config": "0.0.4",
|
|
57
|
+
"@tipp/eslint-config": "0.2.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "pnpm run build:js & pnpm run build:css",
|
package/src/atoms/badge.tsx
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import { useMemo, forwardRef } from 'react';
|
|
6
6
|
|
|
7
7
|
export type BadgeProps = Omit<RadixBadgeProps, 'color'> & {
|
|
8
|
-
size
|
|
9
|
-
color
|
|
8
|
+
size?: 'small' | 'large';
|
|
9
|
+
color?: 'error' | 'accent' | 'neutral' | 'success';
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const Badge = forwardRef<HTMLSpanElement, BadgeProps>(
|
|
13
13
|
(props: BadgeProps, ref): React.ReactNode => {
|
|
14
|
-
const { size, color, ...rest } = props;
|
|
14
|
+
const { size = 'small', color = 'accent', ...rest } = props;
|
|
15
15
|
|
|
16
16
|
const radixSize = useMemo(() => {
|
|
17
17
|
switch (size) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { ColumnMeta } from '@tanstack/react-table';
|
|
2
|
-
|
|
3
1
|
export type CellDataType = 'number' | 'date' | 'time' | 'string' | 'button';
|
|
4
|
-
export type CellAlign =
|
|
2
|
+
export type CellAlign = 'left' | 'center' | 'right';
|
|
5
3
|
|
|
6
4
|
export const getCellAlign = (arg: { dataType: CellDataType }): CellAlign => {
|
|
7
5
|
const { dataType } = arg;
|