@tipp/ui 1.0.52 → 1.0.53

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 (165) 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.d.cts +13 -0
  8. package/dist/atoms/badge.d.ts +13 -0
  9. package/dist/atoms/blockquote.d.cts +1 -0
  10. package/dist/atoms/blockquote.d.ts +1 -0
  11. package/dist/atoms/box.d.cts +1 -0
  12. package/dist/atoms/box.d.ts +1 -0
  13. package/dist/atoms/button.d.cts +11 -0
  14. package/dist/atoms/button.d.ts +11 -0
  15. package/dist/atoms/call-out.d.cts +1 -0
  16. package/dist/atoms/call-out.d.ts +1 -0
  17. package/dist/atoms/card.d.cts +23 -0
  18. package/dist/atoms/card.d.ts +23 -0
  19. package/dist/atoms/check-box-card.d.cts +1 -0
  20. package/dist/atoms/check-box-card.d.ts +1 -0
  21. package/dist/atoms/check-box-group.d.cts +11 -0
  22. package/dist/atoms/check-box-group.d.ts +11 -0
  23. package/dist/atoms/check-box.d.cts +11 -0
  24. package/dist/atoms/check-box.d.ts +11 -0
  25. package/dist/atoms/code.d.cts +1 -0
  26. package/dist/atoms/code.d.ts +1 -0
  27. package/dist/atoms/collapse.d.cts +12 -0
  28. package/dist/atoms/collapse.d.ts +12 -0
  29. package/dist/atoms/container.d.cts +1 -0
  30. package/dist/atoms/container.d.ts +1 -0
  31. package/dist/atoms/data-list.d.cts +1 -0
  32. package/dist/atoms/data-list.d.ts +1 -0
  33. package/dist/atoms/dialog.d.cts +1 -0
  34. package/dist/atoms/dialog.d.ts +1 -0
  35. package/dist/atoms/drawer.d.cts +20 -0
  36. package/dist/atoms/drawer.d.ts +20 -0
  37. package/dist/atoms/dropdown-menu.d.cts +23 -0
  38. package/dist/atoms/dropdown-menu.d.ts +23 -0
  39. package/dist/atoms/ellipsis-tooltip.d.cts +11 -0
  40. package/dist/atoms/ellipsis-tooltip.d.ts +11 -0
  41. package/dist/atoms/em.d.cts +1 -0
  42. package/dist/atoms/em.d.ts +1 -0
  43. package/dist/atoms/field-error-wrapper.d.cts +9 -0
  44. package/dist/atoms/field-error-wrapper.d.ts +9 -0
  45. package/dist/atoms/flex.d.cts +1 -0
  46. package/dist/atoms/flex.d.ts +1 -0
  47. package/dist/atoms/form.d.cts +13 -0
  48. package/dist/atoms/form.d.ts +13 -0
  49. package/dist/atoms/grid.d.cts +1 -0
  50. package/dist/atoms/grid.d.ts +1 -0
  51. package/dist/atoms/heading.d.cts +9 -0
  52. package/dist/atoms/heading.d.ts +9 -0
  53. package/dist/atoms/hover-card.d.cts +1 -0
  54. package/dist/atoms/hover-card.d.ts +1 -0
  55. package/dist/atoms/icon-button.d.cts +1 -0
  56. package/dist/atoms/icon-button.d.ts +1 -0
  57. package/dist/atoms/index.d.cts +23 -0
  58. package/dist/atoms/index.d.ts +23 -0
  59. package/dist/atoms/inset.d.cts +1 -0
  60. package/dist/atoms/inset.d.ts +1 -0
  61. package/dist/atoms/kbd.d.cts +1 -0
  62. package/dist/atoms/kbd.d.ts +1 -0
  63. package/dist/atoms/link.d.cts +9 -0
  64. package/dist/atoms/link.d.ts +9 -0
  65. package/dist/atoms/pagination.d.cts +16 -0
  66. package/dist/atoms/pagination.d.ts +16 -0
  67. package/dist/atoms/popover.d.cts +1 -0
  68. package/dist/atoms/popover.d.ts +1 -0
  69. package/dist/atoms/progress.d.cts +1 -0
  70. package/dist/atoms/progress.d.ts +1 -0
  71. package/dist/atoms/quote.d.cts +1 -0
  72. package/dist/atoms/quote.d.ts +1 -0
  73. package/dist/atoms/radio-cards.d.cts +1 -0
  74. package/dist/atoms/radio-cards.d.ts +1 -0
  75. package/dist/atoms/radio-group.d.cts +1 -0
  76. package/dist/atoms/radio-group.d.ts +1 -0
  77. package/dist/atoms/radio.d.cts +1 -0
  78. package/dist/atoms/radio.d.ts +1 -0
  79. package/dist/atoms/scroll-area.d.cts +1 -0
  80. package/dist/atoms/scroll-area.d.ts +1 -0
  81. package/dist/atoms/section.d.cts +1 -0
  82. package/dist/atoms/section.d.ts +1 -0
  83. package/dist/atoms/segmented-control.d.cts +1 -0
  84. package/dist/atoms/segmented-control.d.ts +1 -0
  85. package/dist/atoms/select.d.cts +19 -0
  86. package/dist/atoms/select.d.ts +19 -0
  87. package/dist/atoms/separator.d.cts +1 -0
  88. package/dist/atoms/separator.d.ts +1 -0
  89. package/dist/atoms/skeleton.d.cts +1 -0
  90. package/dist/atoms/skeleton.d.ts +1 -0
  91. package/dist/atoms/spinner.d.cts +1 -0
  92. package/dist/atoms/spinner.d.ts +1 -0
  93. package/dist/atoms/strong.d.cts +1 -0
  94. package/dist/atoms/strong.d.ts +1 -0
  95. package/dist/atoms/switch.d.cts +1 -0
  96. package/dist/atoms/switch.d.ts +1 -0
  97. package/dist/atoms/tab-nav.d.cts +1 -0
  98. package/dist/atoms/tab-nav.d.ts +1 -0
  99. package/dist/atoms/tabs.d.cts +1 -0
  100. package/dist/atoms/tabs.d.ts +1 -0
  101. package/dist/atoms/text-area.d.cts +1 -0
  102. package/dist/atoms/text-area.d.ts +1 -0
  103. package/dist/atoms/text-field.d.cts +1 -0
  104. package/dist/atoms/text-field.d.ts +1 -0
  105. package/dist/atoms/toast.d.cts +6 -0
  106. package/dist/atoms/toast.d.ts +6 -0
  107. package/dist/atoms/tooltip.d.cts +1 -0
  108. package/dist/atoms/tooltip.d.ts +1 -0
  109. package/dist/atoms/typo.d.cts +9 -0
  110. package/dist/atoms/typo.d.ts +9 -0
  111. package/dist/charts/chart-default-props.d.cts +85 -0
  112. package/dist/charts/chart-default-props.d.ts +85 -0
  113. package/dist/charts/horizontal-bar-chart.d.cts +17 -0
  114. package/dist/charts/horizontal-bar-chart.d.ts +17 -0
  115. package/dist/charts/index.d.cts +3 -0
  116. package/dist/charts/index.d.ts +3 -0
  117. package/dist/chunk-7A7J457W.js +63 -0
  118. package/dist/chunk-7A7J457W.js.map +1 -0
  119. package/dist/chunk-CNQ7RNNY.js +23 -0
  120. package/dist/chunk-CNQ7RNNY.js.map +1 -0
  121. package/dist/chunk-FUSEDVWI.js +130 -0
  122. package/dist/chunk-FUSEDVWI.js.map +1 -0
  123. package/dist/chunk-G4FN6FJG.js +91 -0
  124. package/dist/chunk-G4FN6FJG.js.map +1 -0
  125. package/dist/chunk-HXJPG3ZO.js +130 -0
  126. package/dist/chunk-HXJPG3ZO.js.map +1 -0
  127. package/dist/chunk-ONYSO7Y2.js +49 -0
  128. package/dist/chunk-ONYSO7Y2.js.map +1 -0
  129. package/dist/chunk-YZZS2HN7.js +123 -0
  130. package/dist/chunk-YZZS2HN7.js.map +1 -0
  131. package/dist/icon.d.cts +3 -0
  132. package/dist/icon.d.ts +3 -0
  133. package/dist/icons/down.d.cts +6 -0
  134. package/dist/icons/down.d.ts +6 -0
  135. package/dist/icons/types.d.cts +6 -0
  136. package/dist/icons/types.d.ts +6 -0
  137. package/dist/icons/up.d.cts +6 -0
  138. package/dist/icons/up.d.ts +6 -0
  139. package/dist/index.d.cts +36 -0
  140. package/dist/index.d.ts +36 -0
  141. package/dist/index.js +6 -6
  142. package/dist/molecules/date-picker/index.d.cts +10 -0
  143. package/dist/molecules/date-picker/index.d.ts +10 -0
  144. package/dist/molecules/expand-table/index.d.cts +23 -0
  145. package/dist/molecules/expand-table/index.d.ts +23 -0
  146. package/dist/molecules/expand-table/row.d.cts +18 -0
  147. package/dist/molecules/expand-table/row.d.ts +18 -0
  148. package/dist/molecules/index.d.cts +8 -0
  149. package/dist/molecules/index.d.ts +8 -0
  150. package/dist/molecules/index.js +6 -6
  151. package/dist/molecules/navigation.d.cts +19 -0
  152. package/dist/molecules/navigation.d.ts +19 -0
  153. package/dist/theme/theme-provider.d.cts +10 -0
  154. package/dist/theme/theme-provider.d.ts +10 -0
  155. package/dist/theme/use-theme.d.cts +1 -0
  156. package/dist/theme/use-theme.d.ts +1 -0
  157. package/dist/types/react-table.d.d.cts +19 -0
  158. package/dist/types/react-table.d.d.ts +19 -0
  159. package/dist/ui-props/index.d.cts +2 -0
  160. package/dist/ui-props/index.d.ts +2 -0
  161. package/dist/utils/get-cell-align.d.cts +9 -0
  162. package/dist/utils/get-cell-align.d.ts +9 -0
  163. package/dist/utils/index.d.cts +2 -0
  164. package/dist/utils/index.d.ts +2 -0
  165. package/package.json +3 -3
@@ -0,0 +1,10 @@
1
+ import react__default from 'react';
2
+ import * as RDP from 'react-datepicker';
3
+ import { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
4
+
5
+ type DatePickerProps = DatePickerProps$1 & {
6
+ size?: 'small' | 'medium' | 'large';
7
+ };
8
+ declare const DatePicker: react__default.ForwardRefExoticComponent<DatePickerProps & react__default.RefAttributes<RDP.default>>;
9
+
10
+ export { DatePicker, type DatePickerProps };
@@ -0,0 +1,23 @@
1
+ import { RowData, ColumnDef } from '@tanstack/react-table';
2
+ export { ColumnDef, Row, createColumnHelper } from '@tanstack/react-table';
3
+ import react__default, { CSSProperties } from 'react';
4
+ import { ExpandComp, OnRowClick } from './row.cjs';
5
+ import '../../utils/get-cell-align.cjs';
6
+
7
+ interface ExpandTableProps<Datum extends RowData> {
8
+ /** 렌더할 데이터 배열 */
9
+ data?: Datum[];
10
+ /** 테이블 컬럼의 메타 데이터 */
11
+ columns: ColumnDef<Datum>[];
12
+ /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */
13
+ ExpandComp?: ExpandComp<Datum>;
14
+ /** 데이테가 없을 시 화면에 표시할 컴포넌트 */
15
+ placeholder?: react__default.ReactNode;
16
+ /** 행 클릭 시 실행할 콜백 */
17
+ onRowClick?: OnRowClick<Datum>;
18
+ rowStyle?: CSSProperties;
19
+ tableStyle?: CSSProperties;
20
+ }
21
+ declare function ExpandTable<Datum extends RowData>(props: ExpandTableProps<Datum>): react__default.ReactNode;
22
+
23
+ export { ExpandComp, ExpandTable, type ExpandTableProps, OnRowClick };
@@ -0,0 +1,23 @@
1
+ import { RowData, ColumnDef } from '@tanstack/react-table';
2
+ export { ColumnDef, Row, createColumnHelper } from '@tanstack/react-table';
3
+ import react__default, { CSSProperties } from 'react';
4
+ import { ExpandComp, OnRowClick } from './row.js';
5
+ import '../../utils/get-cell-align.js';
6
+
7
+ interface ExpandTableProps<Datum extends RowData> {
8
+ /** 렌더할 데이터 배열 */
9
+ data?: Datum[];
10
+ /** 테이블 컬럼의 메타 데이터 */
11
+ columns: ColumnDef<Datum>[];
12
+ /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */
13
+ ExpandComp?: ExpandComp<Datum>;
14
+ /** 데이테가 없을 시 화면에 표시할 컴포넌트 */
15
+ placeholder?: react__default.ReactNode;
16
+ /** 행 클릭 시 실행할 콜백 */
17
+ onRowClick?: OnRowClick<Datum>;
18
+ rowStyle?: CSSProperties;
19
+ tableStyle?: CSSProperties;
20
+ }
21
+ declare function ExpandTable<Datum extends RowData>(props: ExpandTableProps<Datum>): react__default.ReactNode;
22
+
23
+ export { ExpandComp, ExpandTable, type ExpandTableProps, OnRowClick };
@@ -0,0 +1,18 @@
1
+ import { Row as Row$1, RowData } from '@tanstack/react-table';
2
+ import react__default from 'react';
3
+ import { CellAlign } from '../../utils/get-cell-align.cjs';
4
+
5
+ type ExpandComp<Datum> = react__default.FC<{
6
+ row: Row$1<Datum>;
7
+ }>;
8
+ type OnRowClick<Datum> = (data: Datum) => void;
9
+ interface RowProps<Datum extends RowData> {
10
+ row: Row$1<Datum>;
11
+ ExpandComp?: ExpandComp<Datum>;
12
+ onRowClick?: OnRowClick<Datum>;
13
+ gridColTemp: string;
14
+ defaultAlign: CellAlign;
15
+ }
16
+ declare function Row<Datum extends RowData>(props: RowProps<Datum>): react__default.ReactNode;
17
+
18
+ export { type ExpandComp, type OnRowClick, Row };
@@ -0,0 +1,18 @@
1
+ import { Row as Row$1, RowData } from '@tanstack/react-table';
2
+ import react__default from 'react';
3
+ import { CellAlign } from '../../utils/get-cell-align.js';
4
+
5
+ type ExpandComp<Datum> = react__default.FC<{
6
+ row: Row$1<Datum>;
7
+ }>;
8
+ type OnRowClick<Datum> = (data: Datum) => void;
9
+ interface RowProps<Datum extends RowData> {
10
+ row: Row$1<Datum>;
11
+ ExpandComp?: ExpandComp<Datum>;
12
+ onRowClick?: OnRowClick<Datum>;
13
+ gridColTemp: string;
14
+ defaultAlign: CellAlign;
15
+ }
16
+ declare function Row<Datum extends RowData>(props: RowProps<Datum>): react__default.ReactNode;
17
+
18
+ export { type ExpandComp, type OnRowClick, Row };
@@ -0,0 +1,8 @@
1
+ export { ExpandTable, ExpandTableProps } from './expand-table/index.cjs';
2
+ export { Navigation, NavigationProps } from './navigation.cjs';
3
+ export { DatePicker, DatePickerProps } from './date-picker/index.cjs';
4
+ export { ExpandComp, OnRowClick } from './expand-table/row.cjs';
5
+ export { ColumnDef, Row, createColumnHelper } from '@tanstack/react-table';
6
+ import 'react';
7
+ import 'react-datepicker';
8
+ import '../utils/get-cell-align.cjs';
@@ -0,0 +1,8 @@
1
+ export { ExpandTable, ExpandTableProps } from './expand-table/index.js';
2
+ export { Navigation, NavigationProps } from './navigation.js';
3
+ export { DatePicker, DatePickerProps } from './date-picker/index.js';
4
+ export { ExpandComp, OnRowClick } from './expand-table/row.js';
5
+ export { ColumnDef, Row, createColumnHelper } from '@tanstack/react-table';
6
+ import 'react';
7
+ import 'react-datepicker';
8
+ import '../utils/get-cell-align.js';
@@ -1,15 +1,15 @@
1
1
  import "../chunk-KHHXN3CH.js";
2
2
  import {
3
- ExpandTable,
4
- createColumnHelper
5
- } from "../chunk-EVFFFVFM.js";
6
- import "../chunk-MDBFTLD7.js";
3
+ DatePicker
4
+ } from "../chunk-Z2PA5PMV.js";
7
5
  import {
8
6
  Navigation
9
7
  } from "../chunk-RKLEKAON.js";
10
8
  import {
11
- DatePicker
12
- } from "../chunk-Z2PA5PMV.js";
9
+ ExpandTable,
10
+ createColumnHelper
11
+ } from "../chunk-EVFFFVFM.js";
12
+ import "../chunk-MDBFTLD7.js";
13
13
  import "../chunk-BSTJBBEX.js";
14
14
  import "../chunk-NDUKDKGB.js";
15
15
  import "../chunk-2ANGYYEV.js";
@@ -0,0 +1,19 @@
1
+ import react__default from 'react';
2
+
3
+ interface Item {
4
+ itemRender?: (item: Item) => react__default.ReactNode;
5
+ key: string;
6
+ onClick?: () => void;
7
+ title: string;
8
+ icon?: react__default.ReactNode;
9
+ children?: Item[];
10
+ }
11
+ interface NavigationProps {
12
+ items?: Item[];
13
+ fontColor?: string;
14
+ backgroundColor?: string;
15
+ activeKey?: string;
16
+ }
17
+ declare function Navigation({ items, fontColor, backgroundColor, activeKey, }: NavigationProps): react__default.ReactNode;
18
+
19
+ export { Navigation, type NavigationProps };
@@ -0,0 +1,19 @@
1
+ import react__default from 'react';
2
+
3
+ interface Item {
4
+ itemRender?: (item: Item) => react__default.ReactNode;
5
+ key: string;
6
+ onClick?: () => void;
7
+ title: string;
8
+ icon?: react__default.ReactNode;
9
+ children?: Item[];
10
+ }
11
+ interface NavigationProps {
12
+ items?: Item[];
13
+ fontColor?: string;
14
+ backgroundColor?: string;
15
+ activeKey?: string;
16
+ }
17
+ declare function Navigation({ items, fontColor, backgroundColor, activeKey, }: NavigationProps): react__default.ReactNode;
18
+
19
+ export { Navigation, type NavigationProps };
@@ -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 };
@@ -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 };
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tipp/ui",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
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",