@tipp/ui 1.0.53 → 1.0.55

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 (39) hide show
  1. package/dist/atoms/badge.cjs +1 -1
  2. package/dist/atoms/badge.cjs.map +1 -1
  3. package/dist/atoms/badge.d.cts +4 -4
  4. package/dist/atoms/badge.d.ts +4 -4
  5. package/dist/atoms/badge.js +1 -1
  6. package/dist/atoms/field-error-wrapper.js +2 -2
  7. package/dist/atoms/index.cjs +1 -1
  8. package/dist/atoms/index.cjs.map +1 -1
  9. package/dist/atoms/index.js +52 -52
  10. package/dist/atoms/pagination.js +3 -3
  11. package/dist/{chunk-ALOPZ54P.js → chunk-5JJ3GWKF.js} +2 -2
  12. package/dist/chunk-5JJ3GWKF.js.map +1 -0
  13. package/dist/{chunk-T6KADTJZ.js → chunk-A7CXRZIO.js} +1 -1
  14. package/dist/chunk-A7CXRZIO.js.map +1 -0
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.js +67 -67
  18. package/dist/molecules/date-picker/index.js +2 -2
  19. package/dist/molecules/expand-table/index.js +22 -22
  20. package/dist/molecules/expand-table/row.js +21 -21
  21. package/dist/molecules/index.js +28 -28
  22. package/dist/molecules/navigation.js +22 -22
  23. package/dist/utils/get-cell-align.cjs.map +1 -1
  24. package/dist/utils/get-cell-align.d.cts +1 -3
  25. package/dist/utils/get-cell-align.d.ts +1 -3
  26. package/dist/utils/get-cell-align.js +1 -1
  27. package/dist/utils/index.cjs.map +1 -1
  28. package/dist/utils/index.d.cts +0 -1
  29. package/dist/utils/index.d.ts +0 -1
  30. package/dist/utils/index.js +1 -1
  31. package/package.json +3 -3
  32. package/src/atoms/badge.tsx +3 -3
  33. package/src/utils/get-cell-align.ts +1 -3
  34. package/dist/chunk-ALOPZ54P.js.map +0 -1
  35. package/dist/chunk-FUSEDVWI.js +0 -130
  36. package/dist/chunk-FUSEDVWI.js.map +0 -1
  37. package/dist/chunk-ONYSO7Y2.js +0 -49
  38. package/dist/chunk-ONYSO7Y2.js.map +0 -1
  39. package/dist/chunk-T6KADTJZ.js.map +0 -1
@@ -1,49 +0,0 @@
1
- import {
2
- ToastContainer
3
- } from "./chunk-NJ2U2TVS.js";
4
- import {
5
- ThemeProvider
6
- } from "./chunk-BVBX6IJ3.js";
7
- import {
8
- __objRest,
9
- __spreadValues
10
- } from "./chunk-N552FDTV.js";
11
-
12
- // src/atoms/drawer.tsx
13
- import * as Dialog from "@radix-ui/react-dialog";
14
- import { jsx, jsxs } from "react/jsx-runtime";
15
- function Root2(props) {
16
- return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
17
- }
18
- function Content2(props) {
19
- const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
20
- return /* @__PURE__ */ jsx(Dialog.Portal, { children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
21
- /* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
22
- /* @__PURE__ */ jsx(
23
- Dialog.Content,
24
- __spreadValues({
25
- className: `DrawerContent ${position} ${className || ""}`
26
- }, rest)
27
- ),
28
- /* @__PURE__ */ jsx(ToastContainer, {})
29
- ] }) });
30
- }
31
- function Trigger2(props) {
32
- return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
33
- }
34
- var Drawer = {
35
- Root: Dialog.Root,
36
- Trigger: Trigger2,
37
- Content: Content2,
38
- Close: Dialog.Close,
39
- Title: Dialog.Title,
40
- Description: Dialog.Description
41
- };
42
-
43
- export {
44
- Root2 as Root,
45
- Content2 as Content,
46
- Trigger2 as Trigger,
47
- Drawer
48
- };
49
- //# sourceMappingURL=chunk-ONYSO7Y2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, ...rest } = props;\n return (\n <Dialog.Portal>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n />\n <ToastContainer />\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;AACA,YAAY,YAAY;AAKf,cAYH,YAZG;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAAmD,YAA3C,aAAW,SAAS,UAf9B,IAeqD,IAAT,iBAAS,IAAT,CAAlC,YAAoB;AAC5B,SACE,oBAAQ,eAAP,EACC,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD;AAAA,IACN;AAAA,IACA,oBAAC,kBAAe;AAAA,KAClB,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
@@ -1 +0,0 @@
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":";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":[]}