@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.
Files changed (189) hide show
  1. package/dist/atoms/alert-dialog.d.cts +1 -0
  2. package/dist/atoms/alert-dialog.d.ts +1 -0
  3. package/dist/atoms/aspect-ratio.d.cts +1 -0
  4. package/dist/atoms/aspect-ratio.d.ts +1 -0
  5. package/dist/atoms/avatar.d.cts +11 -0
  6. package/dist/atoms/avatar.d.ts +11 -0
  7. package/dist/atoms/badge.cjs +1 -1
  8. package/dist/atoms/badge.cjs.map +1 -1
  9. package/dist/atoms/badge.d.cts +13 -0
  10. package/dist/atoms/badge.d.ts +13 -0
  11. package/dist/atoms/badge.js +1 -1
  12. package/dist/atoms/blockquote.d.cts +1 -0
  13. package/dist/atoms/blockquote.d.ts +1 -0
  14. package/dist/atoms/box.d.cts +1 -0
  15. package/dist/atoms/box.d.ts +1 -0
  16. package/dist/atoms/button.d.cts +11 -0
  17. package/dist/atoms/button.d.ts +11 -0
  18. package/dist/atoms/call-out.d.cts +1 -0
  19. package/dist/atoms/call-out.d.ts +1 -0
  20. package/dist/atoms/card.d.cts +23 -0
  21. package/dist/atoms/card.d.ts +23 -0
  22. package/dist/atoms/check-box-card.d.cts +1 -0
  23. package/dist/atoms/check-box-card.d.ts +1 -0
  24. package/dist/atoms/check-box-group.d.cts +11 -0
  25. package/dist/atoms/check-box-group.d.ts +11 -0
  26. package/dist/atoms/check-box.d.cts +11 -0
  27. package/dist/atoms/check-box.d.ts +11 -0
  28. package/dist/atoms/code.d.cts +1 -0
  29. package/dist/atoms/code.d.ts +1 -0
  30. package/dist/atoms/collapse.d.cts +12 -0
  31. package/dist/atoms/collapse.d.ts +12 -0
  32. package/dist/atoms/container.d.cts +1 -0
  33. package/dist/atoms/container.d.ts +1 -0
  34. package/dist/atoms/data-list.d.cts +1 -0
  35. package/dist/atoms/data-list.d.ts +1 -0
  36. package/dist/atoms/dialog.d.cts +1 -0
  37. package/dist/atoms/dialog.d.ts +1 -0
  38. package/dist/atoms/drawer.d.cts +20 -0
  39. package/dist/atoms/drawer.d.ts +20 -0
  40. package/dist/atoms/dropdown-menu.d.cts +23 -0
  41. package/dist/atoms/dropdown-menu.d.ts +23 -0
  42. package/dist/atoms/ellipsis-tooltip.d.cts +11 -0
  43. package/dist/atoms/ellipsis-tooltip.d.ts +11 -0
  44. package/dist/atoms/em.d.cts +1 -0
  45. package/dist/atoms/em.d.ts +1 -0
  46. package/dist/atoms/field-error-wrapper.d.cts +9 -0
  47. package/dist/atoms/field-error-wrapper.d.ts +9 -0
  48. package/dist/atoms/field-error-wrapper.js +2 -2
  49. package/dist/atoms/flex.d.cts +1 -0
  50. package/dist/atoms/flex.d.ts +1 -0
  51. package/dist/atoms/form.d.cts +13 -0
  52. package/dist/atoms/form.d.ts +13 -0
  53. package/dist/atoms/grid.d.cts +1 -0
  54. package/dist/atoms/grid.d.ts +1 -0
  55. package/dist/atoms/heading.d.cts +9 -0
  56. package/dist/atoms/heading.d.ts +9 -0
  57. package/dist/atoms/hover-card.d.cts +1 -0
  58. package/dist/atoms/hover-card.d.ts +1 -0
  59. package/dist/atoms/icon-button.d.cts +1 -0
  60. package/dist/atoms/icon-button.d.ts +1 -0
  61. package/dist/atoms/index.cjs +1 -1
  62. package/dist/atoms/index.cjs.map +1 -1
  63. package/dist/atoms/index.d.cts +23 -0
  64. package/dist/atoms/index.d.ts +23 -0
  65. package/dist/atoms/index.js +52 -52
  66. package/dist/atoms/inset.d.cts +1 -0
  67. package/dist/atoms/inset.d.ts +1 -0
  68. package/dist/atoms/kbd.d.cts +1 -0
  69. package/dist/atoms/kbd.d.ts +1 -0
  70. package/dist/atoms/link.d.cts +9 -0
  71. package/dist/atoms/link.d.ts +9 -0
  72. package/dist/atoms/pagination.d.cts +16 -0
  73. package/dist/atoms/pagination.d.ts +16 -0
  74. package/dist/atoms/pagination.js +3 -3
  75. package/dist/atoms/popover.d.cts +1 -0
  76. package/dist/atoms/popover.d.ts +1 -0
  77. package/dist/atoms/progress.d.cts +1 -0
  78. package/dist/atoms/progress.d.ts +1 -0
  79. package/dist/atoms/quote.d.cts +1 -0
  80. package/dist/atoms/quote.d.ts +1 -0
  81. package/dist/atoms/radio-cards.d.cts +1 -0
  82. package/dist/atoms/radio-cards.d.ts +1 -0
  83. package/dist/atoms/radio-group.d.cts +1 -0
  84. package/dist/atoms/radio-group.d.ts +1 -0
  85. package/dist/atoms/radio.d.cts +1 -0
  86. package/dist/atoms/radio.d.ts +1 -0
  87. package/dist/atoms/scroll-area.d.cts +1 -0
  88. package/dist/atoms/scroll-area.d.ts +1 -0
  89. package/dist/atoms/section.d.cts +1 -0
  90. package/dist/atoms/section.d.ts +1 -0
  91. package/dist/atoms/segmented-control.d.cts +1 -0
  92. package/dist/atoms/segmented-control.d.ts +1 -0
  93. package/dist/atoms/select.d.cts +19 -0
  94. package/dist/atoms/select.d.ts +19 -0
  95. package/dist/atoms/separator.d.cts +1 -0
  96. package/dist/atoms/separator.d.ts +1 -0
  97. package/dist/atoms/skeleton.d.cts +1 -0
  98. package/dist/atoms/skeleton.d.ts +1 -0
  99. package/dist/atoms/spinner.d.cts +1 -0
  100. package/dist/atoms/spinner.d.ts +1 -0
  101. package/dist/atoms/strong.d.cts +1 -0
  102. package/dist/atoms/strong.d.ts +1 -0
  103. package/dist/atoms/switch.d.cts +1 -0
  104. package/dist/atoms/switch.d.ts +1 -0
  105. package/dist/atoms/tab-nav.d.cts +1 -0
  106. package/dist/atoms/tab-nav.d.ts +1 -0
  107. package/dist/atoms/tabs.d.cts +1 -0
  108. package/dist/atoms/tabs.d.ts +1 -0
  109. package/dist/atoms/text-area.d.cts +1 -0
  110. package/dist/atoms/text-area.d.ts +1 -0
  111. package/dist/atoms/text-field.d.cts +1 -0
  112. package/dist/atoms/text-field.d.ts +1 -0
  113. package/dist/atoms/toast.d.cts +6 -0
  114. package/dist/atoms/toast.d.ts +6 -0
  115. package/dist/atoms/tooltip.d.cts +1 -0
  116. package/dist/atoms/tooltip.d.ts +1 -0
  117. package/dist/atoms/typo.d.cts +9 -0
  118. package/dist/atoms/typo.d.ts +9 -0
  119. package/dist/charts/chart-default-props.d.cts +85 -0
  120. package/dist/charts/chart-default-props.d.ts +85 -0
  121. package/dist/charts/horizontal-bar-chart.d.cts +17 -0
  122. package/dist/charts/horizontal-bar-chart.d.ts +17 -0
  123. package/dist/charts/index.d.cts +3 -0
  124. package/dist/charts/index.d.ts +3 -0
  125. package/dist/chunk-5JJ3GWKF.js +47 -0
  126. package/dist/chunk-5JJ3GWKF.js.map +1 -0
  127. package/dist/chunk-7A7J457W.js +63 -0
  128. package/dist/chunk-7A7J457W.js.map +1 -0
  129. package/dist/chunk-A7CXRZIO.js +18 -0
  130. package/dist/chunk-A7CXRZIO.js.map +1 -0
  131. package/dist/chunk-CNQ7RNNY.js +23 -0
  132. package/dist/chunk-CNQ7RNNY.js.map +1 -0
  133. package/dist/chunk-FUSEDVWI.js +130 -0
  134. package/dist/chunk-FUSEDVWI.js.map +1 -0
  135. package/dist/chunk-G4FN6FJG.js +91 -0
  136. package/dist/chunk-G4FN6FJG.js.map +1 -0
  137. package/dist/chunk-HXJPG3ZO.js +130 -0
  138. package/dist/chunk-HXJPG3ZO.js.map +1 -0
  139. package/dist/chunk-ONYSO7Y2.js +49 -0
  140. package/dist/chunk-ONYSO7Y2.js.map +1 -0
  141. package/dist/chunk-YZZS2HN7.js +123 -0
  142. package/dist/chunk-YZZS2HN7.js.map +1 -0
  143. package/dist/icon.d.cts +3 -0
  144. package/dist/icon.d.ts +3 -0
  145. package/dist/icons/down.d.cts +6 -0
  146. package/dist/icons/down.d.ts +6 -0
  147. package/dist/icons/types.d.cts +6 -0
  148. package/dist/icons/types.d.ts +6 -0
  149. package/dist/icons/up.d.cts +6 -0
  150. package/dist/icons/up.d.ts +6 -0
  151. package/dist/index.cjs +1 -1
  152. package/dist/index.cjs.map +1 -1
  153. package/dist/index.d.cts +36 -0
  154. package/dist/index.d.ts +36 -0
  155. package/dist/index.js +63 -63
  156. package/dist/molecules/date-picker/index.d.cts +10 -0
  157. package/dist/molecules/date-picker/index.d.ts +10 -0
  158. package/dist/molecules/date-picker/index.js +2 -2
  159. package/dist/molecules/expand-table/index.d.cts +23 -0
  160. package/dist/molecules/expand-table/index.d.ts +23 -0
  161. package/dist/molecules/expand-table/index.js +22 -22
  162. package/dist/molecules/expand-table/row.d.cts +18 -0
  163. package/dist/molecules/expand-table/row.d.ts +18 -0
  164. package/dist/molecules/expand-table/row.js +21 -21
  165. package/dist/molecules/index.d.cts +8 -0
  166. package/dist/molecules/index.d.ts +8 -0
  167. package/dist/molecules/index.js +24 -24
  168. package/dist/molecules/navigation.d.cts +19 -0
  169. package/dist/molecules/navigation.d.ts +19 -0
  170. package/dist/molecules/navigation.js +22 -22
  171. package/dist/theme/theme-provider.d.cts +10 -0
  172. package/dist/theme/theme-provider.d.ts +10 -0
  173. package/dist/theme/use-theme.d.cts +1 -0
  174. package/dist/theme/use-theme.d.ts +1 -0
  175. package/dist/types/react-table.d.d.cts +19 -0
  176. package/dist/types/react-table.d.d.ts +19 -0
  177. package/dist/ui-props/index.d.cts +2 -0
  178. package/dist/ui-props/index.d.ts +2 -0
  179. package/dist/utils/get-cell-align.cjs.map +1 -1
  180. package/dist/utils/get-cell-align.d.cts +9 -0
  181. package/dist/utils/get-cell-align.d.ts +9 -0
  182. package/dist/utils/get-cell-align.js +1 -1
  183. package/dist/utils/index.cjs.map +1 -1
  184. package/dist/utils/index.d.cts +2 -0
  185. package/dist/utils/index.d.ts +2 -0
  186. package/dist/utils/index.js +1 -1
  187. package/package.json +3 -3
  188. package/src/atoms/badge.tsx +3 -3
  189. package/src/utils/get-cell-align.ts +1 -3
@@ -1,34 +1,43 @@
1
1
  import {
2
2
  Navigation
3
- } from "../chunk-RKLEKAON.js";
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-JPIZP2PZ.js";
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-HYITAA4J.js";
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-FQYPUIFX.js";
25
+ import "../chunk-HXJPG3ZO.js";
22
26
  import "../chunk-5AVBYDPB.js";
23
27
  import "../chunk-365QMK4D.js";
24
- import "../chunk-YO3BQW6S.js";
25
- import "../chunk-6IVCARWS.js";
26
- import "../chunk-6DJOIRMF.js";
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-XQOL7UBI.js";
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-4IKPNQV5.js";
41
- import "../chunk-ACVANQJ4.js";
42
- import "../chunk-2DZ2Y3JI.js";
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
+ }
@@ -0,0 +1,2 @@
1
+ import * as index_js from '@radix-ui/themes/dist/cjs/props/index.js';
2
+ export { index_js as uiProps };
@@ -0,0 +1,2 @@
1
+ import * as index_js from '@radix-ui/themes/dist/cjs/props/index.js';
2
+ export { index_js as uiProps };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/get-cell-align.ts"],"sourcesContent":["import type { ColumnMeta } from '@tanstack/react-table';\n\nexport type CellDataType = 'number' | 'date' | 'time' | 'string' | 'button';\nexport type CellAlign = NonNullable<ColumnMeta<unknown, unknown>['align']>;\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;AAKO,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":[]}
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 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCellAlign
3
- } from "../chunk-T6KADTJZ.js";
3
+ } from "../chunk-A7CXRZIO.js";
4
4
  import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  getCellAlign
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/index.ts","../../src/utils/get-cell-align.ts"],"sourcesContent":["export * from './get-cell-align';\n","import type { ColumnMeta } from '@tanstack/react-table';\n\nexport type CellDataType = 'number' | 'date' | 'time' | 'string' | 'button';\nexport type CellAlign = NonNullable<ColumnMeta<unknown, unknown>['align']>;\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;;;ACKO,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":[]}
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":[]}
@@ -0,0 +1,2 @@
1
+ export { CellAlign, CellDataType, getCellAlign } from './get-cell-align.cjs';
2
+ import '@tanstack/react-table';
@@ -0,0 +1,2 @@
1
+ export { CellAlign, CellDataType, getCellAlign } from './get-cell-align.js';
2
+ import '@tanstack/react-table';
@@ -1,7 +1,7 @@
1
1
  import "../chunk-PL37KFRJ.js";
2
2
  import {
3
3
  getCellAlign
4
- } from "../chunk-T6KADTJZ.js";
4
+ } from "../chunk-A7CXRZIO.js";
5
5
  import "../chunk-N552FDTV.js";
6
6
  export {
7
7
  getCellAlign
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tipp/ui",
3
- "version": "1.0.52",
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/eslint-config": "0.2.3",
57
- "@tipp/typescript-config": "0.0.4"
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",
@@ -5,13 +5,13 @@ import {
5
5
  import { useMemo, forwardRef } from 'react';
6
6
 
7
7
  export type BadgeProps = Omit<RadixBadgeProps, 'color'> & {
8
- size: 'small' | 'large';
9
- color: 'error' | 'accent' | 'neutral' | 'success';
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 = NonNullable<ColumnMeta<unknown, unknown>['align']>;
2
+ export type CellAlign = 'left' | 'center' | 'right';
5
3
 
6
4
  export const getCellAlign = (arg: { dataType: CellDataType }): CellAlign => {
7
5
  const { dataType } = arg;